Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Naumanz's avatar

Http Error 500 after uploading laravel app

Hi, I just moved my laravel app to my hosting server from localhost. I am getting Http 500 error. I've checked with my error logs it shows something like this.

PHP Fatal error: Call to undefined function Illuminate\Support\value() in /home7/preparn0/public_html/local/vendor/laravel/framework/src/Illuminate/Support/Arr.php on line 168

Everything works fine on my local machine.

0 likes
9 replies
Naumanz's avatar

@jlrdw , Thanks for taking time to reply. But actually I had the app working correctly when I first installed it few days back. I uploaded recent code to the site and it goes down. Tells that there is nothing like .htaccess & folder strucutres as some are suggesting. Error log says something missing . But I uploaded every single file how come it is working on local machine and not on server.

jlrdw's avatar

Need to backtrack and find out what you overewrote that made it not work.

Naumanz's avatar

I've working instance of the app at localhost. Uploaded everything using FileZilla and somehow it's missing something. No failed transfers in Filezilla also . Hope to fix the issue soon.

jlrdw's avatar

After uploading did you change your configuration to the production server rather than localhost double check that stuff it's easy to miss one.

Naumanz's avatar

Yes app environment & url updated accordingly in config/app.php

@jlrdw , Please read the error log

PHP Fatal error: Call to undefined function Illuminate\Support\value()

I think there is no issue with server configuration.

jlrdw's avatar

Look at that line 168 see if it gives you an idea I'm on mobile now not desktop.

lararof's avatar

Make sure you copied all the hidden files.

Please or to participate in this conversation.