Zen Follower
- Join Date:
- Mar 2009
- Location:
- Italy
- Posts:
- 155
- Plugin Contributions:
- 0
SitemapXML v.2
Hi all,
I've updated the plugin today and the update process went great, It show the correct version, everything seem fine except if i try to rebuilt the xml file or ping the search engine.. in that case it opern a blank windows that state "the page is not working".
In the log i found this error:
[28-Jun-2016 18:26:10 Europe/Rome] PHP Fatal error: Cannot redeclare sitemapxmlerrorhandler() in /.../includes/modules/pages/sitemapxml/header_php.php on line 17
The error is pointing to this line:
function sitemapxmlErrorHandler($errno, $errstr, $errfile, $errline) {
global $old_error_handler;
if ($errno == 2048 && $errstr == 'is_a(): Deprecated. Please use the instanceof operator') return $old_error_handler;
if ($errno == 8 && $errstr == 'Undefined offset: 1' && substr($errfile, -11) == 'seo.url.php') return $old_error_handler;
if ($errno == 8 && (substr($errstr, 0, 9) == 'Constant ' && substr($errstr, -16) == ' already defined')) return $old_error_handler;
if ($errno == 2048 && strpos($errstr, 'It is not safe to rely on the system\'s timezone settings.') !== false) return $old_error_handler;
if ($errno == 2 && substr($errfile, -17) == 'template_func.php') return $old_error_handler;
error_log('errno => ' . $errno . ',' . "\n" . 'errstr => \'' . $errstr . '\',' . "\n" . 'errfile => \'' . $errfile . '\',' . "\n" . 'errline => ' . $errline . ',' . "\n", 3, DIR_FS_CATALOG . 'sitemapxml.log');
return $old_error_handler;
}
What i did to solve the problem:
- Reintalled all the file (uploaded again)
- Used the uninstall button and install it again
- searched for another sitemapxmlErrorHandler declaration but couldn't find it.
Using zencart 1.54, last version of Sitemap used was 3.2
Gonna try some other stuff but meanwhile if someone has suggestions I'll appreciate :-)