X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Theme tweaker breaks Category viewer (https://forum.x-cart.com/showthread.php?t=71813)

gkarlsson 04-09-2015 01:59 PM

Theme tweaker breaks Category viewer
 
I recently upgraded to the latest version of XC5 and when I went to edit a category I got a the following error.

Quote:

ERROR: "Includes\ErrorHandler::FATAL_ERROR" (code 2)

Maximum function nesting level of '100' reached, aborting!

I disabled all modules and then enabled each module one at a time until I discovered that Theme Tweaker was causing the issue.

It even happens with only theme tweaker enabled.
Anyone have any suggestions?

totaltec 04-09-2015 07:25 PM

Re: Theme tweaker breaks Category viewer
 
I will ask the normal question, is there anything more related to this error in var/log?

qualiteam 04-09-2015 09:01 PM

Re: Theme tweaker breaks Category viewer
 
Hello!

Is Xdebug PHP extension enabled on your server? It sets a hard limit on the number of nested functions (i.e. a function that calls another functions that calls one more functions and so on) and may cause errors like this. You can try to disable the extension, or edit its configuration files and increase the limit.

Also, in recent versions of X-Cart we made a number of improvements to prevent this issue. So, if your X-Cart version is 5.0.13, it makes sense to upgrade it to 5.1.x or 5.2.x - this may help to solve the problem too.

gkarlsson 04-10-2015 09:02 AM

Re: Theme tweaker breaks Category viewer
 
I am running 5.2.3 and this is from the php_errors.log

Quote:

[10-Apr-2015 13:52:30 America/New_York] PHP Fatal error: Maximum function nesting level of '100' reached, aborting! in /var/xcart/Includes/Utils/FileManager.php on line 83
[10-Apr-2015 13:52:30 America/New_York] PHP Stack trace:
[10-Apr-2015 13:52:30 America/New_York] PHP 1. {main}() /var/xcart/admin.php:0
[10-Apr-2015 13:52:30 America/New_York] PHP 2. XLiteAbstract->processRequest() /var/xcart/admin.php:39
[10-Apr-2015 13:52:30 America/New_York] PHP 3. XLite\Module\XC\ThemeTweaker\Controller\AControlle r->processRequest() /var/xcart/var/run/classes/XLiteAbstract.php:511
[10-Apr-2015 13:52:30 America/New_York] PHP 4. XLite\Controller\AControllerAbstract->processRequest() /var/xcart/var/run/classes/XLite/Module/XC/ThemeTweaker/Controller/AController.php:44
[10-Apr-2015 13:52:30 America/New_York] PHP 5. XLite\View\ControllerAbstract->display() /var/xcart/var/run/classes/XLite/Controller/AControllerAbstract.php:580
[10-Apr-2015 13:52:30 America/New_York] PHP 6. XLite\View\ControllerAbstract->displayPage() /var/xcart/var/run/classes/XLite/View/ControllerAbstract.php:81
[10-Apr-2015 13:52:30 America/New_York] PHP 7. XLite\View\ControllerAbstract->prepareContent() /var/xcart/var/run/classes/XLite/View/ControllerAbstract.php:265
[10-Apr-2015 13:52:30 America/New_York] PHP 8. XLite\View\AViewAbstract->getContent() /var/xcart/var/run/classes/XLite/View/ControllerAbstract.php:236
[10-Apr-2015 13:52:30 America/New_York] PHP 9. XLite\View\Content->display() /var/xcart/var/run/classes/XLite/View/AViewAbstract.php:319
[10-Apr-2015 13:52:30 America/New_York] PHP 10. XLite\View\AViewAbstract->display() /var/xcart/var/run/classes/XLite/View/Content.php:73
[10-Apr-2015 13:52:30 America/New_York] PHP 11. include() /var/xcart/var/run/classes/XLite/View/AViewAbstract.php:297
[10-Apr-2015 13:52:30 America/New_York] PHP 12. XLite\Module\XC\ThemeTweaker\View\AView->displayViewListContent() /var/xcart/var/run/skins/admin/en/main.tpl.php:18
[10-Apr-2015 13:52:30 America/New_York] PHP 13. XLite\View\AViewAbstract->displayViewListContent() /var/xcart/var/run/classes/XLite/Module/XC/ThemeTweaker/View/AView.php:377
[10-Apr-2015 13:52:30 America/New_York] PHP 14. XLite\View\Content->display() /var/xcart/var/run/classes/XLite/View/AViewAbstract.php:1074
[10-Apr-2015 13:52:30 America/New_York] PHP 15. XLite\View\AViewAbstract->display() /var/xcart/var/run/classes/XLite/View/Content.php:73
[10-Apr-2015 13:52:30 America/New_York] PHP 16. include() /var/xcart/var/run/classes/XLite/View/AViewAbstract.php:297
[10-Apr-2015 13:52:30 America/New_York] PHP 17. XLite\Module\XC\ThemeTweaker\View\AView->displayViewListContent() /var/xcart/var/run/skins/admin/en/center.tpl.php:5
[10-Apr-2015 13:52:30 America/New_York] PHP 18. XLite\View\AViewAbstract->displayViewListContent() /var/xcart/var/run/classes/XLite/Module/XC/ThemeTweaker/View/AView.php:377
[10-Apr-2015 13:52:30 America/New_York] PHP 19. XLite\View\AViewAbstract->display() /var/xcart/var/run/classes/XLite/View/AViewAbstract.php:1074
[10-Apr-2015 13:52:30 America/New_York] PHP 20. include() /var/xcart/var/run/classes/XLite/View/AViewAbstract.php:297
[10-Apr-2015 13:52:30 America/New_York] PHP 21. XLite\View\AViewAbstract->display() /var/xcart/var/run/skins/admin/en/common/tabs.tpl.php:18
[10-Apr-2015 13:52:30 America/New_York] PHP 22. include() /var/xcart/var/run/classes/XLite/View/AViewAbstract.php:297
[10-Apr-2015 13:52:30 America/New_York] PHP 23. XLite\View\AViewAbstract->display() /var/xcart/var/run/skins/admin/en/category/body.tpl.php:1
[10-Apr-2015 13:52:30 America/New_York] PHP 24. include() /var/xcart/var/run/classes/XLite/View/AViewAbstract.php:297
[10-Apr-2015 13:52:30 America/New_York] PHP 25. XLite\View\AViewAbstract->display() /var/xcart/var/run/skins/admin/en/model/body.tpl.php:7
[10-Apr-2015 13:52:30 America/New_York] PHP 26. include() /var/xcart/var/run/classes/XLite/View/AViewAbstract.php:297
.
.
.
[10-Apr-2015 13:52:30 America/New_York] PHP 97. Includes\Utils\FileManager::read() /var/xcart/Includes/Decorator/Utils/CacheManager.php:392
[10-Apr-2015 13:52:30 America/New_York] PHP 98. Includes\Utils\FileManager::isFileReadable() /var/xcart/Includes/Utils/FileManager.php:359
[10-Apr-2015 13:52:30 America/New_York] PHP 99. Includes\Utils\FileManager::isFile() /var/xcart/Includes/Utils/FileManager.php:107
[10-Apr-2015 13:52:30] Error (code: 1): Maximum function nesting level of '100' reached, aborting!
Server API: apache2handler;
Request method: GET;
URI: /admin.php?target=category&id=2;
Backtrace:
#0 Includes\ErrorHandler::logInfo() called at [/var/xcart/Includes/ErrorHandler.php:332]
#1 Includes\ErrorHandler::handleError() called at [/var/xcart/Includes/ErrorHandler.php:317]
#2 Includes\ErrorHandler::shutdown()



As you can see it appears as if the AViewAbstract.php file is included recursively.

tony_sologubov 04-15-2015 06:04 AM

Re: Theme tweaker breaks Category viewer
 
@gkarlsson, here is a solution for this issue http://stackoverflow.com/a/17488564/4634288

gkarlsson 04-15-2015 07:39 AM

Re: Theme tweaker breaks Category viewer
 
Thanks Tony!


All times are GMT -8. The time now is 09:51 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.