WordPress.org

Forums

XML Sitemap & Google News feeds
[resolved] PHP Warnings in Error Log when using this plugin (12 posts)

  1. searchbuzz
    Member
    Posted 10 months ago #

    Hello - since I began using this plugin, my error log in my root directory is going crazy with thousands of lines showing the follwing error message:

    [27-Jul-2014 08:00:15 UTC] PHP Warning: Division by zero in /home/username/public_html/wp-content/plugins/xml-sitemap-feed/includes/core.php on line 562

    Is there a fix for this? Error log is starting to take up space with this error coming up every second or so, and I need it to keep an eye out of other errors, so do not want to disable it.

    Ash

    https://wordpress.org/plugins/xml-sitemap-feed/

  2. RavanH
    Member
    Plugin Author

    Posted 9 months ago #

    Hi searchbuzz, you have two options:

    1. I see you do not want to switch off error logging but you still might consider reducing the error log level in either your php.ini with

    error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED & ~E_WARNING

    or in your wp-config with

    ini_set('error_reporting',E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED & ~E_WARNING);

    so that it will not show warnings anymore. Or you can try

    ignore_repeated_errors = 1

    in php.ini to reduce the number of both errors and warnings.

    2. You can upgrade the plugin to the development version from http://wordpress.org/plugins/xml-sitemap-feed/developers/ 'under Other Versions) and if there are still new warnings occurring, then please let me know and I'll fix them.

    Hope that helps :)

  3. searchbuzz
    Member
    Posted 9 months ago #

    Hi, I downloaded the development version from that page, and it says it is version 4.3.106 - when the current release version of 4.3.2. Have I downloaded the right one?

  4. RavanH
    Member
    Plugin Author

    Posted 9 months ago #

    Yes, it's the pre-4.4 ... any warnings still ?

  5. searchbuzz
    Member
    Posted 9 months ago #

    When I installed that one, my sitemap URLs no longer loaded.

    Then I went back to 4.3.2 and sitemaps are working again.

    I will just wait until next version is publicly available, do you have a planned release date?

  6. RavanH
    Member
    Plugin Author

    Posted 9 months ago #

    Hi, you might need to revisit/resave your permalink structure... could you test that?

  7. RavanH
    Member
    Plugin Author

    Posted 9 months ago #

    Because if I don't know why this happens, I won't be able to release the dev version as stable...

  8. searchbuzz
    Member
    Posted 9 months ago #

    Hi, sorry. Very busy at work. Will test this now and report back in 5 mins

  9. searchbuzz
    Member
    Posted 9 months ago #

    Hi, I updated to dev version. I updated permalink structure, but I see this:

    http://searchbuzz.co/sitemap.xml

    White blank screen.

  10. RavanH
    Member
    Plugin Author

    Posted 9 months ago #

    I'm seeing your sitemap just fine. It might be a caching problem (the stylesheet has changed) so please try to clear browser cache or if you're on Chrome, visit the sitemap in an 'incognito' browsers window.

  11. searchbuzz
    Member
    Posted 9 months ago #

    Ah yes, seems to be working now. I do run "Cache Killer" plugin for Google Chrome, but it seemed to not work.

  12. RavanH
    Member
    Plugin Author

    Posted 9 months ago #

    In the Chrome DevTools settings you can check the option Disable cache (while DevTools is open) but even then that might not include the xls stylesheet. When the DevTools are open, you can always right-click the Reload button and choose 'Clear cache and reload' to be sure :)

    Please let me know if you notice any more warnings or notices related to my plugin in your log files and I'll iron them out before the stable release. Thanks for your help!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags