Support the ongoing development of Laravel.io →
Installation Configuration

Hi,

Some strange things are happening. I developed a small project which works well on PC (WAMP), when I deploy the project to my development server (CentOS) I get the following error.

Whoops, looks like something went wrong.

1/1 ReflectionException in Container.php line 737: Class App\Http\Controllers\HomeController does not exist

SNIP

The absolute weird thing is that above that error I see the code from the HomeController. When I check the source of the page the page starts with

<!--?phpnamespace App\Http\Controllers;use App\Http\Controllers\Controller;class HomeController extends Controller { public function index() { return View('checkout-6'); } *SNIP* I have no clue whats going on, my server logs are not throwing any errors. Any ideas?
Last updated 3 years ago.
0

I created a new controller, copied the code and now it works, except that the javascript can+t be loaded because of the error Uncaught SyntaxError: Unexpected token function

I have this strange feeling that something is fucking up on my end on how the files get saved

0

Ok, now I definitly know something is fucking with the way my files get saved. Deleted the javascript file, created new one, copied raw source from bitbucket and voila, it worked...

0

I hate computers.

0

Is it a case sensitivity issue? Usually is I find going from Windows to UNIX.

Check your strings, namespaces and files.

0

erik404 said:

I hate computers.

Yep. Pain in the ass. I'm off to be a sheep farmer in Wales!

0

Sign in to participate in this thread!

Eventy

Your banner here too?

erik404 erik404 Joined 28 Oct 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.