tkarius
Forum Replies Created
-
Hi,
just a quick follow-up: after further investigation, the issue turned out to be caused by several outdated implementations in the theme.
A theme plugin was accessing settings/capabilities before the permissions system was fully initialized. The newer version of ACF Extended triggered a recursive loop that eventually exhausted server resources.
After updating the affected theme code, the issue is resolved.
My apologies for the confusion, and thank you for your time and assistance.
Kind regards
Hey Konrad,
Yes, that’s what the AI analysis showed. Sorry, that wasn’t quite right. I also did a little Googling. The old structure is still in those few ACF field groups — I noticed that too, and I would have tried that.
If I understand you correctly, I can go ahead and paste your code into functions.php for now and see what happens. If the error persists, I’ll look for the cause elsewhere.
Sorry for the inconvenience; we’ve taken over the website from someone else and aren’t yet familiar with all the details or how everything works. I’ll let you know as soon as I find out more.
Thank you!
Tanja
Hi Konrad,
thanks for your quick answer. I did some homework. The error message was:
Fatal error: Uncaught Error: Call to undefined function themename__get_hero() in /…/themes/themename/parts/element-hero.php:24
Stack trace:#0 /…/wp-includes/template.php(816): require()#1 /…/wp-includes/template.php(749): load_template('/www/htdocs/w01…', false, Array)#2 /…/wp-includes/general-template.php(206): locate_template(Array, true, false, Array)#3 /…/wp-content/themes/themename/header.php(179): get_template_part('parts/element', 'hero')#4 /…/wp-includes/template.php(814): require_once('/www/htdocs/w01…')#5 /…/wp-includes/template.php(749): load_template('/www/htdocs/w01…', true, Array)#6 /…/wp-includes/general-template.php(48): locate_template(Array, true, true, Array)#7 /…/wp-content/themes/themename/front-page.php(1): get_header()#8 /…/wp-includes/template-loa in /…/wp-content/themes/themename/parts/element-hero.php on line 24
Unfortunately I opened this thread before I did some research. Eventually the newer version of ACF Extended just triggered a fragile include order in our theme. I explored the theme and got some information:
“A few ACF JSON files in the theme still use the old structure with top-level keys such as acfe_autosync, acfe_display_title, acfe_form, etc.ACFE 0.9.2.6 now expects these to be formatted as field_group[‘acfe’][‘autosync’], etc. If ACFE processes the JSON files during loading/syncing and encounters the old structure, this can cause an error that interrupts the bootstrap process—before frontend-functions.php is loaded.”
Means I have to do some legacy upgrades in our theme.
Thank you again, Konrad!
Forum: Plugins
In reply to: [Simplelightbox] Uncaught DOMException since latest version (2.13)It now works again! 🥳 Thank you so much 😊 I really appreciate your work and your support.
Have a nice day ☀️
Forum: Plugins
In reply to: [Simplelightbox] Uncaught DOMException since latest version (2.13)Hi Andre,
thank you for taking a look at it 🙂 Do you already know when you will publish the next version?
Have a great week!