How to solve the following error in Laravel and How to know the File Path of SessionHandlerInterface? - laravel

I started working with Laravel. Faced a FatalErrorException:
Declaration of SessionHandlerInterface::1($save_path, $session_name) must be compatible with SessionHandlerInterface::1($maxlifetime)
in FileSessionHandler.php line 10
It was working yesterday, and as far as I remember, I have not updated anything.
I tried to look into file FileSessionHandler but I can't figure out the problem. I also tried to look for SessionHandlerInterface, but I am not able to find the Interface file.
How can I solve this problem?
Also please tell me the meaning of 1 after scope resolution operator.

Related

Unable to use Searchable in laravel model

I am trying to use Laravel Scout Searchable into my model but it gives me an error
Undefined type 'Laravel\Scout\Searchable'.
I have already included
use Laravel\Scout\Searchable;
in the code. Could someone please tell me what am I doing wrong here?
I have followed the documentation as is until this point.
After a little bit of tinkering around I found the answer myself.
The error was produced by PHP intelliphense plugin of VS Code. It seems there is a problem with a version of the plugin I used. I downgraded my version one step and now it detects everything correctly.

Windows 10 Octave 3.2.4 not running .m files

I'm trying to work my way through the Stanford open machine learning course and it requires me to run a .m file called submit1.m
I have this file and i have made sure i am in the correct directory.
When i try to run this file and submit my answer example - submit1.m(eye(5,5)
I receive this error message:
error: `submit1' undefined near line 9 column 1
Sorry in advance if I'm missing something really simple but I am a completely new to octave.
I have search for an answer on many forums but none of the given solutions are working for me.
If any more information is required please ask and i will do my best.
Thanks

Cordova file plugin can't access the application directory on windows 8

Please help, I can't seem to get an answer for this anywhere.
If I use the Cordova file plugin to try and access the application directory on Windows 8, it always fails! Here is the basic code I am using:
window.resolveLocalFileSystemURL(cordova.file.dataDirectory + 'www/assets/images/image.png', gotFile, fail);
I have been using the same basic code on the Android and iOS versions of the app for some time now with no problem so I don't understand why the Windows 8 version doesn't like it.
Through console logs I can see that the link generated is in fact correct and it's actually exactly the same as one used to append the same image to the page (which works fine):
<img src="ms-appx:///www/assets/images/image.png">.
Can anyone please tell me why I can't use cordova.file.applicationDirectory with Windows? I know that folder is read only, I am just trying to read from it.
Note: I can use window.resolveLocalFileSystemURL with the cordova.file.applicationDirectory no problem at all, it works as expected. Its only the cordova.file.dataDirectory that always fails for me. The closest answer I could find was some people having trouble with the image paths of images saved from the camera plugin but that seems to have been a bug that was fixed by Cordova. If this is not a bug also then I'm assuming there is something really simple I can do to make the resolveLocalFileSystemURL work?
Thanks.
I found a solution to my problem by using 'windows.storage.storagefile', I had success with the following code:
Windows.Storage.StorageFile.getFileFromApplicationUriAsync(new Windows.Foundation.Uri('ms-appx:///www/test.html')).done(win, fail);
More info can be found here: msdn.microsoft.com/library/windows/apps/… I hope this helps some other people struggling with Windows 8 as I spent quite a time scratching my head about it and trying lots of different ways.
Cheers,
Stuart

SugarCRM /include/Smarty/Smarty.class.php on line 1095 troubleshoot

I have been searching for this problem since a while but without much help. Everyone seemed to leave it half way.
I want to dig a bit deeper as to why and how it is creating such a havoc for everyone.
Environment
Installed SugarCRM and installed addon module. The module seems to work however, around email line it shoots a warning on the page:
Warning: Smarty error: unable to read resource: "include/SugarFields/FieldsBase/detailViewFunction.tpl" in /public_html/xxx/include/Smarty/Smarty.class.php on line 1095
As per the suggestions earlier from other post, I have done following and I am still at square 1
Changed the filename to all possible combinations
Searched for code where it references detailViewFunction. It appears in base and enum folder only and is exactly same the way the filename is. There is no mention in the code OR file about small d as suggested by someone one of the users in StackOverflow. Simply put, it is not detailViewFunction; in both files it appears as DetailViewFunction and the filename is same as this.
Checked permissions and they are 755; tried changing to 777 but still the error is there.
Any one who was able to solve it?
El
Ref.: Warning: Smarty error: unable to read resource:

iOS Library not found for -lidn (Including xmppframework)

I'm trying to include the xmppframework in my xcode project however I've come to a problem. I get the following error when trying to compile:
Path 'Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/usr/lib/lixml2.dylib following -F not a directory
Library not found for -lidn
I have followed the instructions to setup xmppframework from here and followed these instructions to make sure all the paths are correct, however I'm still getting the error.
I've checked the file path and it's definitely there..
Is there any other reason for this error? Many thanks
Finally fixed it after 3 days..
My advice to anyone else coming across this problem is to load up one of the example projects and compare the build settings on each! Ended up that my Library Search Paths was wrong.

Resources