Jump to content

Error when trying to install a new payment method


mikevo

Recommended Posts

Hello!

 

I get the following error when trying to install a new payment method:

[PrestaShop] Fatal error in module file: /home/forge/website.com/public/app/bootstrap.php.cache:3225
Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function isUsingNewTranslationSystem() on boolean in /home/forge/website.com/public/controllers/admin/AdminModulesController.php:1400 Stack trace: #0 /home/forge/website.com/public/classes/controller/AdminController.php(2849): AdminModulesControllerCore->initModal() #1 /home/forge/website.com/public/classes/controller/Controller.php(186): AdminControllerCore->init() #2 /home/forge/website.com/public/classes/Dispatcher.php(379): ControllerCore->run() #3 /home/forge/website.com/public/admin/index.php(95): DispatcherCore->dispatch() #4 {main} Next LogicException: Request stack is empty in /home/forge/website.com/public/app/bootstrap.php.cache:3225 Stack trace: #0 [internal function]: Symfony\Component\HttpKernel\HttpKernel->terminateWithException(Object(Symfony\Component\Debug\Exception\FatalThrowableError)) #1 /home/forge/website.com/public/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php(

Any ideas?

 

Thanks!

post-1425373-0-31853100-1502913216_thumb.png

  • Like 1
Link to comment
Share on other sites

I get the same error when I click on the " Link to your Google Analytics account" on the dashboard:

[PrestaShop] Fatal error in module file: /home/forge/website.com/public/app/bootstrap.php.cache:3225
Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function isUsingNewTranslationSystem() on boolean in /home/forge/website.com/public/controllers/admin/AdminModulesController.php:1400 Stack trace: #0 /home/forge/website.com/public/classes/controller/AdminController.php(2849): AdminModulesControllerCore->initModal() #1 /home/forge/website.com/public/classes/controller/Controller.php(186): AdminControllerCore->init() #2 /home/forge/website.com/public/classes/Dispatcher.php(379): ControllerCore->run() #3 /home/forge/website.com/public/admin/index.php(95): DispatcherCore->dispatch() #4 {main} Next LogicException: Request stack is empty in /home/forge/website.com/public/app/bootstrap.php.cache:3225 Stack trace: #0 [internal function]: Symfony\Component\HttpKernel\HttpKernel->terminateWithException(Object(Symfony\Component\Debug\Exception\FatalThrowableError)) #1 /home/forge/website.com/public/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php(

I've seen this "Call to a member function isUsingNewTranslationSystem() on boolean" in a bunch of other places

Link to comment
Share on other sites

hello,
 
still no solution?

I am getting the same Error.
 I am trying to installa PayPal, but also with COD.
 
I am on a fresh installation of PS 1.7.2.1
I try to switch form php 7 to php 5.6
 
with php 5.6 I get 500 error page.
with php 7 I get this code in the browser

PrestaShop] Fatal error in module file: /home/ric49839/public_html/PS/app/bootstrap.php.cache:3225
Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function isUsingNewTranslationSystem() on boolean in /home/ric49839/public_html/PS/controllers/admin/AdminModulesController.php:1400 Stack trace: #0 /home/ric49839/public_html/PS/classes/controller/AdminController.php(2849): AdminModulesControllerCore->initModal() #1 /home/ric49839/public_html/PS/classes/controller/Controller.php(186): AdminControllerCore->init() #2 /home/ric49839/public_html/PS/classes/Dispatcher.php(379): ControllerCore->run() #3 /home/ric49839/public_html/PS/admin839gijjdn/index.php(95): DispatcherCore->dispatch() #4 {main} Next LogicException: Request stack is empty in /home/ric49839/public_html/PS/app/bootstrap.php.cache:3225 Stack trace: #0 [internal function]: Symfony\Component\HttpKernel\HttpKernel->terminateWithException(Object(Symfony\Component\Debug\Exception\FatalThrowableError)) #1 /home/ric49839/public_html/PS/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php(606): call_user_func(

thanks in advance

 
 

Link to comment
Share on other sites

hello I try to run analitycs module  in prestashop 1.7.2.1 but i recibe this error: 

 

[PrestaShop] Fatal error in module file: /home/libreri7/public_html/app/bootstrap.php.cache:3225
Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function isUsingNewTranslationSystem() on boolean in /home/libreri7/public_html/controllers/admin/AdminModulesController.php:1400 Stack trace: #0 /home/libreri7/public_html/classes/controller/AdminController.php(2849): AdminModulesControllerCore->initModal() #1 /home/libreri7/public_html/classes/controller/Controller.php(186): AdminControllerCore->init() #2 /home/libreri7/public_html/classes/Dispatcher.php(379): ControllerCore->run() #3 /home/libreri7/public_html/admin251ulty77/index.php(95): DispatcherCore->dispatch() #4 {main} Next LogicException: Request stack is empty in /home/libreri7/public_html/app/bootstrap.php.cache:3225 Stack trace: #0 [internal function]: Symfony\Component\HttpKernel\HttpKernel->terminateWithException(Object(Symfony\Component\Debug\Exception\FatalThrowableError)) #1 /home/libreri7/public_html/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php(606): call_user_func(Array, Object(Symfony

 

Any idea how to solve it ?

Link to comment
Share on other sites

if i use the search function (on top in the Backend) and click on a link on there i get the following error:

 

Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function isUsingNewTranslationSystem() on boolean in /www/htdocs/w0060f08/onlineshop.ferico.de/controllers/admin/AdminModulesController.php:1400 Stack trace: #0 /www/htdocs/w0060f08/onlineshop.ferico.de/classes/controller/AdminController.php(2849): AdminModulesControllerCore->initModal() #1 /www/htdocs/w0060f08/onlineshop.ferico.de/classes/controller/Controller.php(186): AdminControllerCore->init() #2 /www/htdocs/w0060f08/onlineshop.ferico.de/classes/Dispatcher.php(379): ControllerCore->run() #3 /www/htdocs/w0060f08/onlineshop.ferico.de/admin619fztwub/index.php(95): DispatcherCore->dispatch() #4 {main} Next LogicException: Request stack is empty in /www/htdocs/w0060f08/onlineshop.ferico.de/app/bootstrap.php.cache:3225 Stack trace: #0 [internal function]: Symfony\Component\HttpKernel\HttpKernel->terminateWithException(Object(Symfony\Component\Debug\Exception\FatalThrowableError)) #1 /www/htdocs/w0060f08/onlineshop.ferico.de/vendo

 

Shop Version: 1.7.2.1

Link to comment
Share on other sites

Hello,

 

I'm getting the exact same error:

 

Info:

 

  • PrestaShop version: 1.7.2.1
  • Shop URL: xxxx
  • Current theme in use: classic
  • Server software version: Apache
  • PHP version: 5.6.31
  • Memory limit: 256M
  • Max execution time: 30

 

This is a fresh installation (+Arabic language pack has been added).

When I try to add COD payment method I get the following error:

Fatal error: Call to a member function isUsingNewTranslationSystem() on boolean in /home/myaccount/public_html/shop/controllers/admin/AdminModulesController.php on line 1400
Fatal error: Uncaught exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Error: Call to a member function isUsingNewTranslationSystem() on boolean' in /home/myaccount/public_html/shop/controllers/admin/AdminModulesController.php:1400 Stack trace: #0 {main} Next exception 'LogicException' with message 'Request stack is empty' in /home/myaccount/public_html/shop/app/bootstrap.php.cache:3225 Stack trace: #0 [internal function]: Symfony\Component\HttpKernel\HttpKernel->terminateWithException(Object(Symfony\Component\Debug\Exception\FatalErrorException)) #1 /home/myaccount/public_html/shop/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php(606): call_user_func(Array, Object(Symfony\Component\Debug\Exception\FatalErrorException)) #2 /home/myaccount/public_html/shop/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php(668): Symfony\Component\Debug\ErrorHandler->handleException(Object(Symfony\Component\Debug\Exception\FatalErrorException), Array) #3 [internal function]: Sy in /home/myaccount/public_html/shop/app/bootstrap.php.cache on line 3225

Any idea how can this be fixed ?

 

Edit 1: I have removed the Arabic language pack and tried again, the issue still happens.

Edit 2: I've enabled "Debug Mode" and tried again, now I get an error saying "is not a valid module name."

Edit 3: Changed PHP version to 7 and tried again, I get the following error:

Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function isUsingNewTranslationSystem() on boolean in /home/myaccount/public_html/shop/controllers/admin/AdminModulesController.php:1400 Stack trace: #0 /home/myaccount/public_html/shop/classes/controller/AdminController.php(2849): AdminModulesControllerCore->initModal() #1 /home/myaccount/public_html/shop/classes/controller/Controller.php(186): AdminControllerCore->init() #2 /home/myaccount/public_html/shop/classes/Dispatcher.php(379): ControllerCore->run() #3 /home/myaccount/public_html/shop/modir/index.php(95): DispatcherCore->dispatch() #4 {main} Next LogicException: Request stack is empty in /home/myaccount/public_html/shop/app/bootstrap.php.cache:3225 Stack trace: #0 [internal function]: Symfony\Component\HttpKernel\HttpKernel->terminateWithException(Object(Symfony\Component\Debug\Exception\FatalThrowableError)) #1 /home/myaccount/public_html/shop/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php(606): call_user_ in /home/myaccount/public_html/shop/app/bootstrap.php.cache on line 3225
[PrestaShop] Fatal error in module file: /home/myaccount/public_html/shop/app/bootstrap.php.cache:3225
Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function isUsingNewTranslationSystem() on boolean in /home/myaccount/public_html/shop/controllers/admin/AdminModulesController.php:1400 Stack trace: #0 /home/myaccount/public_html/shop/classes/controller/AdminController.php(2849): AdminModulesControllerCore->initModal() #1 /home/myaccount/public_html/shop/classes/controller/Controller.php(186): AdminControllerCore->init() #2 /home/myaccount/public_html/shop/classes/Dispatcher.php(379): ControllerCore->run() #3 /home/myaccount/public_html/shop/modir/index.php(95): DispatcherCore->dispatch() #4 {main} Next LogicException: Request stack is empty in /home/myaccount/public_html/shop/app/bootstrap.php.cache:3225 Stack trace: #0 [internal function]: Symfony\Component\HttpKernel\HttpKernel->terminateWithException(Object(Symfony\Component\Debug\Exception\FatalThrowableError)) #1 /home/myaccount/public_html/shop/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php(606): call_user_\

Edit 4: After upgrading to latest version 1.7.2.2  is issue has been solved for me.

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

The code that is failing is here...

        $module = Module::getInstanceByName(Tools::getValue('configure'));
        $languages = Language::getLanguages(false);
        $isNewTranslateSystem = $module->isUsingNewTranslationSystem();

It seems the code is trying to get the name of the module with this code, so there is an assumption here that you are on a modules configuration page?  And if you are not, then that would explain why it would fail.

        $module = Module::getInstanceByName(Tools::getValue('configure'));

Apparently the 'configure' request parameter cannot be found, since $module is not a module object, but rather a boolean.  The value of the boolean is probably false, since the 'configure' request parameter was not provided or is not a valid module name

 

Link to comment
Share on other sites

Same error here when trying to access modules via backend search results (specifically Google Sitemap in this case).

