Project

General

Profile

Actions

Bug #40932

closed

PHP Fatal error: Class '\\TYPO3\\CMS\\Core\\Database\\SqlParser' not found

Added by Jan Kiesewetter over 11 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2012-09-14
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

Actions #1

Updated by Oliver Hader over 11 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.

Actions #2

Updated by Oliver Hader over 11 years ago

  • Priority changed from Must have to Should have
Actions #3

Updated by Jan Kiesewetter over 11 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.

Actions #4

Updated by Martin Helmich over 11 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

Actions #5

Updated by Gerrit Code Review over 11 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

Actions #6

Updated by Gerrit Code Review over 11 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/14689

Actions #7

Updated by Martin Helmich over 11 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF