toast691 Posted July 20, 2016 Share Posted July 20, 2016 Hi, I have had this problem for a little while now.. When I try to re-build my sitemap I get a blank page and no errors in cubecart or cpanel. The link it goes to is https://www.greenpatchseeds.com.au/admin.php?_g=maintenance Any idea what it could be? Regards Stami Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted July 20, 2016 Share Posted July 20, 2016 Do you have Debug enabled in the Store Settings? Do you get any information there when you submit? Quote Link to comment Share on other sites More sharing options...
toast691 Posted July 20, 2016 Author Share Posted July 20, 2016 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 Quote Link to comment Share on other sites More sharing options...
bsmither Posted July 21, 2016 Share Posted July 21, 2016 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. Quote Link to comment Share on other sites More sharing options...
toast691 Posted July 21, 2016 Author Share Posted July 21, 2016 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'); Quote Link to comment Share on other sites More sharing options...
bsmither Posted July 21, 2016 Share Posted July 21, 2016 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 Moduleszlib 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. Quote Link to comment Share on other sites More sharing options...
toast691 Posted July 21, 2016 Author Share Posted July 21, 2016 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.