[Wed Aug 30 08:28:32.228787 2017] [fcgid:warn] [pid 1703:tid 139652509775616] [client x.x.x.x:19498] mod_fcgid: stderr: PHP Fatal error:  Call to a member function isUsingNewTranslationSystem() on a non-object in /var/www/controllers/admin/AdminModulesController.php on line 1400, referer: https://mydomain.com/myadminurl/index.php?controller=AdminSearch&token=85228ed15abf2a99977f8e8fe2d2e4d8
[Wed Aug 30 08:28:32.228833 2017] [fcgid:warn] [pid 1703:tid 139652509775616] [client x.x.x.x:19498] mod_fcgid: stderr: PHP Fatal error:  Uncaught exception 'Symfony\\Component\\Debug\\Exception\\FatalErrorException' with message 'Error: Call to a member function isUsingNewTranslationSystem() on a non-object' in /var/www/controllers/admin/AdminModulesController.php:1400, referer: https://mydomain.com/myadminurl/index.php?controller=AdminSearch&token=85228ed15abf2a99977f8e8fe2d2e4d8
[Wed Aug 30 08:28:32.228838 2017] [fcgid:warn] [pid 1703:tid 139652509775616] [client x.x.x.x:19498] mod_fcgid: stderr: Stack trace:, referer: https://mydomain.com/myadminurl/index.php?controller=AdminSearch&token=85228ed15abf2a99977f8e8fe2d2e4d8
[Wed Aug 30 08:28:32.228842 2017] [fcgid:warn] [pid 1703:tid 139652509775616] [client x.x.x.x:19498] mod_fcgid: stderr: #0 {main}, referer: https://mydomain.com/myadminurl/index.php?controller=AdminSearch&token=85228ed15abf2a99977f8e8fe2d2e4d8
[Wed Aug 30 08:28:32.228847 2017] [fcgid:warn] [pid 1703:tid 139652509775616] [client x.x.x.x:19498] mod_fcgid: stderr: Next exception 'LogicException' with message 'Request stack is empty' in /var/www/app/bootstrap.php.cache:3225, referer: https://mydomain.com/myadminurl/index.php?controller=AdminSearch&token=85228ed15abf2a99977f8e8fe2d2e4d8
[Wed Aug 30 08:28:32.228853 2017] [fcgid:warn] [pid 1703:tid 139652509775616] [client x.x.x.x:19498] mod_fcgid: stderr: Stack trace:, referer: https://mydomain.com/myadminurl/index.php?controller=AdminSearch&token=85228ed15abf2a99977f8e8fe2d2e4d8
[Wed Aug 30 08:28:32.228857 2017] [fcgid:warn] [pid 1703:tid 139652509775616] [client x.x.x.x:19498] mod_fcgid: stderr: #0 [internal function]: Symfony\\Component\\HttpKernel\\HttpKernel->terminateWithException(Object(Symfony\\Component\\Debug\\Exception\\FatalErrorException)), referer: https://mydomain.com/myadminurl/index.php?controller=AdminSearch&token=85228ed15abf2a99977f8e8fe2d2e4d8
[Wed Aug 30 08:28:32.228860 2017] [fcgid:warn] [pid 1703:tid 139652509775616] [client x.x.x.x:19498] mod_fcgid: stderr: #1 /var/www/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php(606): call_user_func(Array, Object(Symfony\\Component\\Debug\\Exception\\FatalErrorException)), referer: https://mydomain.com/myadminurl/index.php?controller=AdminSearch&token=85228ed15abf2a99977f8e8fe2d2e4d8
[Wed Aug 30 08:28:32.228875 2017] [fcgid:warn] [pid 1703:tid 139652509775616] [client x.x.x.x:19498] mod_fcgid: stderr: #2 /var/www/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php(668): Symfony\\Component\\Debug\\ErrorHandler- in /var/www/app/bootstrap.php.cache on line 3225, referer: https://mydomain.com/myadminurl/index.php?controller=AdminSearch&token=85228ed15abf2a99977f8e8fe2d2e4d8
 
PrestaShop version: 1.7.2.1
Server software version: Apache
PHP version: 5.5.38
Memory limit: 256M
Max execution time: 60
 
Link to comment
Share on other sites

I'm trying to install the Cash on delivery module with the following error, in prestashop 1.7.2 and php 7

[PrestaShop] Fatal error in module file: /home/pulver/public_html/app/bootstrap.php.cache:3225
Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function isUsingNewTranslationSystem() on boolean in /home/pulver/public_html/controllers/admin/AdminModulesController.php:1400 Stack trace: #0 /home/pulver/public_html/classes/controller/AdminController.php(2849): AdminModulesControllerCore->initModal() #1 /home/pulver/public_html/classes/controller/Controller.php(186): AdminControllerCore->init() #2 /home/pulver/public_html/classes/Dispatcher.php(379): ControllerCore->run() #3 /home/pulver/public_html/trastienda/index.php(95): DispatcherCore->dispatch() #4 {main} Next LogicException: Request stack is empty in /home/pulver/public_html/app/bootstrap.php.cache:3225 Stack trace: #0 [internal function]: Symfony\Component\HttpKernel\HttpKernel->terminateWithException(Object(Symfony\Component\Debug\Exception\FatalThrowableError)) #1 /home/pulver/public_html/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php(606): call_user_func(Array, Object(Symfony\Component\Debug\E

 

