Project

General

Profile

Actions

Bug #21721

closed

backend login fails

Added by Michael Albers over 14 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-11-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions #1

Updated by Chris topher over 14 years ago

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...

Actions #2

Updated by Michael Albers over 14 years ago

I didn't think it was needed to mention that i already did that. Tried that several times without succes.

Actions #3

Updated by Chris topher over 14 years ago

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?

Actions #4

Updated by Oliver Hader over 14 years ago

Michael, what is the PHP version you are using and on which operating system?

Actions #5

Updated by Michael Albers over 14 years ago

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.

Actions #6

Updated by Chris topher over 14 years ago

Using phpinfo() you should see some information. Search for "json" to see the version installed...

Actions #7

Updated by Michael Albers over 14 years ago

Additional to my system. It's running Plesk as well.

No mention about json at all in phpinfo

Actions #8

Updated by Chris topher over 14 years ago

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."

Actions #9

Updated by Michael Albers over 14 years ago

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.

Actions #10

Updated by Michael Albers over 14 years ago

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

Actions #11

Updated by Chris topher over 14 years ago

That's fine; no problem! ;-)

Actions #12

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF