[wikka-community] Issue upgrading from 1.2 to 1.3.4 p1
Wagner Correa Ramos
wagner.ramos at gmail.com
Sat Dec 14 11:45:21 UTC 2013
Hi,
I had some issues upgrading from 1.2 to 1.3.4p1, some related with the
database changes, but this ones I could do the changes manually but
there was one that needed a litle more work.
After upgrade all pages come with this error message:
Notice: Undefined index: CSRFToken in
/var/www/object.com.br/wiki/libs/Wakka.class.php on line 3262
I try to erase navigator cache, etc but error persists, so searching
google, etc, I found one possible solution:
In the wikka.php, I need to insert some lines showed above:
/**
* Start session.
*/
$base_url_path = preg_replace('/wikka\.php/', '', $_SERVER['SCRIPT_NAME']);
$wikka_cookie_path = ('/' == $base_url_path) ? '/' :
substr($base_url_path,0,-1);
session_set_cookie_params(0, $wikka_cookie_path);
session_name(md5(BASIC_COOKIE_NAME.$wakkaConfig['wiki_suffix']));
session_start();
// I need to include the 3 lines above to stop the Undefined index error.
if(!isset($_SESSION['CSRFToken']))
{
$_SESSION['CSRFToken'] = sha1(getmicrotime());
}
// End of included lines
// fetch wakka location
/**
* Fetch wakka location (requested page + parameters)
*
* @todo files action uses POST, everything else uses GET #312
*/
$wakka = GetSafeVar('wakka'); #312
HTH some other users, congratulations for WikkaWiki, the best open
source wiki resouce.
Sincerely,
--
Wagner Correa Ramos
wagner at object.com.br
http://www.object.com.br
More information about the community
mailing list