mejialucy Posted May 31, 2012 Share Posted May 31, 2012 When I try to lad a modules tab, the syste says: Warning: require(/home/xxxclasses/backward_compatibility/backward.php) [function.require]: failed to open stream: No such file or directory in /home/xxx/Module.php(408) : eval()'d code on line 68 Fatal error: require() [function.require]: Failed opening required '/home/xxx/classes/backward_compatibility/backward.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxx/classes/Module.php(408) : eval()'d code on line 68 Could you help me with this? Link to comment Share on other sites More sharing options...
codegrunt Posted May 31, 2012 Share Posted May 31, 2012 Sounds like you may be mixing Prestashop and module versions. Are you sure the module in question is intended for your version of Prestashop? Link to comment Share on other sites More sharing options...
mejialucy Posted May 31, 2012 Author Share Posted May 31, 2012 Well, my problem began when i try to upgrade my prestashop from softcoulus, to a new vesion 1.4.8.2, I tried to do this, cause my site was slow and I did apply all optimisation options. Then when I upgrade, the problem started, The site doesn't wok well and I restore a prevoius backup. Every thing was ok, the only problem now is I can't see the module tab from backoffice, I don't know how tu fix this bug. Could you help me. Link to comment Share on other sites More sharing options...
codegrunt Posted May 31, 2012 Share Posted May 31, 2012 (edited) Well the issue is as the error message states - a file is missing that Prestashop is expecting to see there. So assuming everything is back as it originally was the problem will be a missing file. Hard to know what softcoulus does exactly (i.e. what version is it installing, does it make any mods, etc.) but one thing you could try would be to do a fresh install to a different directory with a different database (to avoid losing anything) and then search that install for the missing file. If you find it you can then add it back to the other install. Another option would be to sort out what version of Prestashop softcoulus installed, download an archived version of it, extract it locally and then look for the missing file. If you find it, upload it to the live server where Prestashop expects to find it based on that error message. Cheers [edit] Arrgh, reading comprehension fail as I see your subject line includes the version. I'll grab that version and take a look. . . http://www.prestashop.com/en/developers-versions Edited May 31, 2012 by codegrunt (see edit history) Link to comment Share on other sites More sharing options...
codegrunt Posted May 31, 2012 Share Posted May 31, 2012 Ok, from what I see in PS 1.4.0.17 there is no file present called "backward.php" so it sounds like you have a mix of files in place from different Prestashop versions (or your subject line is incorrect). What version does your "config/settings.inc.php" file say you have installed? If you can figure out what version is supposed to be installed you could start by replacing all core files with the ones from the official distro or doing a fresh install from scratch and then copying over any changed files from the broken install (settings file, any custom themes, etc.) If the only thing that appears to be broken is this one module tab then hopefully your issue is limited to a small number of files that either should not be there or that were not overwritten when did the restore. Cheers Link to comment Share on other sites More sharing options...
mejialucy Posted June 1, 2012 Author Share Posted June 1, 2012 (edited) Hello!!! Thanks. With patience, I restore core files. I confirm my version is 1.4.0.17 but was mixed with a new version! . OK now I an see the modules, but still show one error that i don't know how to fix: Warning : Illegal offset type in /home/xxx/admin123/tabs/AdminModules.php on line 437 Warning : Illegal offset type in /home/xxxr/admin123/tabs/AdminModules.php on line 437 Really really thanks for your help at this moment. Edited June 1, 2012 by mejialucy (see edit history) Link to comment Share on other sites More sharing options...
codegrunt Posted June 1, 2012 Share Posted June 1, 2012 (edited) I believe we are talking about this section of code: $modules = Module::getModulesOnDisk(true); foreach ($modules AS $module) { if (!in_array($module->name, $this->listNativeModules)) $serialModules .= $module->name.' '.$module->version.'-'.($module->active ? 'a' : 'i')."\n"; $moduleAuthor = $module->author; if (!empty($moduleAuthor)&& ($moduleAuthor != "")) $modulesAuthors[$moduleAuthor] = true; // this is line 437 } So the problem is that one of the modules has something unexpected for the "author" attribute that is not allowed as an array key (an object for example). You should look in the module directory for modules that are from the newer Prestashop version (and move them somewhere else) as that is the likely source of the issue. Cheers Edited June 1, 2012 by codegrunt (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts