after upgrade from 2.0.3 to 2.1.0.2, faced several errors at several files
the error similar as following :
Fatal error: Call to undefined function token() in
/admin/model/user/user.php on line 12
which I need to fix as following
replace the token(9)
to
substr(md5(uniqid(rand(), true)), 0, 9)
to temporary fix the error.
the similar error happened at other files too, example, customer.php.
Kindly advise how can I fix this function token permanently.
You probably used the default "upgrade" script and it does not work properly. this will work better for you - http://www.randemsystems.com/support/op ... n-2-1-0-1/
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
Do u mind to advise a simple quick fix for this error ?
If yes, open in system dir file startup.php and look for:
Code: Select all
require_once(DIR_SYSTEM . 'helper/general.php');
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
Or your need update all system files to OC version 2.1.0.x.daniGo wrote:Check if in system/helper you have file general.php and inside function token.
If yes, open in system dir file startup.php and look for:
If is not here add this line.Code: Select all
require_once(DIR_SYSTEM . 'helper/general.php');
daniGo wrote:Check if in system/helper you have file general.php and inside function token.
If yes, open in system dir file startup.php and look for:
If is not here add this line.Code: Select all
require_once(DIR_SYSTEM . 'helper/general.php');
Hi, thanks a lot, this fix the issue.
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
Users browsing this forum: No registered users and 200 guests