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

Deprecation Notice: Non-static method BK2K\BootstrapPackage\Service\CompileService::getCompiledFile() should not be called statically #103

Closed
Chrissitopher opened this issue Nov 22, 2014 · 2 comments

Comments

@Chrissitopher
Copy link
Contributor

Trying to run bootstrap_package with TYPO3 6.2.6 and PHP 5.6, I get this error:

PHP Runtime Deprecation Notice: Non-static method BK2K\BootstrapPackage\Service\CompileService::getCompiledFile() should not be called statically, assuming $this from incompatible context in ...\typo3conf\ext\bootstrap_package\Classes\Hooks\PageRendererRender\PreProcessHook.php line 47

Backtrace:

TYPO3\CMS\Core\Error\Exception thrown in file
...\typo3\sysext\core\Classes\Error\ErrorHandler.php in line 101.

10 TYPO3\CMS\Core\Error\ErrorHandler::handleError(8192, "Non-static method BK2K\BootstrapPackage\Service\CompileService::getCompiledFile() should not be called statically, assuming $this from incompatible context", "...\typo3conf\ext\bootstrap_package\Classes\Hooks\PageRendererRender\PreProcessHook.php", 47, array)


...\typo3conf\ext\bootstrap_package\Classes\Hooks\PageRendererRender\PreProcessHook.php:

00045:         $files = array();
00046:         foreach($params['cssFiles'] as $file => $settings) {

00047:             $compiledFile = CompileService::getCompiledFile($file);

00048:             if($compiledFile) {
00049:                 $settings['file'] = $compiledFile;


9 BK2K\BootstrapPackage\Hooks\PageRendererRender\PreProcessHook::execute(array, TYPO3\CMS\Core\Page\PageRenderer)

8 call_user_func_array(array, array)


...\typo3\sysext\core\Classes\Utility\GeneralUtility.php:

04231:      }
04232:      // Call method:

04233:      $content = call_user_func_array(array(&$classObj, $parts[1]), array(&$params, &$ref));

04234:     } else {
04235:      $errorMsg = 'No method name \'' . $parts[1] . '\' in class ' . $parts[0];


7 TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction("BK2K\BootstrapPackage\Hooks\PageRendererRender\PreProcessHook->execute", array, TYPO3\CMS\Core\Page\PageRenderer)


...\typo3\sysext\core\Classes\Page\PageRenderer.php:

02823:    );
02824:    foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-preProcess'] as $hook) {

02825:     GeneralUtility::callUserFunction($hook, $params, $this);

02826:    }
02827:   }


6 TYPO3\CMS\Core\Page\PageRenderer::executePreRenderHook()


...\typo3\sysext\core\Classes\Page\PageRenderer.php:

02016:   */
02017:  protected function renderJavaScriptAndCss() {

02018:   $this->executePreRenderHook();

02019:   $mainJsLibs = $this->renderMainJavaScriptLibraries();
02020:   if ($this->concatenateFiles || $this->concatenateJavascript || $this->concatenateCss) {


5 TYPO3\CMS\Core\Page\PageRenderer::renderJavaScriptAndCss()


...\typo3\sysext\core\Classes\Page\PageRenderer.php:

01932:  public function render($part = self::PART_COMPLETE) {
01933:   $this->prepareRendering();

01934:   list($jsLibs, $jsFiles, $jsFooterFiles, $cssLibs, $cssFiles, $jsInline, $cssInline, $jsFooterInline, $jsFooterLibs) = $this->renderJavaScriptAndCss();

01935:   $metaTags = implode(LF, $this->metaTags);
01936:   $markerArray = $this->getPreparedMarkerArray($jsLibs, $jsFiles, $jsFooterFiles, $cssLibs, $cssFiles, $jsInline, $cssInline, $jsFooterInline, $jsFooterLibs, $metaTags);


4 TYPO3\CMS\Core\Page\PageRenderer::render()


...\typo3\sysext\frontend\Classes\Page\PageGenerator.php:

00992:   } else {
00993:    // Render complete page

00994:    $GLOBALS['TSFE']->content = $pageRenderer->render();

00995:   }
00996:   // Ending page


3 TYPO3\CMS\Frontend\Page\PageGenerator::renderContentWithHeader("
?
content = $pageContent; 00235: } else { 00236: self::renderContentWithHeader($pageContent); 00237: } 00238: $GLOBALS['TT']->pull($GLOBALS['TT']->LR ? $GLOBALS['TSFE']->content : ''); 2 TYPO3\CMS\Frontend\Page\PageGenerator::renderContent() ...\typo3\sysext\cms\tslib\index_ts.php: 00209: // Content generation 00210: if (!$TSFE->isINTincScript()) { 00211: \TYPO3\CMS\Frontend\Page\PageGenerator::renderContent(); 00212: $TSFE->setAbsRefPrefix(); 00213: } 1 require("...\typo3\sysext\cms\tslib\index_ts.php") ...\index.php: 00026: ->redirectToInstallerIfEssentialConfigurationDoesNotExist(); 00027: 00028: require(PATH_tslib . 'index_ts.php');
@benjaminkott
Copy link
Owner

@Chrissitopher should be solved for the next release thx to @cedricziel

@Chrissitopher
Copy link
Contributor Author

Yepp, is working again in bootstrap_package 6.2.7. Thank you, guys!

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