problem with Loader
Permalink 1 user found helpful
Keep getting this error message:
Fatal error: Class 'Loader' not found in /themes/mysite/header.php
If I remove the
from the header, all the pages work, but I can't get at the tool bar of course. any suggestions?
Fatal error: Class 'Loader' not found in /themes/mysite/header.php
If I remove the
<?php Loader::element('header_required'); ?>
from the header, all the pages work, but I can't get at the tool bar of course. any suggestions?
thanks for replying, although I am not sure what other code to post. that is the only issue, I don't get the footer error message. All the files were uploaded correctly.
make sure all files were uploaded correctly.
Hahahaha, that could work too :)
It seems like the class Loader is not universal, I think I forgot to mention that my homepage works fine, but when I click on any sub-page it says
Fatal error: Class 'Loader' not found in..
Fatal error: Class 'Loader' not found in..
On the non-home pages, does it show any of your other html, or ONLY the "Fatal error" message (like it's just a completely white page with just that error message in black text)?
Also, can you post a link to the site that's doing this (if it's public)?
Also, can you post a link to the site that's doing this (if it's public)?
Nothing else is displayed except the error message.
I agree with Mnkras that it might be an issue with rewrite rules -- you should try turning off "Pretty URL's" in your site's dashboard, and temporarily remove the ".htaccess" file in your site's directory on your server (don't permanently delete it because you may need it again, but rename it to something like "htaccess.backup"). After doing that, see if you can get to any other pages from the Dashboard Sitemap.
Another possible cause of this problem might be if you were putting URLS in your page content (or theme templates) directly to those other files. Again, if you could provide a link to the site that would be very helpful. Or at the very least if you could paste the URL's of the failing pages here (copy from the address bar in your browser), that might help too.
Another possible cause of this problem might be if you were putting URLS in your page content (or theme templates) directly to those other files. Again, if you could provide a link to the site that would be very helpful. Or at the very least if you could paste the URL's of the failing pages here (copy from the address bar in your browser), that might help too.
Thanks, I tried that first stuff to no avail. I think your right about the urls, I have been trying to use the site I already have built, including the nav, which I guess is a problem. So I think I am starting over and just making a template, and then building all the sub-pages through the CMS. Somebody needs to develop a CMS that easily imports existing sites. lol. Anyway. Thanks again.
im guessing rewrite rules :)
Does this error occur with the footer also?
e.g. <?php Loader::element('footer_required'); ?>