Anon.User Posted May 7, 2020 Share Posted May 7, 2020 Hello, Sorry I'm no guru so please excuse my ignorance I've copied one of our websites as we wanted to use the current settings etc on a totally different domain. Most things are working, but when I try to access the modules in the backend a fatal error comes up as below Fatal error: Class 'AdminModulesController' not found in /home/xxxxxxxxx/public_html/classes/controller/Controller.php on line 134 line 134 is the 'return new $class' line below public static function getController($class_name, $auth = false, $ssl = false) { return new $class_name($auth, $ssl); } On the front end it's also saying the below, not sure if this helps or not...? Notice: Undefined index: connected_site in /home/xxxxxxxxx/public_html/modules/mailchimpintegration/mailchimpintegration.php on line 105 Please could someone help with this? We've got Prestashop 1.6.1.4 Many thanks in advance Annie Link to comment Share on other sites More sharing options...
Rhobur Posted May 9, 2020 Share Posted May 9, 2020 Check if you have the classes/controller/AdminController.php in place if not copy it from an 1.6.1.4 archive. The notice regarding the mailchimp module it is not related to the issue above, it is but a notice and does not impede on the site working fine. Link to comment Share on other sites More sharing options...
Anon.User Posted May 11, 2020 Author Share Posted May 11, 2020 On 5/9/2020 at 9:11 AM, Rhobur said: Check if you have the classes/controller/AdminController.php in place if not copy it from an 1.6.1.4 archive. The notice regarding the mailchimp module it is not related to the issue above, it is but a notice and does not impede on the site working fine. Expand Hello Rhobur Thanks for taking to time to reply Yes this file is in the controller folder. The website I cloned everything from is working fine, could it be that some modules aren't working because they're licensed to the other website? Many thanks Annie Link to comment Share on other sites More sharing options...
Rhobur Posted May 11, 2020 Share Posted May 11, 2020 It is not totally excluded but I doubt there's modules not working because of the domain, if it were the case I suppose there would have been a clear message displayed, not a code error. Check the server logs, apache or nginx depending on what you use, for additional error messages. Link to comment Share on other sites More sharing options...
JBW Posted May 11, 2020 Share Posted May 11, 2020 Compare the PHP Versions of the servers Link to comment Share on other sites More sharing options...
Anon.User Posted May 11, 2020 Author Share Posted May 11, 2020 On 5/11/2020 at 10:01 AM, Rhobur said: It is not totally excluded but I doubt there's modules not working because of the domain, if it were the case I suppose there would have been a clear message displayed, not a code error. Check the server logs, apache or nginx depending on what you use, for additional error messages. Expand Thanks Rhobur, looking it up would I find this in a var folder? I can't seem to see this in cpanel anywhere?? On 5/11/2020 at 11:15 AM, JBW said: Compare the PHP Versions of the servers Expand Thanks for this JBW, I've checked and these are the same. I thought we were onto something there Link to comment Share on other sites More sharing options...
Rhobur Posted May 11, 2020 Share Posted May 11, 2020 every cPanel has it , check the Error Log item. Alternatively you can find the logs in server root /var/log/apache or /var/log/nginx if the server is Linux and you have access. Link to comment Share on other sites More sharing options...
Anon.User Posted May 11, 2020 Author Share Posted May 11, 2020 (edited) On 5/11/2020 at 1:38 PM, Rhobur said: every cPanel has it , check the Error Log item. Alternatively you can find the logs in server root /var/log/apache or /var/log/nginx if the server is Linux and you have access. Expand Oh sorry, yes it was in the server I couldn't find it. There doesn't seem to be any errors on the CPanel errors page? 🤔 i've got /logs and public_html/error_log but I can't see they're saying anything very helpful Thanks for your help Edited May 11, 2020 by Anon.User (see edit history) Link to comment Share on other sites More sharing options...
Rhobur Posted May 11, 2020 Share Posted May 11, 2020 if you're on a shared hosting solution then you don't have access to the server logs other than the one from cPanel, you will have to ask your hosting provider for help in finding out id there are other more explicit errors in apache/nginx logs. You can see the /var/logs only if you have direct server access. Link to comment Share on other sites More sharing options...
Anon.User Posted May 12, 2020 Author Share Posted May 12, 2020 Thanks for your help, I paid a freelancer to take a look and there was some code missing in the below admin file. controller > admin > AdminModulecontroller.php Link to comment Share on other sites More sharing options...
Rhobur Posted May 12, 2020 Share Posted May 12, 2020 You're welcome! I doubt though there was some code missing from controllers > admin > AdminModulecontroller.php IF as advised, you verified you have the same exact file from the official 1.6.1.4 in your install. Maybe in your first local install you had a modification (from a module, override) that you lost when transferring to the second install, maybe your local controllers > admin > AdminModulecontroller.php differed from the official one. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now