Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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 462

    Is there something I’m missing? I’ve flushed caches, compiled CSS, JS, etc.

    Thanks,
    Paul.

    #1423797

    Hey Paul,

    Which version of the theme are you running?

    Best regards,
    Rikard

    #1423834

    Hi 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.

    #1423876

    Hi,

    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,
    Ismael

    #1423882

    Hi 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,
    Paul

    #1423894

    Hi,

    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,
    Rikard

    #1423895

    Cheers 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.

    #1423946

    Hi Paul,

    Sure thing, we’ll leave it open :-)

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.