Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Theme tweaker breaks Category viewer

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 04-09-2015, 01:59 PM
 
gkarlsson gkarlsson is offline
 

Member
  
Join Date: Apr 2014
Posts: 24
 

Default 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?
__________________
X-Cart: 5.2.6
Reply With Quote
  #2  
Old 04-09-2015, 07:25 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Theme tweaker breaks Category viewer

I will ask the normal question, is there anything more related to this error in var/log?
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #3  
Old 04-09-2015, 09:01 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #4  
Old 04-10-2015, 09:02 AM
 
gkarlsson gkarlsson is offline
 

Member
  
Join Date: Apr 2014
Posts: 24
 

Default 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.
__________________
X-Cart: 5.2.6
Reply With Quote
  #5  
Old 04-15-2015, 06:04 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Theme tweaker breaks Category viewer

@gkarlsson, here is a solution for this issue http://stackoverflow.com/a/17488564/4634288
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #6  
Old 04-15-2015, 07:39 AM
 
gkarlsson gkarlsson is offline
 

Member
  
Join Date: Apr 2014
Posts: 24
 

Default Re: Theme tweaker breaks Category viewer

Thanks Tony!
__________________
X-Cart: 5.2.6
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:20 PM.

   

 
X-Cart forums © 2001-2020