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.
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.
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.
thanks for that, saved me about 3 hours. laravel so awesome yet so frustrating.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community