-
-
Notifications
You must be signed in to change notification settings - Fork 56
Fatal error: Uncaught Error: Maximum function nesting level of '200' reached, aborting! #12
Comments
Hi @ouun, |
@ouun Any news on this issue? |
@mmirus I suggest closing this issue. No reply from author and I cannot reproduce it. |
Dear @mejta & @mmirus , The error is thrown by "xdebug" and I already changed the So far I do not understand why the data collection within 'woocommerce_before_template_part' results in the mentioned errors, but using an empty array instead of the following solves it:
I also tried to set all available classes directly into the filter one by one. E.g. on a single product page I have the following body classes: I just hardcoded them one by one to the data filter such as for 1.) For the class 'index-data' while the Controller template for SingleIndex.php is the untouched example from sage repo. 2.) For 'single-product-data' as the Controller file included a function which was finally repeating itself when called for template parts. I fixed both but still wonder whether it is not possible to just pass the same $data to all template parts without collecting them again and again. Best regards, Philipp Currently I try to understand the usecase and benefit |
Hey @ouun - sorry for the slow response here. I don't have the bandwidth to troubleshoot right now, especially with Sage 10 on the way, but I'm going to reopen this issue so that it's visible down the road. Thanks for sharing the additional info. |
@mmirus thanks for your kind folow up. I'm following the github repo and with that the Sage 10 development with very high interest. Go for it, please! |
I am facing same issue, Any solution? |
I switched to Sage 10 and built my own integration: https://github.com/ouun/stage-woocommerce |
Submit a feature request or bug report
What is the current behavior?
Installing version 1.0.2 with the new action
'woocommerce_before_template_part'
leads to the php errorFatal error: Uncaught Error: Maximum function nesting level of '200' reached, aborting!
What might be the solution?
I'm wondering if the additional
add_action
is needed. In my current setup I included the passing of$data
diretly intoadd_filter('template_include', ...)
:I'm currently not sure whether this has the same result, but maybe it's useful.
Best
The text was updated successfully, but these errors were encountered: