TEM-Technologie Posted July 8, 2015 Share Posted July 8, 2015 Hello, something went wrong in my modules section. if i try to open it from the dashboard menu i only get this error message: [PrestaShop] Fatal error in module file :/mnt/webb/c1/23/54021023/htdocs/shop2.tem/classes/module/Module.php(1242) : eval()'d code: Can't use function return value in write context unfortunately there is no module given, which causes the error, but only the module.php file, that (i assume) just controls the modules. my question is: how do i get rid of this error without deleting all modules in the modules directory until the error does not occur any more? how do i find out which module causes the error, so i can delete that specific module? is it an module error, or is the cause somewhere else, e.g. memory allocation? thanks in advance tom Link to comment Share on other sites More sharing options...
vekia Posted July 8, 2015 Share Posted July 8, 2015 hello what is your prestashop version? everything depends on it Link to comment Share on other sites More sharing options...
TEM-Technologie Posted July 8, 2015 Author Share Posted July 8, 2015 it's Version 1.6.0.14 i hope that helps... Link to comment Share on other sites More sharing options...
vekia Posted July 8, 2015 Share Posted July 8, 2015 file: classes/Module.php at the end of __construct() function add var_dump($this->name); then try to open modules > modules section the last module name you will see is a module that have a bug 1 Link to comment Share on other sites More sharing options...
Comprar Regalo Posted June 22, 2016 Share Posted June 22, 2016 I have the same problem. PS 1.6.1.6. Thanks for help me Link to comment Share on other sites More sharing options...
iberimport Posted August 31, 2016 Share Posted August 31, 2016 something went wrong in my modules section. if i try to open it from the dashboard menu i only get this error message: Parse error: syntax error, unexpected 'use' (T_USE) in /var/www/vhosts/Kynetech.com/httpdocs/classes/module/Module.php(1361) : eval()'d code on line 28Fatal error: Interface 'PrestaShop\PrestaShop\Core\Module\WidgetInterface' not found in /var/www/vhosts/Kynetech.com/httpdocs/modules/ps_banner/ps_banner.php on line 30[PrestaShop] Fatal error in module file :/var/www/vhosts/Kynetech.com/httpdocs/modules/ps_banner/ps_banner.php:Interface 'PrestaShop\PrestaShop\Core\Module\WidgetInterface' not found Version Prestashop 1.6.1.6 Link to comment Share on other sites More sharing options...
rocky Posted September 1, 2016 Share Posted September 1, 2016 The module ps_banner is from the new PrestaShop v1.7 Classic theme. Did you try to install PrestaShop v1.7 and then roll back? Try deleting all PrestaShop v1.7 modules, as they are incompatible with PrestaShop v1.6. Link to comment Share on other sites More sharing options...
Didierma Posted September 2, 2016 Share Posted September 2, 2016 (edited) Bonjour, J'ai aujourd'hui le même problème :[PrestaShop] Fatal error in module file :/home/webethicfo/www/_ps/modules/ps_customtext/ps_customtext.php:Interface 'PrestaShop\PrestaShop\Core\Module\WidgetInterface' not foundJ'ai voulu installé un module présent dans la liste de ceux proposé dans la section module, il m'est dit qu'il y avait un problème d'installation. J'ai donc essayé de le désinstaller puisqu'il y était noté comme module installé. Là encore j'ai eu un message qui disait qu'il y avait un problème de désinstallation et maintenant il n'est plus possible d'aller sur la gestion des modules avec l'erreur ci-dessus mentionnée.Dans l'erreur du module il était noté, je crois, qu'il s'agissait de "editorial" mais je ne me rappelle plus du nom exact du module. C'était un module pour ajouter du des blocs de texte.Que faire ???Version Prestashop : 1.6.1.5MerciCordialementDidier. Edited September 2, 2016 by Didierma (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted September 3, 2016 Share Posted September 3, 2016 The ps_customtext module is a PrestaShop v1.7 module, so it won't work on your PrestaShop v1.6.1.5 installation. You must delete that module and any other modules starting with ps_ until you're using PrestaShop v1.7. Link to comment Share on other sites More sharing options...
amitkher Posted September 5, 2016 Share Posted September 5, 2016 I was trying to get through an installation of a module, but now i have hit an error. I cant access the modules & services page - [PrestaShop] Fatal error in module file :/home/***/public_html/modules/ps_emailsubscription/ps_emailsubscription.php: Interface 'PrestaShop\PrestaShop\Core\Module\WidgetInterface' not found Any Link to comment Share on other sites More sharing options...
rocky Posted September 5, 2016 Share Posted September 5, 2016 That's a PrestaShop v1.7 module. That error message makes me think you're using PrestaShop v1.6 or earlier. If you are using PrestaShop v1.6 or earlier, you can't use that module. If you are using PrestaShop v1.7, make sure all the files are there. Link to comment Share on other sites More sharing options...
sbempire Posted September 5, 2016 Share Posted September 5, 2016 Hi everyone, I tried installing a new module and got the same error as being discussed here "[PrestaShop] Fatal error in module file :/home/kisshoes/public_html/modules/blockreassurance/blockreassurance.php:Interface 'PrestaShop\PrestaShop\Core\Module\WidgetInterface' not found" Since I am still using Ps v. 1.6.1.6, I went back to my server and deleted the module I tried to install (Blockreassurance). After I deleted the module, it did not fix the problem. Right now I can't access my module interface, each time I click on the module a white blank page with fatal error notice shows up. Was any body able to fix the problem? Please let me know how you did it. Regards Link to comment Share on other sites More sharing options...
vekia Posted September 5, 2016 Share Posted September 5, 2016 from where you downloaded the blockreassurance module? isnt it from a github (for ps 1.7) ? Link to comment Share on other sites More sharing options...
sbempire Posted September 5, 2016 Share Posted September 5, 2016 I did not download it. I just found it in my modules cpanel and the button showed install, I clicked on the install and the problem occured Link to comment Share on other sites More sharing options...
iberimport Posted September 5, 2016 Share Posted September 5, 2016 Para solucionar los problemas con los modulos de ps_XXXXXXXx hay que entrar por FTP a su Host y eliminar la carpeta la ruta de acceso suele ser public_html/modules y eliminar la carpeta del modulo ps_XXXXX que corresponda. yo lo hice asi y me dejo funcionar la administracion de modulos Link to comment Share on other sites More sharing options...
iberimport Posted September 5, 2016 Share Posted September 5, 2016 Pour résoudre le problème avec l'installation de modules ps_XXXXXXX, vous devez entrer votre dossier hôte FTP et supprimer le ps_wwwww, le chemin est généralement public_html / modules ou httpdocs / modules. Supprimez le dossier qui correspond le module ps_XXXXX. Je l'ai fait et laissez-moi gérer les modules To solve the problem with the installation of ps_XXXXXXX modules, enter your FTP host folder and delete the ps_wwwww, the path is usually public_html / modules or httpdocs / modules. Delete the folder that corresponds ps_XXXXX module. I did and let me manage modules Link to comment Share on other sites More sharing options...
sbempire Posted September 5, 2016 Share Posted September 5, 2016 Thank you iberimport for the info. I have search everywhere in my module and didn't find any file or folder named ps_??????. However, I found this strange folder "/public_html/modules/ecb15e71076765c866bbd778828682cb", I open it and blockreassurance/blockreassurance.php was inside. I deleted the folder still the problem remained. I wonder where else to search for the Ps_XXXXXX Link to comment Share on other sites More sharing options...
rocky Posted September 6, 2016 Share Posted September 6, 2016 I just discovered this is a bug. PrestaShop v1.6 is showing PrestaShop v1.7 modules as available to install. Do not install these modules, since it will cause the fatal error described above. 1 Link to comment Share on other sites More sharing options...
sbempire Posted September 6, 2016 Share Posted September 6, 2016 Thanks guys for your support. I finally was able to see another blockreassurance module I did not delete. So I deleted it and the problem was fixed. Thank you all and nice day to you all Link to comment Share on other sites More sharing options...
katicziv Posted September 21, 2016 Share Posted September 21, 2016 Same things happened Presta 1.6.1.6.I deleted it and the problem was fixed. Link to comment Share on other sites More sharing options...
noigiochiamo Posted December 29, 2016 Share Posted December 29, 2016 (edited) Hello this is my error, could you help me? [PrestaShop] Fatal error in module file :/home/uslac3qm/domains/noigiochiamo.it/public_html/classes/module/Module.php(1361) : eval()'d code:Can't use function return value in write context In didn't find file in classes/Module.php Edited December 29, 2016 by noigiochiamo (see edit history) Link to comment Share on other sites More sharing options...
lily fairy Posted December 29, 2016 Share Posted December 29, 2016 j ai eu le souci en passant le site de 1.6.1.9 à 1.6.1.10 j ai remis la sauvegarde et l erreur a disparu Link to comment Share on other sites More sharing options...
Christophe13 Posted December 29, 2016 Share Posted December 29, 2016 Je viens d'avoir la même erreur en mettant a jour le module Productscomments. Apparemment il se met a jour en version 1.7 alors que je suis en 1.6. Pour résoudre le problème j'ai supprimé dans modules le dossier productcomments et le dossier bizarre sdf0sf0sdfsf0sd0f qui a été créé pendant la mise à jour. j'ai aussi supprimé le prodcutcomments.zip qui a été créé dans modules. Je peux a nouveau accéder à mes modules mais du coup impossible de réinstaller productcomments en 1.6... Prestashop vous avez une solution pour réinstaller ce module sur nos versions 1.6? Link to comment Share on other sites More sharing options...
lily fairy Posted December 29, 2016 Share Posted December 29, 2016 Je viens d'avoir la même erreur en mettant a jour le module Productscomments. Apparemment il se met a jour en version 1.7 alors que je suis en 1.6. Pour résoudre le problème j'ai supprimé dans modules le dossier productcomments et le dossier bizarre sdf0sf0sdfsf0sd0f qui a été créé pendant la mise à jour. j'ai aussi supprimé le prodcutcomments.zip qui a été créé dans modules. Je peux a nouveau accéder à mes modules mais du coup impossible de réinstaller productcomments en 1.6... Prestashop vous avez une solution pour réinstaller ce module sur nos versions 1.6? tu as plusieurs solutions 1/ tu as une sauvegarde ftp de ta boutique et tu remets les dossiers manquants (modules/productscomments) 2/ tu installes une version 'test' de prestashop 1.6 sur ton serveur et tu récupères les dossiers manquants 3/ tu les récupères de kk un qui à la même version que toi de prestashop Link to comment Share on other sites More sharing options...
noigiochiamo Posted December 30, 2016 Share Posted December 30, 2016 (edited) I've got a solution about productcomments module in another post: /home/*********/public_html/modules/productcomments/productcomments.php line 459 Beforeif (empty(Configuration::get('PRODUCT_COMMENTS_MODERATE'))){Afterif (!Configuration::get('PRODUCT_COMMENTS_MODERATE')){ NOW IT WORKS AGAIN! Edited December 30, 2016 by noigiochiamo (see edit history) Link to comment Share on other sites More sharing options...
izfair Posted January 25, 2017 Share Posted January 25, 2017 HI I'm also getting this when I click on Modules and Services: [PrestaShop] Fatal error in module file :/web/htdocs/www.prematuriamo.it/home/modules/blockreassurance/blockreassurance.php:Interface 'PrestaShop\PrestaShop\Core\Module\WidgetInterface' not found Any idea on how to activate the Database Cleaner, to get rid of all demo content from my shop, please? Thanks!! 1 Link to comment Share on other sites More sharing options...
rocky Posted January 26, 2017 Share Posted January 26, 2017 From that error message, it would appear you're using the blockreassurance module from PrestaShop v1.7 in PrestaShop v1.6, which won't work since it doesn't support widgets. You should delete that module and use the blockreinsurance module from the original PrestaShop v1.6 archive instead. Link to comment Share on other sites More sharing options...
django Posted January 29, 2017 Share Posted January 29, 2017 Please help! I cant open Modules in BO, I'm receiving blank screen with error: [PrestaShop] Fatal error in module Parser:require_once(): Failed opening required '/var/www/xxxxxx/data/www/xxxxxx/tools/pear_xml_parser//var/www/xxxxxx/data/www/xxxxxxx/tools/pear_xml_parser/Parser/Type.php' (include_path='.:') Prestashop v. 1.6.0.6 Theme default-bootstrap Version PHP 5.4.45 Link to comment Share on other sites More sharing options...
sabin Posted February 16, 2017 Share Posted February 16, 2017 Hi, I have the same problem after I have updated my shop to 1.6.1.11 [PrestaShop] Fatal error in module file: ***** / classes / module / Module.php (1361): eval () 'd code: Can not use function return value in write context I have removed productcomments forlder but still the same error. Does anyone else have any idea of what I can do? Thanks! Link to comment Share on other sites More sharing options...
twinsenf Posted February 17, 2017 Share Posted February 17, 2017 using prestashop 1.6.1.11 after the auto 1-click update from 1.4, cannot get into the module tab in admin..... showing: Parse error: syntax error, unexpected '[' in /var/www/html/classes/module/Module.php(1361) : eval()'d code on line 19 Fatal error: Can't use function return value in write context in /var/www/html/classes/module/Module.php(1361) : eval()'d code on line 934 [PrestaShop] Fatal error in module file :/var/www/html/classes/module/Module.php(1361) : eval()'d code: Can't use function return value in write context how should i get over it ? Link to comment Share on other sites More sharing options...
rocky Posted February 18, 2017 Share Posted February 18, 2017 Unfortunately, the error message doesn't say which modules is causing the error. You'll have to make a backup of your modules and then delete them one at a time until the error message disappears, then you'll know which module is causing the error. Link to comment Share on other sites More sharing options...
i-techprotect Posted April 27, 2017 Share Posted April 27, 2017 i have a same problem when i click on module and service : [PrestaShop] Fatal error in module file :/home/clients/d445c932dd012d9a02d7211ea2f2f5fb/web/e-commerce/classes/module/Module.php(1361) : eval()'d code: syntax error, unexpected 'use' (T_USE) help me please 1 Link to comment Share on other sites More sharing options...
Jesus M Posted January 18, 2018 Share Posted January 18, 2018 (edited) I have a same problem when i click on module and service : [PrestaShop] Fatal error in module file :xxxxxxxx/classes/module/Module.php(1361) : eval()'d code: syntax error, unexpected 'use' (T_USE) help me please Edited January 18, 2018 by Jesus M (see edit history) Link to comment Share on other sites More sharing options...
karola Posted March 2, 2018 Share Posted March 2, 2018 (edited) I've got 1.7 and while open the admin link I've got the following: ContextErrorException in PrestaShopExtension.php line 49: Notice: Undefined index: prestatrust in PrestaShopExtension.php line 49 at ErrorHandler->handleError('8', 'Undefined index: prestatrust', '/var/www/public_html/pinswear.pl/public_html/src/PrestaShopBundle/DependencyInjection/PrestaShopExtension.php', '49', array('configs' => array(array('addons' => array('api_client' => array('ttl' => '7200'))), array('addons' => array('api_client' => array('ttl' => '300')))), 'container' => object(ContainerBuilder), 'configuration' => object(AddOnsConfiguration), 'config' => array('addons' => array('api_client' => array('ttl' => '300', 'verify_ssl' => '/var/www/public_html/pinswear.pl/public_html/app/cache/dev/cacert.pem'))), 'loader' => object(YamlFileLoader))) in PrestaShopExtension.php line 49 at PrestaShopExtension->load(array(array('addons' => array('api_client' => array('ttl' => '7200'))), array('addons' => array('api_client' => array('ttl' => '300')))), object(ContainerBuilder)) in MergeExtensionConfigurationPass.php line 59 at MergeExtensionConfigurationPass->process(object(ContainerBuilder)) in MergeExtensionConfigurationPass.php line 39 at MergeExtensionConfigurationPass->process(object(ContainerBuilder)) in Compiler.php line 102 at Compiler->compile(object(ContainerBuilder)) in ContainerBuilder.php line 583 at ContainerBuilder->compile() in bootstrap.php.cache line 2754 at Kernel->initializeContainer() in bootstrap.php.cache line 2529 at Kernel->boot() in bootstrap.php.cache line 2560 at Kernel->handle(object(Request), '1', false) in index.php line 86 Anyone can knows how to fix this? Edited March 2, 2018 by karola (see edit history) Link to comment Share on other sites More sharing options...
HaCos Posted March 16, 2018 Share Posted March 16, 2018 (edited) Same error when i updated 1.6.0.9 to 1.6.1.18 "PrestaShop] Fatal error in module file :/opt/bitnami/apps/prestashop/htdocs/classes/module/Module.php(1363) : eval()'d code: Can't use function return value in write context" Edited March 16, 2018 by HaCos (see edit history) Link to comment Share on other sites More sharing options...
abconnect Posted June 7, 2018 Share Posted June 7, 2018 Bonjour, j'ai le probleme suivant apres avoir voulu installer un module 1.7 je pense sur une version 1.6. des que je veux aller dans l'onglet module j'ai ce message d'erreur . [PrestaShop] Fatal error in module file :/home/toysavenpt/www/classes/module/Module.php(1361) : eval()'d code:syntax error, unexpected 'use' (T_USE) Merci de votre aide Link to comment Share on other sites More sharing options...
algisna Posted September 3, 2018 Share Posted September 3, 2018 On 2015-07-08 at 12:42 PM, vekia said: file: classes/Module.php at the end of __construct() function add var_dump($this->name); then try to open modules > modules section the last module name you will see is a module that have a bug I have tried this method, but after deleting the last module, next time it gives the previous module in the list and so on.. Any idea how to track the one that gives error? BTW clearing cache helps opening "modules" once, but clicking on it again gives the same error. Link to comment Share on other sites More sharing options...
sbempire Posted September 3, 2018 Share Posted September 3, 2018 "You are not authorized to configure a module" error If click on my modules to configure it I get this error - You are not authorized to configure a module, even though I am logged in as superadmin. This issue started after I removed my ps-access table and replaced it with a clean ps-access DB as I had problem accessing my orders and stats menu. This action solved the issue I had with orders and stats menu, however, it caused issues to configure my modules. The Issues from controller folder admin_access and var folder cache_dev_smarty_compile. In the image below are more details and location of the errors Please if you have explanations for the issues please do help! Link to comment Share on other sites More sharing options...
doorrollermanjim Posted February 6, 2019 Share Posted February 6, 2019 i get this error message [PrestaShop] Fatal error in module file :/home1/showerd7/public_html/classes/module/Module.php(1363) : eval()'d code: syntax error, unexpected '?' when i try and click on modules and services on my BO , i have prestashop version 1.6.1.19 how can i fix this problem ? Link to comment Share on other sites More sharing options...
globals Posted February 26, 2019 Share Posted February 26, 2019 (edited) Quote file: classes/module/Module.php at the end of __construct() function add var_dump($this->name); then try to open modules > modules section And rename the module after the last module listed by FTP Edited February 26, 2019 by globals (see edit history) Link to comment Share on other sites More sharing options...
Andrea2605 Posted March 6, 2019 Share Posted March 6, 2019 buen día . al entrar a modulos y servicios me sale el siguiente error.. [PrestaShop] Fatal error in module file :/home/sistem1/public_html/classes/module/Module.php(1361) : eval()'d code:syntax error, unexpected 'use' (T_USE) alguien me puede ayudar... ya que necesito configurar el método de pago y tampoco me deja. Link to comment Share on other sites More sharing options...
katicziv Posted March 6, 2019 Share Posted March 6, 2019 Andrea2605 Prestashop version? Php version on server? Link to comment Share on other sites More sharing options...
Andrea2605 Posted March 6, 2019 Share Posted March 6, 2019 prestashop .. 1.6.1.23 php. 7.2.15 Link to comment Share on other sites More sharing options...
katicziv Posted March 7, 2019 Share Posted March 7, 2019 Andrea2605 question for you: Think carefully, what is the last installed module on site (did you install new module on Presta?) if the ansver is "YES" please write which one? If your Prestashop 1.6.1.23 is clean istallation and problem with module exist from start, please make one test and change your php settings from 7.2. to 5.6 or lower and then go to modules page on Prestashop. Please write here what is happened, can you reach the modules or not. Link to comment Share on other sites More sharing options...
katicziv Posted March 7, 2019 Share Posted March 7, 2019 It is possible that some of modules isn't write for use on php 7.2.15 this mean you need to downgrade your php settings. I had a case with the AfterPay Module. After insttalation Afterpay module Prestashop reported error when I try to reach modules page. After I changed php settings all works well. Link to comment Share on other sites More sharing options...
katicziv Posted March 7, 2019 Share Posted March 7, 2019 This mean you need to remove last installed module via ftp downgrade php settings try to install same module again. Link to comment Share on other sites More sharing options...
katicziv Posted March 7, 2019 Share Posted March 7, 2019 (edited) Prestashop is an excellent software and after installation all should work properly, unfortunately we made mistakes, we often overlook the necessary settings or conditions. Edited March 7, 2019 by katicziv (see edit history) Link to comment Share on other sites More sharing options...
Christopher Norway Posted April 10, 2019 Share Posted April 10, 2019 I get the following - >> >> Fatal error: Can't use function return value in write context in >> /var/www/html/ >> www.xxx.no/modules/mailchimppro/mailchimppro.php on line 247 >> [PrestaShop] Fatal error in module file :/var/www/html/ >> www.xxx.no/modules/mailchimppro/mailchimppro.php: >> Can't use function return value in write context Anyone? Link to comment Share on other sites More sharing options...
Christopher Norway Posted April 10, 2019 Share Posted April 10, 2019 Now i get - Notice på linje 1942 i fil /var/www/html/www.xxx.no/classes/controller/AdminController.php[8] Trying to get property of non-objectNotice på linje 1942 i fil /var/www/html/www.xxx.no/classes/controller/AdminController.php[8] Trying to get property of non-object Any Ambassadors with some knowledge about this? Seems like the mailchimp module interupt the php in some way. Link to comment Share on other sites More sharing options...
katicziv Posted April 10, 2019 Share Posted April 10, 2019 Christopher Norway what is your Prestashop version and PHP version? Link to comment Share on other sites More sharing options...
Christopher Norway Posted April 10, 2019 Share Posted April 10, 2019 Version - 1.6.0.11 Not sure about the php version. (not a developer for this site so i dont have access to backend) Link to comment Share on other sites More sharing options...
katicziv Posted April 10, 2019 Share Posted April 10, 2019 (edited) Go to BO (back office) choose ADVANCED PARAMETERS then choose CONFIGURATION INFORMATION Edited April 10, 2019 by katicziv (see edit history) Link to comment Share on other sites More sharing options...
Christopher Norway Posted April 10, 2019 Share Posted April 10, 2019 Not possible. I get the following when i try - Notice på linje 1942 i fil /var/www/html/www.xxx.no/classes/controller/AdminController.php[8] Trying to get property of non-object Link to comment Share on other sites More sharing options...
katicziv Posted April 10, 2019 Share Posted April 10, 2019 If you can't login to BO and If you have ftp access, go to modules folder and find your mailchimp folder, then rename it. After this try to log in to BO again Link to comment Share on other sites More sharing options...
Christopher Norway Posted April 10, 2019 Share Posted April 10, 2019 Does not help to rename or delete! Link to comment Share on other sites More sharing options...
katicziv Posted April 10, 2019 Share Posted April 10, 2019 (edited) Your website is on PHP 5.3.3 You should try to change to PHP 5.6 and then try to login (before that change back the folder name maichimp)always clean the browser cache manualy after you made "changes" on site Edited April 10, 2019 by katicziv (see edit history) Link to comment Share on other sites More sharing options...
jinojames Posted June 21, 2019 Share Posted June 21, 2019 (edited) Fatal error in module Module.php(1208) : eval()'d : Can't use function return value in write context this is the 1208th Line Quote if (eval('if (false){ '.$file.' }') !== false) Help Please Edited June 21, 2019 by jinojames Added a line (see edit history) Link to comment Share on other sites More sharing options...
Magnus Lundh Posted August 18, 2019 Share Posted August 18, 2019 Hi, Im a newbi:) Been sitting for 7 hours tring to solve this problem........ Im having 1.6.1.17 When Im clicking at Modul & Service I get this white page with this text........... "[PrestaShop] Fatal error in module file :/customers/1/0/9/autosolaris.se/httpd.www/modules/google-captcha/google-captcha.php: Uncaught Error: Call to undefined function register_activation_hook() in /customers/1/0/9/autosolaris.se/httpd.www/modules/google-captcha/google-captcha.php:1171 Stack trace: #0 /customers/1/0/9/autosolaris.se/httpd.www/classes/module/Module.php(1129): include_once() #1 /customers/1/0/9/autosolaris.se/httpd.www/classes/module/Module.php(1107): ModuleCore::coreLoadModule('google-captcha') #2 /customers/1/0/9/autosolaris.se/httpd.www/classes/module/Module.php(1841): ModuleCore::getInstanceByName('google-captcha') #3 /customers/1/0/9/autosolaris.se/httpd.www/classes/module/Module.php(1795): ModuleCore::checkModuleFromAddonsApi('google-captcha') #4 /customers/1/0/9/autosolaris.se/httpd.www/classes/module/Module.php(1699): ModuleCore::generateTrustedXml() #5 /customers/1/0/9/autosolaris.se/httpd.www/classes/module/Module.php(1334): ModuleCore::isModuleTrusted('advancedeucompl...') #6 /customers/1/0/9/autosolaris.se/httpd.www/controllers/admin/AdminModulesController.php(1443): ModuleCore::getModulesOnDisk(true, tru" Before I tried to install this captcha-modul so I guess its about that. Any recomendations?:) Link to comment Share on other sites More sharing options...
katicziv Posted August 18, 2019 Share Posted August 18, 2019 (edited) Go to folder with modules, find captcha folder and remove (delete) you can do this from ftp connection of file manager from cPanel. After you remove this module try to find compatible module version for your prestashop version. or change or increase your php settings to new (be sure that your version of prestashop is supporting this php)https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/ For best software performance and stable work, please use recommended PHP version & settings Edited January 29, 2020 by katicziv Additional information (see edit history) 1 Link to comment Share on other sites More sharing options...
Magnus Lundh Posted August 19, 2019 Share Posted August 19, 2019 Big thank you Katicziv!! Now I will try to find a compatible module version.... Its still strange because i have php 7.1............. Link to comment Share on other sites More sharing options...
Paco7791 Posted November 2, 2019 Share Posted November 2, 2019 Hi, I have the follow problem..."[PrestaShop] Fatal error in module file :/home/pieljove/public_html/classes/module/Module.php(1361) : eval()'d code: syntax error, unexpected 'use' (T_USE)" I hope you can help me with this isue. Thank you so much Prestashop version 1.6.1.24 Link to comment Share on other sites More sharing options...
Ludho Posted November 14, 2019 Share Posted November 14, 2019 Hi. So we installed a module and after 5 minutes we deleted it. After that, when we tried to go back at module and servirces this message appear : [PrestaShop] Fatal error in module file :/homepages/12/d690035964/htdocs/classes/module/Module.php(1361) : eval()'d code: syntax error, unexpected 'use' (T_USE) i dont know how to repare it.... can someone help me please ?? our version of prestshop is 1.6.1.12 Link to comment Share on other sites More sharing options...
lovemyseo Posted January 25, 2020 Share Posted January 25, 2020 On 7/8/2015 at 2:42 AM, vekia said: file: classes/Module.php at the end of __construct() function add var_dump($this->name); then try to open modules > modules section the last module name you will see is a module that have a bug Hi am am using prestashop version 11.6.1.23 and getting this error [PrestaShop] Fatal error in module file :/home/goelectr/public_html/modules/smartblogaddthisbutton/smartblogaddthisbutton.php: can not acces module section do you know how to fix? Link to comment Share on other sites More sharing options...
Lellone Posted January 27, 2020 Share Posted January 27, 2020 (edited) same problem in the backoffice: https://www.flowired.com/Backoffice/index.php?controller=AdminPayment&token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx Parse error: syntax error, unexpected 'use' (T_USE) in /var/www/vhosts/flowired.com/httpdocs/classes/module/Module.php(1364) : eval()'d code on line 27 Prestashop version 1.6.1.24 Edited January 28, 2020 by Lellone (see edit history) Link to comment Share on other sites More sharing options...
globals Posted January 29, 2020 Share Posted January 29, 2020 php: Display errors = ON file: classes/Module.php at the end of __construct() function add var_dump($this->name); then try to open modules > modules section the last module name you will see is a module that have a bug to access, rename the module after the last module listed using FTP. Link to comment Share on other sites More sharing options...
katicziv Posted January 29, 2020 Share Posted January 29, 2020 Dear Prestashop users, this information is important to avoid any problem with modules functions. 1. Be sure that you are use recommended PHP version & PHP settings for your Prestashop version https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/ 2. Before module installation be sure that your module is written for your Prestashop version. 3. If you have your store already installed on supported but not recommended PHP and you cannot install module written for your Prestashop version try to update your PHP version to recomended. Example: Prestashop 1.6. on php 5.5 - It was not possible to install "Afterpay" module written for this version of Prestashop, but after I changed the php to 5.6 everything was go smoothly. 1 Link to comment Share on other sites More sharing options...
jinojames Posted March 4, 2020 Share Posted March 4, 2020 I am having a error 500 on prestashop. Can anyone tell me what to do ? I recently upgraded my php version to 7.3 in my hosting account. Is it because this ? If yes, How to solve the issue ? Link to comment Share on other sites More sharing options...
katicziv Posted March 4, 2020 Share Posted March 4, 2020 For PHP 7.3 you need to have Prestashop 1.7.7 If your Prestashop is not latest version you need to decrease your PHP according to your prestashop version Link to comment Share on other sites More sharing options...
katicziv Posted March 4, 2020 Share Posted March 4, 2020 If you already have installed Prestashop version compatible with PHP 7.3 please read this https://www.prestashop.com/en/blog/the-500-internal-server-error-explained-solved?ab=1 Link to comment Share on other sites More sharing options...
jinojames Posted March 5, 2020 Share Posted March 5, 2020 18 hours ago, katicziv said: For PHP 7.3 you need to have Prestashop 1.7.7 If your Prestashop is not latest version you need to decrease your PHP according to your prestashop version Hi, Can you tell me from where can I download version 1.7.7 ? All I am seeing is 1.7.6x and When I try to configure 1-Click Upgrade module I am getting the following error.. Quote Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Can anyone help me ? Link to comment Share on other sites More sharing options...
katicziv Posted March 5, 2020 Share Posted March 5, 2020 (edited) Before you install compatible version of Prestashop with your PHP version on server you need to this:https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/ Also you can use documentation for each version of prestashop from herehttp://doc.prestashop.com/ Latest version is located for download here: https://www.prestashop.com/en/download?ab=1 When you have error: it's a clear message that you are: not properly configured server settings, (check your PHP settings on server) - read about it on link in previous post, or your module is not for compatible with this prestashop version (only in case if you are uploaded module to store) or your module is not for compatible with PHP version on server. (try to start module after you change PHP version (new/old)) Edited March 5, 2020 by katicziv I want to be more clear (see edit history) Link to comment Share on other sites More sharing options...
jinojames Posted March 5, 2020 Share Posted March 5, 2020 (edited) Hi, I tried changing the php versions. But If I change it to 7.0 my back end is throwing error 500 and from 7.1 onwards, both back end and front end are throwing error 500. Only php 5.6 is working with my store and it is throwing error when I try to configure 1 click upgrade module. What settings I maybe missing in my php ? do you have any Idea ? The following is the error I got by turning on the error reporting Quote Strict Standards: Declaration of Dispatcher::loadRoutes() should be compatible with DispatcherCore::loadRoutes($id_shop = NULL) in /hermes/walnaweb14a/b538/moo.edallcoin/EDALLHOBBY/override/classes/Dispatcher.php on line 16 Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnaweb14a/b538/moo.edallcoin/EDALLHOBBY/override/classes/Dispatcher.php:16) in /hermes/walnaweb14a/b538/moo.edallcoin/EDALLHOBBY/classes/controller/FrontController.php on line 790 Edited March 5, 2020 by jinojames Change (see edit history) Link to comment Share on other sites More sharing options...
katicziv Posted March 5, 2020 Share Posted March 5, 2020 On your cPanel of your server you have PHP settings like this You need to turn ON extensions that is needed for Prestashop (read about it on previous post link) and then press "Switch to PHP options" and set what is needed for prestashop (read about it on previous post link) Link to comment Share on other sites More sharing options...
jinojames Posted March 5, 2020 Share Posted March 5, 2020 (edited) I am using Fatcow and I couldn't find any of these settings Here's where I change php versions. Edited March 5, 2020 by jinojames (see edit history) Link to comment Share on other sites More sharing options...
katicziv Posted March 5, 2020 Share Posted March 5, 2020 There is a way to do this, send email to technical support and ask them what you need to change: PHP version to turn ON PHP extension (make a list) to set PHP options (make a list) If they cannot do this consider to change your host provider Link to comment Share on other sites More sharing options...
jinojames Posted March 5, 2020 Share Posted March 5, 2020 Okay. Thank you for the suggestion, I am contacting them right away. Will update once they do the necessary things. Link to comment Share on other sites More sharing options...
jinojames Posted March 12, 2020 Share Posted March 12, 2020 Hi, I managed to install auto upgrade 1.6.8 module and make it work. Since I am on a shared hosting service, I can't upgrade my prestashop any more than 1.6.1.15 So when I did the upgrade everything was working fine until it showed this error. Quote error for copying /modules/sendtoafriend/index.php Error when trying to upgrade file /modules/sendtoafriend/index.php Can anyone tell me the solution for this problem ? This happened two times for me. and this module can't be deleted since it is a default module from prestashop. Link to comment Share on other sites More sharing options...
katicziv Posted March 12, 2020 Share Posted March 12, 2020 All modules that you use should be compatible with your version of Prestashop or with version that you intent to use. So far you have problem with "sendtoafriend" module. Link to comment Share on other sites More sharing options...
jinojames Posted March 12, 2020 Share Posted March 12, 2020 1 hour ago, katicziv said: All modules that you use should be compatible with your version of Prestashop or with version that you intent to use. So far you have problem with "sendtoafriend" module. Do you know how to fix this issue ? I tried deleting but there were no options to delete this module. Link to comment Share on other sites More sharing options...
katicziv Posted March 12, 2020 Share Posted March 12, 2020 Login in your cPanel - use file manager - find the folder with will all modules inside (modules) go inside - find the folder with name "sendtoafriend" - use ZIP to compress whole folder (to keep it just in case you need it) - then delete this folder with name "sendtoafriend". After this you can login to Back office of your store, go to modules menu and install new version "compatible" of this module module if you intent to use on your site. Link to comment Share on other sites More sharing options...
jinojames Posted March 12, 2020 Share Posted March 12, 2020 12 minutes ago, katicziv said: Login in your cPanel - use file manager - find the folder with will all modules inside (modules) go inside - find the folder with name "sendtoafriend" - use ZIP to compress whole folder (to keep it just in case you need it) - then delete this folder with name "sendtoafriend". After this you can login to Back office of your store, go to modules menu and install new version "compatible" of this module module if you intent to use on your site. Okay. I will try this and will update here. Thanks in Advance Link to comment Share on other sites More sharing options...
jinojames Posted March 16, 2020 Share Posted March 16, 2020 Hi @katicziv I managed to install and run prestashop 1.6.1.15 as Fatcow supports till this version on shared hosting. But Still my backend is not running If I change my php version to 7.0 or higher Front end is working Fine. And One more annoying thing is that the spam emails from @qq.com through my webmaster. Is there any way I could stop these spam ? I have spam customer registrations previously and it has been resolved by reCaptcha. But this messages are keep on coming. Like 50+ messages in a Day. It would be great if there are some method to stop this SPAM. Link to comment Share on other sites More sharing options...
num47 Posted April 19, 2020 Share Posted April 19, 2020 I had faced the problem after Installing the MailChimp Module. I mean, i needed a system to send transactional emails to my customers because my customers who are using yahoo mail were not getting any emails because yahoo has black listed the shared server's IP i am using. I was trying to configure the Sendinblue but somehow i couldn't get it worked. Anyway, Long Story Short - Don't install MailChimp if you do not plan to use it because you will face this problem once you try to uninstall it. This has happened on the Latest version of Prestashop 1.6 Link to comment Share on other sites More sharing options...
Samuel Park Posted November 20, 2020 Share Posted November 20, 2020 On 4/19/2020 at 10:02 AM, num47 said: I had faced the problem after Installing the MailChimp Module. I mean, i needed a system to send transactional emails to my customers because my customers who are using yahoo mail were not getting any emails because yahoo has black listed the shared server's IP i am using. I was trying to configure the Sendinblue but somehow i couldn't get it worked. Anyway, Long Story Short - Don't install MailChimp if you do not plan to use it because you will face this problem once you try to uninstall it. This has happened on the Latest version of Prestashop 1.6 Hello, Our e shop is www.handaum.cz I tried installing the below module as below,https://addons.prestashop.com/en/analytics-statistics/49583-prestashop-metrics-beta.html An error occurred in the installation as below, [PrestaShop] Fatal error in module file :/handaum122/www/modules/ps_metrics/ps_metrics.php: require_once(): Failed opening required '/handaum122/www/modules/ps_metrics/vendor/autoload.php' (include_path='/handaum122/www/tools/htmlpurifier/standalone:.:/usr/local/php55/lib/php:/handaum122/www/modules/wirecardceecheckoutseamless/vendor:/handaum122/www/modules/wirecardceecheckoutseamless/models:/handaum122/www/modules/wirecardceecheckoutseamless/vendor:/handaum122/www/modules/wirecardceecheckoutseamless/models') Could you see the above error and fix it? Please check and answer. Thanks a lot. Link to comment Share on other sites More sharing options...
gnut Posted December 9, 2020 Share Posted December 9, 2020 This is only solution that worked on my shop (1.6.1.7) 1) Open file \classes\module\Module.php 2) Search this line: if (eval('if (false){ '.$file.' }') !== false) 3) Add this code above line in step 2: $file = preg_replace('/\n[\s\t]*?use\s.*?;/', '', $file); Link to comment Share on other sites More sharing options...
shubharora734 Posted December 11, 2020 Share Posted December 11, 2020 (edited) That's a PrestaShop v1.7 module. That error message makes me think you're using PrestaShop v1.6 or earlier. If you are using PrestaShop v1.6 or earlier, you can't use that module Teatv boi hrms Edited October 2, 2021 by shubharora734 (see edit history) Link to comment Share on other sites More sharing options...
Lara - new to presta Posted February 2, 2021 Share Posted February 2, 2021 (edited) Hi All, We have Prestashop 1.6.1.17 and I have downloaded Mailchimp yesterday and now no longer have access to the module section. I always receive the following error: [PrestaShop] Fatal error in module file :/data/sites/web/xxxx/www/classes/module/Module.php(1361) : eval()'d code: syntax error, unexpected 'use' (T_USE) How can I resolve this? Only started using Prestashop on 1/1/2021 so still a newby 🙂 Thank you for the help! Kr, Lara Edited February 2, 2021 by Lara - new to presta (see edit history) Link to comment Share on other sites More sharing options...
num47 Posted February 2, 2021 Share Posted February 2, 2021 (edited) 5 hours ago, Lara - new to presta said: Hi All, We have Prestashop 1.6.1.17 and I have downloaded Mailchimp yesterday and now no longer have access to the module section. I always receive the following error: [PrestaShop] Fatal error in module file :/data/sites/web/xxxx/www/classes/module/Module.php(1361) : eval()'d code: syntax error, unexpected 'use' (T_USE) How can I resolve this? Only started using Prestashop on 1/1/2021 so still a newby 🙂 Thank you for the help! Kr, Lara Did you try to uninstall the module? Just delete the Mailchimp module folder from the server. It will get fixed automatically. Edited February 2, 2021 by num47 small mistake (see edit history) Link to comment Share on other sites More sharing options...
Lara - new to presta Posted February 3, 2021 Share Posted February 3, 2021 Yes, thank you! Worked like a charm. Told you I am a newbie ;-) Thanx again @num47 Link to comment Share on other sites More sharing options...
nmbhulani Posted March 29, 2021 Share Posted March 29, 2021 On 7/8/2015 at 3:12 PM, vekia said: file: classes/Module.php at the end of __construct() function add var_dump($this->name); then try to open modules > modules section the last module name you will see is a module that have a bug The module *after* the last module name that you see has an error. This helped me solve my problem. Thanks Link to comment Share on other sites More sharing options...
msmetfc Posted December 29, 2021 Share Posted December 29, 2021 thanks Link to comment Share on other sites More sharing options...
Griffon Posted January 7, 2022 Share Posted January 7, 2022 On 7/8/2015 at 12:42 PM, vekia said: file: classes/Module.php at the end of __construct() function add var_dump($this->name); then try to open modules > modules section the last module name you will see is a module that have a bug in 1.6.1.24 what should i do? Link to comment Share on other sites More sharing options...
teatvhd Posted August 3, 2023 Share Posted August 3, 2023 PrestaShop is an add-on that extends the functionality of the e-commerce platform. It allows you to add new features, integrate with third-party services, or modify existing functionalities. https://www.prestashop.com/en/blog/the-500-internal-server-error-explained-solved?ab=1 PrestaShop v1.7 is a specific version of the e-commerce software. teatv 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