Topic Closed Previous1Next |
When I try to use the automatic update from version 2.2 to 2.3 I get a XSS error message and the following php-errors:
Notice (8) Undefined property: update_class::$gpLayoutIt's a bit of a chain of events that causes this. The debugging setting in the install script results in a notice for an undefined variable which prevents the javascript from executing, which prevents the client side form validation, which results in the xss detection, preventing gpEasy from upgrading. Two things
1) Just for reassurance, this problem has been fixed in 2.3
2) Getting it to work in 2.2 is very simiple. Just remove the define('gpdebug',true); in /include/install/update.php
Sorry about the trouble.
The intention was to allow for more information to be displayed in case of an error during the update process, but it resulted in the update failing because of small & insignificant notices.
Thank you, that works fine.
Just in case someone else has this problem and does not know immediately what to change, this is how the changed part at the beginning of the file should look like:
<?php
define('is_running',true);
//old entry point
if( defined('gpdebug') ){
$dir = dirname(dirname(__FILE__));
require_once($dir.'/common.php');
common::EntryPoint(0,'update.php');
//new entry poing
}else{
// define('gpdebug',true);
require_once('../common.php');
common::EntryPoint(2,'update.php');
}
You should be good. The upgrade process is fairly involved and is constantly making sure everything is working properly before it will finalize the upgrade. If anything doesn't go as planned, the current step will stop to prevent any unwanted results. Depending on the step, you can normally continue on with the upgrade process without having to start over, which sounds like is what happened in your case. So yeah, it should be all set.
The finishing touches of our latest release have been made and gpEasy 4.0 is available ... Read More
Third 4.0 Release CandidateThe third release candidate for gpEasy 4.0 is now available. Next release: 4.0 Final! Download ... Read More
More NewsFind out more about gpEasy's Provider Spotlight
Which CMS: Which CMS should you use?
What CMS: Find out what CMS a site is using.
phpEasyMin: Minimize multiple JavaScript and CSS files in one sweep.