Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1418344

    Hi,
    after Updating Enfold to the newest Version (5.6.6), we encountered a fatal error on our xml sitemaps.

    Uncaught TypeError: …. /wordpressinstallation/wp-content/themes/enfold/config-wordpress-seo/config.php on line 353

    PHP 8.1.21
    Wordpress 6.3.1
    Yoast 21.1

    Thanks for looking into it!

    • This topic was modified 1 year, 3 months ago by DUALWERK.
    #1418387

    Hey DUALWERK,

    Could you share server error logs with us please?

    Best regards,
    Rikard

    #1418433

    Sure.

    #1418468

    Hi,

    Thank you for the info.

    Did you set a custom footer or 404 page, or did you install WPML? Please provide the WP and S/FTP login details in the private field so that we can properly check the issue.

    Best regards,
    Ismael

    #1418729

    A custom 404 page is set.

    #1418847

    Hi,

    Thank you for the info.

    We are not yet sure what is causing the issue but it is generated by the avia_wpseo_sitemap_exclude_pages function in the enfold/config-wordpress-seo/config.php file. We may need to access the server via S/FTP in order to properly check the issue. Please provide the details in the private field.

    In the meantime, please try to edit the file or function mentioned above, and look for this code around line 340.

    $post_ids = array_unique( $post_ids, SORT_NUMERIC );
    

    Below, add this code.

    if ($post_ids === null) {
    			$post_ids = array();
            }
    

    Best regards,
    Ismael

    #1418868

    Sadly and strangely the error still shows up.

    FTP creds in private.

    #1418975

    Hi,

    Thank you for the info.

    We’ve modified the avia_wpseo_sitemap_exclude_pages function a bit and adjusted the accepted types for the first parameter.

    This is the temp fix on line 335.

    function avia_wpseo_sitemap_exclude_pages( array | null $post_ids = array() )
    

    The error in the sitemap is now gone.

    We’ll forward the thread to our channel for further inspection.

    Best regards,
    Ismael

    #1419005

    Awesome as ever. Thank you!

    #1419115

    Hi,

    You’re welcome. Please note that the modification is a temporary solution. We’ll provide another fix once we understand the issue better.

    Have a nice day.

    Best regards,
    Ismael

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