Install on shared server - Error: array_first()
Hello,
I have developed locally a little app that is running fine in Laravel 5.0 due to intended web hosting using php5.4.30.
The web hosting uses Cpanel/Apache and im trying to setup on a subdomain, that uses a separate folders in the public_html directory.
I have followed these and similar instructions - http://novate.co.uk/deploy-laravel-5-on-shared-hosting-from-heart-internet/
I can echo 'hi' to the screen but otherwise its a 500 error.
The error is:
PHP Catchable fatal error: Argument 2 passed to array_first() must be callable, null given, called in /home/servername/public_html/dev/vendor/laravel/framework/src/Illuminate/Foundation/Application.php on line 530 and defined in /home/servername/public_html/dev/vendor/laravel/framework/src/Illuminate/Support/helpers.php on line 148
Unfortunately i do not have shell access at this stage. So the installation consisted of uploading the all the files and database to the appropriate places. Unable to run composer or symlink anything at this point (hoping to here back to host provider soon).
The storage/vendor folders are 775.
Im unable to find anything specific to this error in my googling :(
Any help would be awesome!
Hello jlrdw,
Thankyou for the link - i had exhausted that list prior to posting.
However with a more specific search on these forums that (google didn't reference) - "array_first" i have found my solution.
"eAccelerator for PHP is used on my server and laravel appears incompatible"
Applying that fix in the index.php has solved the issue.
Please or to participate in this conversation.