Blank (Empty) Sitemap pages (Yoast)
-
Thanks for your plugin!
I often encounter problems after an update with this plugin.
For example, right now the problem is like this:It took a long time to figure out the problem.
Yoast’s default sitemap page is /sitemap_index.xml
This page has other sitemap pages, where there are images, for example:
/post-sitemap.xml
/page-sitemap.xml
/product-sitemap.xmlThey open empty (blank page).
If you look at the code of the page view-source:…/page-sitemap.xml , there is the sitemap code.
But the page is blank.
After disabling your plugin, the problem disappears.
Why?
-
Hi @scnwincskuecsd,
HThank you for your message. I am sorry you have encountered a problem with our plugin. Do not worry, I will try to help you.
I want to see what might have gone wrong. Could you send me a screenshot of the Help Center tab in the plugin’s settings? I will check it because in this tab I have information about the status of your website.
Best, Mateusz
note: the cloudflare has been cleared, the caching plugin has been disabled – this does not affect the problem
If I forcibly delete images from the sitemap, the problem disappears.
/* Remove Images From Yoast Sitemap */
add_filter( ‘wpseo_xml_sitemap_img’, ‘__return_false’ );Thank you @scnwincskuecsd,
Please use the image loading mode as via .htaccess. Tell me please, why are you using Pass Thru instead of the default settings?
Dear Friend! Thank you for your prompt reply.
The server is currently configured with Nginx.
I have not changed the plugin settings in the wordpress control panel.
The Nginx configuration file is configured and everything was working correctly recently.
The server administrator has not changed anything.
What could be the problem?server { server_name [...].com www.[...].com; charset UTF-8; index index.php index.html; disable_symlinks if_not_owner from=$root_path; include /etc/nginx/vhosts-includes/*.conf; include /etc/nginx/vhosts-resources/[...].com/*.conf; access_log /var/www/httpd-logs/[...].com.access.log; error_log /var/www/httpd-logs/[...].com.error.log notice; ssi on; rewrite ^/([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 last; return 301 https://$host:443$request_uri; set $root_path /var/www/world/data/www/[...].com; root $root_path; gzip on; gzip_comp_level 5; gzip_disable "msie6"; gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript; # BEGIN Converter for Media location ~ /wp-content/(?<path>.+)\.(?<ext>jpe?g|png|gif)$ { if ($http_accept !~* "image/webp") { break; } add_header Vary Accept; add_header Cache-Control "private"; expires 365d; try_files /wp-content/uploads-webpc/$path.$ext.webp $uri =404; } # END Converter for Media location / { try_files $uri $uri/ /index.php?$args; location ~ [^/]\.ph(p\d*|tml)$ { try_files /does_not_exists @php; } location ~* ^.+\.(jpg|jpeg|webp|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ { expires 365d; } } # Yoast’s location ~ ([^/]*)sitemap(.*)\.x(m|s)l$ { rewrite ^/sitemap\.xml$ /sitemap_index.xml permanent; rewrite ^/sitemap\.xsl$ /index.php?xsl=1 last; rewrite ^/sitemap_index\.xml$ /index.php?sitemap=1 last; rewrite ^/([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 last; } location @php { fastcgi_index index.php; fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f web@[...].com"; fastcgi_pass unix:/var/www/php-fpm/world.sock; fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$; try_files $uri =404; include fastcgi_params; } listen 82.146.36.148:80; }
I rollback the Converter for Media plugin.
5.8.2. -> 5.8.1. -> 5.8.0. -> 5.7.1.
The problem disappeared on version 5.7.1.5.7.1. https://paste.pics/M7BJE
@scnwincskuecsd In this version, you use the Pass Thru method. Please use the via .htaccess method. If you are using the Nginx server, configure it according to the instructions.
I thought – what a cool plugin, I will definitely buy it.
First I installed the plugin on one wordpress site. Gave the server tech support your instructions on how to configure nginx. Paid them for the setup. After updating the plugin it stopped working correctly. Server tech support suggested I contact the plugin developer. I just disabled it.
Second, I decided to put the plugin on another server and another wordpress site (I blamed server tech support for my failures). But after updating the plugin, it stopped working correctly again. Technical support again suggested to contact the developer.
I did. You offer to configure the server, although everything was working before the plugin update.
This is running in a circle. I will definitely study your instructions again.
But the only thing that helped was rolling back your plugin.Do you think you always have to make changes to the configuration file after updating the plugin?
Thank you.
P.S. I understand that if I had bought a subscription, you would have solved the problem. But so far I don’t see any prospect of buying it.
@scnwincskuecsd Rolling back the plugin version did not solve your problem. In the older version you used Pass Thru mode and that’s why it worked – it would be the same in the newest version.
For Nginx, you need to manually add the appropriate rules. In the case of the Apache server, it is possible to create .htaccess files from the PHP level that support image redirection. In the case of the Nginx server, there is no access to the Nginx configuration from PHP.
Hello, dear Friend!
I have followed all the steps in the “Configuration for Nginx” instructions.
I have updated to the latest version.
The problem of empty sitemap page appeared again.I have studied the Nginx configuration file again.
I removed webp from the caching. The problem disappeared.Do you think I did the right thing? https://paste.pics/259c35f84d8db64681133bf80c35f969
@scnwincskuecsd Yes, you did well. This is described in step 4 in the “Configuration for Nginx” question in the plugin FAQ.
What plugin settings are you currently using? Please send me a screenshot of the settings page (the Advanced Settings tab).
I’m so sorry. I was very hasty to tell you about the success.
https://paste.pics/bcfc60391f20c37135c1d28e0ba8bd69
https://paste.pics/bf5391718802c16fb53d84a8b5a02dcfThe site map displays normally at this time.
But in the statistics I see unconverted images.
https://paste.pics/8ed342b3ea52678586d63719b85c4270At the same time caching and CDN are disabled.
@scnwincskuecsd From what I can see, you have an error message in the plugin settings panel. I checked on your website that you are using Cloudflare – did you enter the data for Cloudflare in the plugin settings, in the CDN Settings tab, according to the instructions?
- The topic ‘Blank (Empty) Sitemap pages (Yoast)’ is closed to new replies.