-
AuthorPosts
-
July 3, 2020 at 3:20 am #1227610
Trying to figure out this PHP error that might be causing me 502 issues:
PHP Notice: Undefined index: controls in /var/www/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php on line 746This is for an Enfold-themed site hosted on MediaTemple.
Separately, I’m getting a PHP deprecated message:
PHP Deprecated: media_buttons_context is deprecated since version 3.5.0! Use media_buttons instead. in /var/www/wp-includes/functions.php on line 5088July 4, 2020 at 1:11 pm #1227909Hey mocreate,
Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.
Best regards,
RikardJuly 6, 2020 at 6:28 pm #1228339This reply has been marked as private.July 8, 2020 at 4:24 am #1228744Hi,
Thanks for that. I can’t see any PHP notices on either the front or backend though. Where exactly are you seeing them?
Best regards,
RikardJuly 8, 2020 at 5:44 am #1228757In the debug.log file
July 13, 2020 at 6:22 am #1229846Hi,
Thanks for the update and sorry for the late reply. Does is make any difference if you disable all plugins temporarily? If not then please share the debug file with us, you can use pastebin.com for example.
Best regards,
RikardJuly 13, 2020 at 3:34 pm #1229975Attached debug file link in private content
July 14, 2020 at 1:22 pm #1230293Hi,
Thanks for that. Did you try disabling all plugins and did it make any difference? Also, is something actually not working as it should on the site? I’m asking since notices like you are getting in the debug file usually don’t affect any functionality on the actual site. And I see notices from plugins as well, not only from the theme.
If you want to turn off debugging in the log file then you can find instructions on how to do it here: https://wordpress.org/support/article/debugging-in-wordpress/
Best regards,
RikardJuly 14, 2020 at 7:06 pm #1230389Rikard,
Hi! We identified one page that has a high level of complexity and are looking at simplifying it to see if that might resolve the issue. We did disable plugins but were still getting 502s after 10-15 minutes of update activity.
July 16, 2020 at 5:25 am #1230799Hi,
Thanks for the update. Are you seeing anything in the logs related to the 502 errors? That is a bad gateway error and is likely not related to the theme.
Best regards,
RikardJuly 16, 2020 at 2:33 pm #1230930We restructured the way the page was built to remove some layers of complexity and that seems to have resolved the issue. We’re also following up with the hosting provider to see if they’re missed anything too. Restructuring seems to have resolved the 502s.
Happy to consider this resolved — many thank yous!
July 17, 2020 at 12:46 am #1231063Hi mocreate,
We’re glad to hear that :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘PHP Undefined Index error’ is closed to new replies.