-
AuthorPosts
-
October 26, 2023 at 12:25 pm #1423780
Hi,
I’ve finally had to bite the bullet and update PHP. I’ve chosen 8.1 to be safe and it seems to be working fine except this warning in the error log:
[26-Oct-2023 10:19:10 UTC] PHP Warning: Undefined array key “desktop” in /home/blah/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 460
[26-Oct-2023 10:19:10 UTC] PHP Warning: Undefined array key “desktop” in /home/blah/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 462
[26-Oct-2023 10:19:16 UTC] PHP Warning: Undefined array key “desktop” in /home/blah/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 460
[26-Oct-2023 10:19:16 UTC] PHP Warning: Undefined array key “desktop” in /home/blah/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 462
[26-Oct-2023 10:19:35 UTC] PHP Warning: Undefined array key “desktop” in /home/blah/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 460
[26-Oct-2023 10:19:35 UTC] PHP Warning: Undefined array key “desktop” in /home/blah/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 462
[26-Oct-2023 10:19:49 UTC] PHP Warning: Undefined array key “desktop” in /home/blah/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 460
[26-Oct-2023 10:19:49 UTC] PHP Warning: Undefined array key “desktop” in /home/blah/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 462
[26-Oct-2023 10:20:57 UTC] PHP Warning: Undefined array key “desktop” in /home/blah/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 460
[26-Oct-2023 10:20:57 UTC] PHP Warning: Undefined array key “desktop” in /home/blah/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 462
[26-Oct-2023 10:20:58 UTC] PHP Warning: Undefined array key “desktop” in /home/blah/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 460
[26-Oct-2023 10:20:58 UTC] PHP Warning: Undefined array key “desktop” in /home/blah/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 462Is there something I’m missing? I’ve flushed caches, compiled CSS, JS, etc.
Thanks,
Paul.October 26, 2023 at 4:25 pm #1423797October 26, 2023 at 9:07 pm #1423834Hi Rikard,
I’m using v 5.6.8
If it’s a clue, I think this is only happening when I do anything with custom post types. For example, in wp-admin, if I browse pages or posts I don’t see the error. If I browse one of my custom post types the error logs.
I’ve declared those custom post types using CPT UI plugin and then added page builder to them with this in functions.php….
// Add ALB to custom post types
add_filter(‘avf_builder_boxes’, ‘avia_register_meta_boxes’, 10, 1); //Add meta boxes to custom post types
function avia_register_meta_boxes($boxes)
{
if(!empty($boxes))
{
foreach($boxes as $key => $box)
{
$boxes[$key][‘page’][] = ‘location’;
$boxes[$key][‘page’][] = ‘solicitors’;
}
}
return $boxes;
}(I think I got this from your forum some time ago.)
Might be a red herring, but I thought I’d mention it from my troubleshooting.
Cheers,
Paul.October 27, 2023 at 7:15 am #1423876Hi,
Thank you for the info.
Did you modify any of the template files in the child theme? It’s possible that one of the templates is outdated and may need to be replaced with the latest version.
Best regards,
IsmaelOctober 27, 2023 at 8:54 am #1423882Hi Ismael,
Quite possibly, yes.
I’ll take a look and let you know either way.Thanks for the speedy reply, great support as always.
Thanks,
PaulOctober 27, 2023 at 10:31 am #1423894Hi,
Thanks for the update. Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
RikardOctober 27, 2023 at 10:34 am #1423895Cheers Rikard,
Leave it open for a minute. It’s not custom templates, it’s something in my (very long) child functions.php. I’m registering custom post types, taxonomies and all sorts of fun in there.
I might need assitance with some syntax change when I find the culprit, and it might be useful for others if there’s a fix.
I’ll let you know when I find the little bugger.
Thanks,
Paul.October 28, 2023 at 12:43 pm #1423946 -
AuthorPosts
- You must be logged in to reply to this topic.