I've digged down in my Apache Error log and got this:
Code: Select all
[php:error] [pid 3060:tid 1376] [client xxx.xxx.x.xxx:56619] PHP Fatal error: Uncaught TypeError: hash_equals(): Argument #1 ($known_string) must be of type string, null given in
C:\\Apache24\\htdocs\\prototypes\\app\\wet\\modules\\FormBuilder\\classes\\CsrfField.class.php:81\nStack trace:\n#0
C:\\Apache24\\htdocs\\prototypes\\app\\wet\\modules\\FormBuilder\\classes\\CsrfField.class.php(81): hash_equals(NULL, '864cf8347202d99...')\n#1
C:\\Apache24\\htdocs\\prototypes\\app\\wet\\modules\\FormBuilder\\classes\\Form.class.php(612): fbCsrfField->Validate()\n#2
C:\\Apache24\\htdocs\\prototypes\\app\\wet\\modules\\FormBuilder\\action.default.php(116): fbForm->Validate()\n#3
C:\\Apache24\\htdocs\\prototypes\\app\\wet\\lib\\classes\\class.CMSModule.php(1407): include('C:\\\\Apache24\\\\htd...')\n#4
C:\\Apache24\\htdocs\\prototypes\\app\\wet\\modules\\FormBuilder\\FormBuilder.module.php(210): CMSModule->DoAction('default', 'cntnt01', Array, '54')\n#5
C:\\Apache24\\htdocs\\prototypes\\app\\wet\\lib\\classes\\class.CMSModule.php(1483): FormBuilder->DoAction('default', 'cntnt01', Array, '54')\n#6
C:\\Apache24\\htdocs\\prototypes\\app\\wet\\lib\\page.functions.php(550): CMSModule->DoActionBase('default', 'cntnt01', Array, '54', Object(Smarty_CMS))\n#7
C:\\Apache24\\htdocs\\prototypes\\app\\wet\\index.php(156): preprocess_mact('54')\n#8 {main}\n thrown in
C:\\Apache24\\htdocs\\prototypes\\app\\wet\\modules\\FormBuilder\\classes\\CsrfField.class.php on line 81, referer: https://dev.mydomain.dk/prototypes/index.php?page=test
It looks like it's the validating of the CSRF Token in a multipart form, that gives me some problemes on my local server, when i click back in the form.
But it works on a commercial host server, so i belive i need to change some settings in my local php.ini file but what settings?