Zen cart installation / maintenance / customisation / hosting
Supported Modules: Dutch language pack, Multi site, Dynamic Price Updater and more.
Hi
I am using v1.5.4 and am failing at getting the sitemapXML.21 to work. I have checked and rechecked the files....and reinstalled.
In admin under tools, I have sitemap but it doesnt say install and just goes to a blank page. There is no sitemap listed under configuration.
I checked the logs -
PHP Warning: mysqli_connect(): Headers and client library minor version mismatch. Headers:50537 Library:50623 in /home/pet/public_html/includes/classes/db/mysql/query_factory.php on line 62
which reads
$this->link = mysqli_connect($zf_host, $zf_user, $zf_password);
Really don't know what to do next.....Thanks
This warning usually indicates your hosting environment has some issues regarding the way PHP / MySQL were compiled. This is NOT Zen Cart or SiteMap XML related and will require attention from the server administrator. Time for a support call to the hosting provider regarding this PHP Warning.
Back on topic, are there any myDEBUG-adm-* files (admin side PHP error and warning log file)? What is the URL of the "blank page" (if inside the admin, replace the admin folder with "mysecretadmin" when posting)? What is the "blank page" HTTP response code (ex: 200, 404, 500 - use the network tab in firebug or developer tools)? Are there any server error logs?
The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker
Thanks so much... Went into the debug files and found the missing file. All working now!
Greetings All,
Just install latest ver (v 3.2.13 20.08.2015 11:14:48) on ZC 154. All seems to be working, xml files created, except when I enter the index.php?main_page=sitemapxml&inline=yes&token=xxxx parameter in Google Webmaster Sitemap Tester.
BTW, I've substituted the actual domain with your_domain since I am also using a security token.
Example: http://your_domain/index.php?main_pa...yes&token=xxxx
Google Sitemap Tester returns:
Parsing error
We were unable to read your Sitemap. It may contain an entry we are unable to recognize. Please validate your Sitemap before resubmitting.
When I enter manually in Firefox, I receive the following error:
XML Parsing Error: XML or text declaration not at start of entity
Location: http://www.your_domain/index.php?mai...yes&token=xxxx
Line Number 1, Column 2: <?xml version="1.0" encoding="UTF-8"?>
-^
When looking at the page source in Firefox, I notice that the xml file is correct except for the closing tag is incomplete. Not sure if this is the only issue.
</sitemapindex
If I submit and test the sitemap.xmp from the root directly, all is correct with NO errors.
Has anyone else experienced this? Any suggestion?
Thanks![]()
Experience is what you get when you don’t get what you want…
I just tried it on mine. The only difference is I am running version:
3.2.12 19.09.2013 8:06:18
So, I looked more closely at the error from FF. It seems that there is a white space before the opening declaration.
<?xml version="1.0" encoding="UTF-8"?>
^
If I save the page source and remove the space, then reopen it in FF, no error! The problem is I can't seem to find were in the sitemap code this space is being introduced? The root sitemap.xml doesn't have this issue...
I looked at the function _SitemapXMLHeader() in the sitemapxml.php class where the first lines are:
No white space here, but some how when the $header is returned and sent back to the browser, there is a space???PHP Code:
function _SitemapXMLHeader() {
$header = '';
$header .= '<?xml version="1.0" encoding="UTF-8"?'.'>' . "\n";
What do you think?![]()
Experience is what you get when you don’t get what you want…
Bookmarks