Support the ongoing development of Laravel.io →
posted 11 years ago
Installation

I have a completely working application on my local host and I'm looking to move the application to production. Stupid me thought it would be as easy as just getting the server ready to go and just moving all my files up. But something has gone horribly wrong. My views are not loading correctly because a footer widget is erroring with the following message:

'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Class 'Self' not found' in /home/emkaytec/public/afga/app/models/Article.php:91

So, just to try and isolate it, I removed that widget to see if the rest of the page loaded and it did. I tried to access a different page, however, and it didn't load at all... I received this message:

'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Class 'Self' not found' in /home/emkaytec/public/afga/app/models/ClassSession.php:144

So, to me it seems like it can't find my models for some reason? And even if this is the issue, I can't seem to figure out why it isn't loading.

I'm so confused.

Last updated 3 years ago.
0

Hmm... OK, this just got weirder. Apparently it's not all the models, because I've isolated a few but was able to access some of them. So, I don't really know what to think.

Last updated 3 years ago.
0

Love solving my own problems... apparently calling static methods using Self:: works on my local server, but it needs to be self:: on the production server. I'm going to pretend it didn't take me like four hours to figure that out.

Last updated 3 years ago.
0

thanks for that, saved me about 3 hours. laravel so awesome yet so frustrating.

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

josh1881 josh1881 Joined 15 Feb 2014

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.