-
AuthorPosts
-
September 7, 2023 at 9:31 am #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.1Thanks for looking into it!
- This topic was modified 1 year, 3 months ago by DUALWERK.
September 7, 2023 at 6:36 pm #1418387Hey DUALWERK,
Could you share server error logs with us please?
Best regards,
RikardSeptember 8, 2023 at 10:11 am #1418433Sure.
September 8, 2023 at 1:59 pm #1418468Hi,
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,
IsmaelSeptember 11, 2023 at 10:46 am #1418729A custom 404 page is set.
September 12, 2023 at 8:26 am #1418847Hi,
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,
IsmaelSeptember 12, 2023 at 10:29 am #1418868Sadly and strangely the error still shows up.
FTP creds in private.
September 13, 2023 at 3:51 am #1418975Hi,
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,
IsmaelSeptember 13, 2023 at 9:18 am #1419005Awesome as ever. Thank you!
September 14, 2023 at 4:19 am #1419115 -
AuthorPosts
- You must be logged in to reply to this topic.