Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error #1

Closed
seirerman opened this issue Apr 5, 2016 · 3 comments
Closed

Fatal error #1

seirerman opened this issue Apr 5, 2016 · 3 comments

Comments

@seirerman
Copy link

I got a php error after installing the extension:

PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/html/typo3conf/ext/shortcut_statuscodes/Classes/Controller/ShortcutStatuscodesTypoScriptFrontendController.php on line 27

@seirerman
Copy link
Author

This is because it ::class requires PHP 5.5, which TYPO3 6.2 doesn't (PHP 5.3.7+).

@seirerman
Copy link
Author

This should work:

// $cObj = GeneralUtility::makeInstance(ContentObjectRenderer::class);
$cObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer');

@pixelbrackets
Copy link
Contributor

Hey @seirerman Thanks for the report. Please use version 1.0.1 of the extension, now available in TER.

I have also just send version 2.0.0 to the TYPO3 repository, which drops support for PHP < 5.5.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants