Hello,
I'm having an issue with some of my nodes that contain galleries. Those pages go WSOD.
It's a strange PHP error:
Fatal error: Maximum function nesting level of '200' reached, aborting! in E:\xampp\htdocs\2zeta.it\includes\database.inc on line 211
I can't view or edit those nodes, because they go blank. If I disable gallery_assist module entirely, they work again. Any hint on how to fix that?
I can paste some recursions here from the call stack:
| # |
Time |
Memory |
Function |
Location |
| 1 |
0.0007 |
363352 |
{main}( ) |
..\index.php:0 |
| 2 |
0.0037 |
638920 |
drupal_bootstrap( ) |
..\index.php:16 |
| 3 |
0.0389 |
3135984 |
_drupal_bootstrap( ) |
..\bootstrap.inc:1110 |
| 4 |
0.0458 |
3946464 |
_drupal_bootstrap_full( ) |
..\bootstrap.inc:1203 |
| 5 |
0.2625 |
23478568 |
module_invoke_all( ) |
..\common.inc:2676 |
| 6 |
0.2806 |
24165880 |
call_user_func_array
( ) |
..\module.inc:483 |
| 7 |
0.2806 |
24166016 |
i18n_init( ) |
..\module.inc:0 |
| 8 |
0.2806 |
24166016 |
_i18n_init_mode( ) |
..\i18n.module:41 |
| 9 |
0.2806 |
24166064 |
menu_get_object( ) |
..\i18n.module:73 |
| 10 |
0.2806 |
24166128 |
menu_get_item( ) |
..\menu.inc:701 |
| 11 |
0.2813 |
24169608 |
_menu_translate( ) |
..\menu.inc:316 |
| 12 |
0.2813 |
24169856 |
_menu_load_objects( ) |
..\menu.inc:566 |
| 13 |
0.2813 |
24170544 |
node_load( ) |
..\menu.inc:410 |
| 14 |
0.2866 |
24783824 |
node_invoke_nodeapi( ) |
..\node.module:767 |
| 15 |
0.2907 |
25082528 |
gallery_assist_nodeapi( ) |
..\node.module:679 |
| 16 |
0.2918 |
25095424 |
gallery_assist_insert( ) |
..\gallery_assist.module:2950 |
| 17 |
0.2923 |
25102128 |
node_load( ) |
..\gallery_assist.module:2069 |
| 18 |
0.2929 |
25108064 |
node_invoke_nodeapi( ) |
..\node.module:767 |
| 19 |
0.2938 |
25110232 |
gallery_assist_nodeapi( ) |
..\node.module:679 |
| 20 |
0.2946 |
25123112 |
gallery_assist_insert( ) |
..\gallery_assist.module:2950 |
| 21 |
0.2950 |
25129816 |
node_load( ) |
..\gallery_assist.module:2069 |
| 22 |
0.2957 |
25135744 |
node_invoke_nodeapi( ) |
..\node.module:767 |
| 23 |
0.2965 |
25137912 |
gallery_assist_nodeapi( ) |
..\node.module:679 |
| 24 |
0.2973 |
25150800 |
gallery_assist_insert( ) |
..\gallery_assist.module:2950 |
| 25 |
0.2977 |
25157592 |
node_load( ) |
..\gallery_assist.module:2069 |
| 26 |
0.2983 |
25163520 |
node_invoke_nodeapi( ) |
..\node.module:767 |
| 27 |
0.2992 |
25165688 |
gallery_assist_nodeapi( ) |
..\node.module:679 |
| 28 |
0.3000 |
25178568 |
gallery_assist_insert( ) |
..\gallery_assist.module:2950 |
| 29 |
0.3004 |
25185360 |
node_load( ) |
..\gallery_assist.module:2069 |
| 30 |
0.3010 |
25191288 |
node_invoke_nodeapi( ) |
..\node.module:767 |
| 31 |
0.3026 |
25193456 |
gallery_assist_nodeapi( ) |
..\node.module:679 |
| 32 |
0.3036 |
25206336 |
gallery_assist_insert( ) |
..\gallery_assist.module:2950 |
| 33 |
0.3040 |
25213128 |
node_load( ) |
..\gallery_assist.module:2069 |
| 34 |
0.3046 |
25219056 |
node_invoke_nodeapi( ) |
..\node.module:767 |
| 35 |
0.3055 |
25221224 |
gallery_assist_nodeapi( ) |
..\node.module:679 |
Comments
Comment #1
ermannob commentedI read a little those looping functions...
The problem is related to i18n.
it seems to me that gallery_assist searches for galleries for the node (line 2021), then looks for galleries in translated node.
The problem is my node and its translation has no galleries. So gallery_assists loads node and then translated node, and then node again... forever.
I'm proposing a little patch that solved my problem. I hope that it doesn't break anything.
Comment #2
jcmc commentedI applied the patch for the first so that in case other GA users get the same issue can solve temporary the situation. I must investigate a little more about this.
Thanks ermannob
Comment #3
ermannob commentedYou're welcome, jcmc.
I'm not sure that patch will work on a website with more than 2 languages. But I'm not an expert on how i18n works.