Link to comment
Share on other sites

I'm also getting the same error, but when I try to set GA Account from the dashboard:

 

 

[PrestaShop] Fatal error in module file: <PATH>app/bootstrap.php.cache:3225
Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function isUsingNewTranslationSystem() on boolean in <PATH>controllers/admin/AdminModulesController.php:1400 Stack trace: #0 <PATH>classes/controller/AdminController.php(2849): AdminModulesControllerCore->initModal() #1 <PATH>classes/controller/Controller.php(186): AdminControllerCore->init() #2 <PATH>classes/Dispatcher.php(379): ControllerCore->run() #3 <PATH>admin790tijfrn/index.php(95): DispatcherCore->dispatch() #4 {main} Next LogicException: Request stack is empty in <PATH>app/bootstrap.php.cache:3225 Stack trace: #0 [internal function]: Symfony\Component\HttpKernel\HttpKernel->terminateWithException(Object(Symfony\Component\Debug\Exception\

PrestaShop: 1.7.2.1

PHP: 7.0.21

Link to comment
Share on other sites

Hello,

 

I've got the same error, when i try to configure some module.

For exemple with the Dashboard Stat, it's the same with all install modules :

[PrestaShop] Fatal error in module file: <PATH>/controllers/admin/AdminModulesController.php:1400
Call to undefined method statsforecast::isUsingNewTranslationSystem()

Version de PrestaShop : 1.7.2.1

Version de PHP : 5.6.30-0+deb8u1

Link to comment
Share on other sites

isUsingNewTranslationSystem was added to the Module class in this latest version (PS v1.7.2.1).

 

So if this issue stems from an upgrade, then perhaps you guys have server side caching (like opcache) that needs to be cleared, as the old Module class (without the new function)  may be in the cache.

Link to comment
Share on other sites

I'm also getting the same error, but when I try to set GA Account from the dashboard:

[PrestaShop] Fatal error in module file: <PATH>app/bootstrap.php.cache:3225
Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function isUsingNewTranslationSystem() on boolean in <PATH>controllers/admin/AdminModulesController.php:1400 Stack trace: #0 <PATH>classes/controller/AdminController.php(2849): AdminModulesControllerCore->initModal() #1 <PATH>classes/controller/Controller.php(186): AdminControllerCore->init() #2 <PATH>classes/Dispatcher.php(379): ControllerCore->run() #3 <PATH>admin790tijfrn/index.php(95): DispatcherCore->dispatch() #4 {main} Next LogicException: Request stack is empty in <PATH>app/bootstrap.php.cache:3225 Stack trace: #0 [internal function]: Symfony\Component\HttpKernel\HttpKernel->terminateWithException(Object(Symfony\Component\Debug\Exception\

PrestaShop: 1.7.2.1

PHP: 7.0.21

I already resolved it. The error occurred when trying to install the module from Payment - Payment methods.

Instead, I went to the catalog of modules and installed it from there without problems.

This bug occurs with any version of PHP

Link to comment
Share on other sites

I'm using PrestaShop version: 1.7.2.1 and I'm trying to install Cash on delivery (COD) v1.0.6 - by PrestaShop

 

Thanks!

 

I'm using PrestaShop version: 1.7.2.1 and I'm trying to install Cash on delivery (COD) v1.0.6 - by PrestaShop

 

Thanks!

I already resolved it. The error occurred when trying to install the module from Payment - Payment methods.

Instead, I went to the catalog of modules and installed it from there without problems.

This bug occurs with any version of PHP

Link to comment
Share on other sites

  • 2 weeks later...

Hi everyone,

If you're having this issue please update to the latest version of Prestashop which should resolve this issue. At the time of this post the latest version is 1.7.2.2. Just head over to your modules section and search for the "One click upgrade" module and get your site updated.

:)

Link to comment
Share on other sites

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