• Resolved searchbuzz

    (@searchbuzz)


    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/

Viewing 11 replies - 1 through 11 (of 11 total)
  • 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 🙂

    Thread Starter searchbuzz

    (@searchbuzz)

    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?

    Yes, it’s the pre-4.4 … any warnings still ?

    Thread Starter searchbuzz

    (@searchbuzz)

    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?

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

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

    Thread Starter searchbuzz

    (@searchbuzz)

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

    Thread Starter searchbuzz

    (@searchbuzz)

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

    http://searchbuzz.co/sitemap.xml

    White blank screen.

    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.

    Thread Starter searchbuzz

    (@searchbuzz)

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

    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!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘PHP Warnings in Error Log when using this plugin’ is closed to new replies.