Jump to content

[Resolved] Sitemap Blank Page


toast691

Recommended Posts

Hi Dirty Butter,

I do have debug enabled but no information appears at all after i click rebuild sitemap. If I click the browsers back button and try to navigate to another page in admin I get a 'Possible cross site request forgery (CSRF) or browser back button used' error. Debug then shows a warning:

PHP:
[Warning] /home/augreenpatchseed/public_html/classes/sanitize.class.php:112 - Invalid Security Token[Notice] /home/augreenpatchseed/public_html/includes/functions.inc.php:202 - Undefined variable: _GET[Notice] /home/augreenpatchseed/public_html/includes/functions.inc.php:202 - Undefined variable: _GET[Notice] /home/augreenpatchseed/public_html/includes/functions.inc.php:202 - Undefined variable: _GET[Notice] /home/augreenpatchseed/public_html/admin/sources/dashboard.index.inc.php:193 - Undefined offset: 0[Notice] /home/augreenpatchseed/public_html/admin/sources/dashboard.index.inc.php:259 - Undefined variable: smarty_data

Regards

Stami

Link to comment
Share on other sites

Using a programmer's text editor (not a word processor), please create a file called ini-custom.inc.php, and have as its contents:

<?php
# Custom initialization commands
# Filename: ini-custom.inc.php
# File location: main CubeCart folder

ini_set('memory_limit', '256M');
ini_set('max_execution_time', '60');
ini_set('error_log', 'error_log');
ini_set('log_errors', 'on');

?>

Place this file in CubeCart's main folder at your site.

Your hosting control panel's set of tools may have an editor available.

If the problem is with CubeCart, and you get the blank page, there should be a new file named error_log in the main folder.

Link to comment
Share on other sites

Ok so I understand what you were trying to achieve bsmither and there was already a file there named error_log so i had a look at what the last error was and it is as follows:

[21-Jul-2016 14:44:53 Australia/Sydney] PHP Fatal error:  Class 'XMLWriter' not found in /home/augreenpatchseed/public_html/classes/xml.class.php on line 21
[21-Jul-2016 04:44:57 UTC] PHP Warning:  Invalid Security Token in /home/augreenpatchseed/public_html/classes/sanitize.class.php on line 112

The error_log file has been recording errors but they are not being shown in the store admin area... It just appears empty without any errors.

 

Line 21-30 of that file is as follows:

class XML extends XMLWriter {

    ##############################################

    public function __construct($xml_header = true, $indent_string = ' ') {
        $this->openMemory();
        $this->setIndent(true);
        $this->setIndentString($indent_string);
        if ($xml_header) {
            $this->startDocument('1.0', 'UTF-8');

Link to comment
Share on other sites

In CubeCart's admin, PHP Info, scroll to nearly the end, to a table named Environment.

The tables just above that should be (in bottom to top order):

Additional Modules
zlib
zip
xmlwriter
xmlreader
xml

If the XML tables are not there, or that they show these functions are disabled or not active, please have a consult with your hosting provider to enable them.

CubeCart uses XML for a wide variety of functions.

Link to comment
Share on other sites

Awesome! Thanks bsmither.. xmlwriter and xmlreader were missing so I just enabled them in cpanel which solved the problem!

This must have happened last time I upgraded cubecart because I had to upgrade the php version as well for cubecart to run.

Thanks again!

Stami

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...