Jump to content

cannot open 'Modules' any more


Recommended Posts

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

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

  • Like 1
Link to comment
Share on other sites

  • 11 months later...
  • 2 months later...

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 28

Fatal 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

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 found

J'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.5

Merci
Cordialement
Didier.
 

Edited by Didierma (see edit history)
Link to comment
Share on other sites

post-1265822-0-41376000-1473048947_thumb.pngI 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

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

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

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

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

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

  • 2 weeks later...
  • 3 months later...

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

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

I've got a solution about productcomments module in another post:
 
/home/*********/public_html/modules/productcomments/productcomments.php  line 459 
 
 
Before
if (empty(Configuration::get('PRODUCT_COMMENTS_MODERATE'))){

After

if (!Configuration::get('PRODUCT_COMMENTS_MODERATE')){
 
NOW IT WORKS AGAIN!

Edited by noigiochiamo (see edit history)
Link to comment
Share on other sites

  • 4 weeks later...

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!!

  • Confused 1
Link to comment
Share on other sites

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

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

  • 3 weeks later...

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

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

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

  • 2 months later...

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

  • Confused 1
Link to comment
Share on other sites

  • 8 months later...
  • 1 month later...

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 by karola (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...

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

  • 2 months later...
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

"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!

 

Team controll panel line197.JPG

Admin_adminaccess_controller_code.JPG

Team control panel line691.JPG

Var_cache_dev_smarty_compile lines 691_703_711.JPG

Link to comment
Share on other sites

  • 5 months later...
  • 3 weeks later...
  • 2 weeks later...

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

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

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

  • 1 month later...

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

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-object

Notice 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

  • 2 months later...
  • 1 month later...

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

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 by katicziv
Additional information (see edit history)
  • Thanks 1
Link to comment
Share on other sites

  • 2 months later...

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

  • 2 weeks later...

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

  • 2 months later...
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

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 by Lellone (see edit history)
Link to comment
Share on other sites

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

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.

recomended.png

  • Like 1
Link to comment
Share on other sites

  • 1 month later...
18 hours ago, katicziv said:

2020-03-04_1237

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

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 here
http://doc.prestashop.com/

Latest version is located for download here: https://www.prestashop.com/en/download?ab=1

When you have error:

2020-03-05_0912


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 by katicziv
I want to be more clear (see edit history)
Link to comment
Share on other sites

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 by jinojames
Change (see edit history)
Link to comment
Share on other sites

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)
 

 

 

2020-03-05_1002

and then press "Switch to PHP options" and set what is needed for prestashop (read about it on previous post link)

2020-03-05_1006

 

Link to comment
Share on other sites

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

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

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

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

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

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

  • 1 month later...

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

  • 7 months later...
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

  • 3 weeks later...

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

  • 1 month later...

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 by Lara - new to presta (see edit history)
Link to comment
Share on other sites

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 by num47
small mistake (see edit history)
Link to comment
Share on other sites

  • 1 month later...
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

  • 8 months later...
  • 2 weeks later...
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

  • 1 year later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...