Laravel server hosting error

Abdessamad BOUTGAYOUT

I had built my website using Laravel 4, and it works fine on localhost but when I host it in my online webserver I've got this error:

Parse error: syntax error, unexpected T_USE, expecting T_FUNCTION in /home/.../public_html/bootstrap/compiled.php on line 3242

How can I get rid of this error?

Marwelln

Laravel 4.2 requires PHP 5.4+, make sure you have that.

If you updated from an earlier version of Laravel and on PHP 5.4+, remove public_html/bootstrap/compiled.php and it should work again.

If you can't use 5.4+, use Laravel 4.1 instead of 4.2, so in your composer.json you want "laravel/framework": "4.1.*", instead of what you have now.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

500 Internal Server Error Hosting

Laravel 5 – Clear Cache in Shared Hosting Server

Deploying Laravel 4 on shared hosting server (hostgator)

Error 404 in a shared hosting in Laravel 8

Laravel 5.5 Error 500 in Cpanel Shared Hosting

403 error on Ajax Post Laravel shared hosting

Composer dependencies error on web hosting - Laravel 8

Firebase hosting Error 503 Varnish cache server

500 internal Server Error on Shared hosting

AJAX POST 500 Internal Server Error on hosting

After hosting to server symfony gives 500 internal server error

Firebase hosting Error: Server Error. read ECONNRESET

.htaccess not working with laravel on production server-Shared hosting

Reloading .env variables without restarting server (Laravel 5, shared hosting)

How to run artisan command schedule:run on hosting server? (Laravel)

Configuring Apache Reverse Proxy For Hosting Laravel Echo Server On Production

Hosting a Vue js frontend and laravel backend(api routes) to a shared server?

Parse error after deploy Laravel 5.1 on shared hosting

Laravel - Schedule queues returns a 503 error on shared hosting

Laravel file_put_contents error on shared hosting

Laravel: while hosting xampp on localhost in mac getting an error UnexpectedValueException

ASP.NET Core hosting - 500 internal server error

Error when hosting shiny app on DigitalOcean ubuntu server

Ionic FileTransfer from camera Error Code : 3 to server hosting

Getting 500 Internal Server Error on my cpanel hosting?

laravel 5.6 server error

Hosting Laravel Locally

Hosting ReactJS with Laravel

Laravel on shared hosting with Subdomain