Bug #21721
closed
Added by Michael Albers over 14 years ago.
Updated almost 6 years ago.
Description
Backend login fails after upgrade from 4.2 with following error.
Fatal error: Call to undefined function json_encode() in /usr/local/www/typo3/typo3_src-4.3.0RC2/typo3/backend.php on line 359
(issue imported from #M12806)
go to the install tool and use the database analyzer and the upgrade wizard.
Then delete the temp_cached files, clear your browser cache and check again...
I didn't think it was needed to mention that i already did that. Tried that several times without succes.
There are quite a few people these days who prefer using the bugtracker instead of the mailing lists. So I posted you these information just to make sure, that it's not such a simply configuration problem.
The function json_encode() is included beginning at PHP 5.2.
Maybe your PHP version nevertheless misses JSON-support?
Michael, what is the PHP version you are using and on which operating system?
Oliver, I'm running PHP 5.2.5 on FreeBSD 6.3-RELEASE-p1
Christopher, since i run that version it should be installed. But i must admit it looks like it isn't.
Using phpinfo() you should see some information. Search for "json" to see the version installed...
Additional to my system. It's running Plesk as well.
No mention about json at all in phpinfo
Hmm, using XAMPP with PHP 5.2 I have this section in phpinfo():
json
json support enabled
json version 1.2.1
Searching the web I found this:
http://php.net/manual/de/json.installation.php
Quote:
"On one server I use (FreeBSD 6.3; PHP 5.2.6 as module in Apache 2.2.10), PHP was compiled with the '--disable-all' configuration option. Consequently, there exists a secondary configuration file -- /usr/local/php5/etc/extensions.ini -- in which the line
; extension=json.so
must be uncommented (delete the semicolon) and Apache restarted for these functions to be available."
thanks, Christopher. But the line extension=json.so is uncommented in the extensions.ini file and it is still not working.
I'll see if i can upgrade my php version.
Must have been something with the json installation. Reinstalled php5-json aswell as php5-filter.
Seems to be working now.
I still get another error, but i will check the other issues on that.
Thanks for the help
That's fine; no problem! ;-)
- Status changed from Resolved to Closed
Also available in: Atom
PDF