Archived topic
Error with GP-Premium
9 replies · Started by sam on May 16, 2022
When i go to customise on appearance the whole window freezes. I have checked the error log and get this
16-May-2022 10:01:01 UTC] PHP Warning: Use of undefined constant l - assumed 'l' (this will throw an Error in a future version of PHP) in /home/tju3ihv/public_html/wp-content/plugins/gp-premium/elements/class-hooks.php(215) : eval()'d code on line 121
If i deactivate the gp premium plugin the customizer works fine, Also i have deactivated the elements section and this lets the customizer work.
Hi there,
do you have any Hook Elements ? If so what is in them ?
Hi,
We have multiple hooks these include
wp_head
generate_inside_mobile_header
generate_after_header
generate_after_right_sidebar_content
generate_before_right_sidebar_content
generate_after_main_content
wp_footer
generate_before_entry_title
generate_before_footer
Another thing to add is these have been changed in a while and we have another site with the same elements and it works fine.
Thanks
Can you disable each element individually ( Quick Edit > Change Status to Draft ) to see if a specific one is related to the error ?
That didnt work either
Any update on this?
What happens if you set ALL of them to a draft status ?
I have found it I disable two of the wp_head hooks it works, however what could be causing this?
Any update?
What code do you have in those wp_head hooks ?