Bug #40932
closedPHP Fatal error: Class '\\TYPO3\\CMS\\Core\\Database\\SqlParser' not found
100%
Description
I get the following PHP error on my Mac with the shipped PHP 5.3.13 in OS X 10.8.1.
The frontend only shows toussants question marks.
This happens with beta1 and current git core.
Apache error log:
[Fri Sep 14 16:21:16 2012] [error] [client 127.0.0.1] PHP Fatal error: Class '\\TYPO3\\CMS\\Core\\Database\\SqlParser' not found in /Library/WebServer/Documents/typo3_src-git/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 4154 [Fri Sep 14 16:21:16 2012] [error] [client 127.0.0.1] PHP Stack trace: [Fri Sep 14 16:21:16 2012] [error] [client 127.0.0.1] PHP 1. {main}() /Library/WebServer/Documents/typo3_src-git/index.php:0 [Fri Sep 14 16:21:16 2012] [error] [client 127.0.0.1] PHP 2. require() /Library/WebServer/Documents/typo3_src-git/index.php:42 [Fri Sep 14 16:21:16 2012] [error] [client 127.0.0.1] PHP 3. TYPO3\\CMS\\Core\\Core\\Bootstrap->initializeTypo3DbGlobal() /Library/WebServer/Documents/typo3_src-git/typo3/sysext/cms/tslib/index_ts.php:84 [Fri Sep 14 16:21:16 2012] [error] [client 127.0.0.1] PHP 4. TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance() /Library/WebServer/Documents/typo3_src-git/typo3/sysext/core/Classes/Core/Bootstrap.php:578 [Fri Sep 14 16:21:16 2012] [error] [client 127.0.0.1] PHP 5. ux_TYPO3\\CMS\\Core\\Database\\DatabaseConnection->__construct() /Library/WebServer/Documents/typo3_src-git/typo3/sysext/core/Classes/Utility/GeneralUtility.php:4154 [Fri Sep 14 16:21:16 2012] [error] [client 127.0.0.1] PHP 6. TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance() /Library/WebServer/Documents/typo3_src-git/typo3/sysext/dbal/Classes/Database/DatabaseConnection.php:209
After i removed the dbal from the LocalConfiguration and configured db settings in the file v6 runs but the system extensions extension manager and languages show the exception "Class TYPO3\CMS\Extensionmanager\Utility\DatabaseUtility does not exist"
output php -version
PHP 5.3.13 with Suhosin-Patch (cli) (built: Jun 20 2012 17:05:20) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies with Xdebug v2.1.3, Copyright (c) 2002-2012, by Derick Rethans
Updated by Oliver Hader about 12 years ago
- Status changed from New to Needs Feedback
Could not reproduce with recent Git master.
Please run a git submodule update --init
to get the latest version of the submodules (like DBAL) as well.
Updated by Oliver Hader about 12 years ago
- Priority changed from Must have to Should have
Updated by Jan Kiesewetter about 12 years ago
I just deleted the entire TYPO3 Core and cloned it again with
git clone --recursive git://git.typo3.org/TYPO3v4/Core.git typo3_src-git
No change.
I can reproduce it on a 2nd Macbook with 10.8.1.
Updated by Martin Helmich about 12 years ago
Hi everyone,
after some digging, I discovered that this problem originates from the file SqlParser.php containing raw binary characters (especially null-bytes, but also CR and SUB characters; when opening the file in VI, you see lots of ^@, ^M and ^Z characters). Apparently, this causes some PHP interpreters to break (we were able to reproduce the issue with self-compiled versions of PHP 5.3.8 and 5.3.15 running via CGI).
I suspect that the nullbytes are the main problem here, however I did not investigate further and simply replaced all raw binary characters with their corresponding chr(x) calls. I'll uploads the patch for review in a few minutes.
Best regards,
Martin
Updated by Gerrit Code Review about 12 years ago
- Status changed from Needs Feedback to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/14689
Updated by Gerrit Code Review about 12 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/14689
Updated by Martin Helmich about 12 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset aea6a1375234e34b1d1e8be993bdf7cd1739dffb.