Project

General

Profile

Actions

Bug #64624

closed

404 contrib/normalize/normalize.css

Added by Entwickler PHP over 9 years ago. Updated over 9 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
Category:
Backend API
Target version:
-
Start date:
2015-01-30
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Hi,

This happens here:

typo3/sysext/backend/Classes/Template/DocumentTemplate.php

Line number: 411

$this->pageRenderer->addCssLibrary($GLOBALS['BACK_PATH'] . 'contrib/normalize/normalize.css', 'stylesheet', 'all', '', TRUE, TRUE);

$GLOBALS['BACK_PATH'] is here null. Then it somehow tries to add this CSS file in frontend.

<base href="http://local.example-dev/" />

<meta name="generator" content="TYPO3 6.2 CMS" />
<meta name="language" content="de" />

<link rel="stylesheet" type="text/css" href="contrib/normalize/normalize.css" media="all">
Actions #1

Updated by Sascha Egerer over 9 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Sascha Egerer

Hello,

i can't reproduce this issue. Could you please tell me what exact version of TYPO3 you're using and in wich backend module you are?

Regards

Actions #2

Updated by Entwickler PHP over 9 years ago

Hi Sascha,

I am using TYPO3 6.2.9

I think it somehow depends on the server. The variable $GLOBALS['BACK_PATH'] is not set. When I try to set it to 'typo3' then it will add to the backend one more typo3 (http://local.example-dev/typo3/typo3).

On the other side, by setting this variable, the '404 not found' error will not occur in frontend.

I set it ($GLOBALS['BACK_PATH'] = 'typo3') in AdditionoalConfiguration.php to test.

Thanks.

Actions #3

Updated by Alexander Opitz over 9 years ago

At first, it would be nice to use a real name.

How did you install TYPO3? What is the tree structure? Do you have warning/errors in the install tool?

Actions #4

Updated by Entwickler PHP over 9 years ago

Hi Alexander,

Thanks for the feedback.

Finally I have found the problem.

I made an extension which extends the following Class and it causes the problem:

class IncludeCssFileViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Be\AbstractBackendViewHelper

and there when when I call the method:

$doc = $this->getDocInstance();
$pageRenderer = $doc->getPageRenderer();

and I change it to the following:

//$doc = $this->getDocInstance();
$pageRenderer = $GLOBALS['TSFE']->getPageRenderer();

So the problem is solved. It was not a bug, it was wrong implementation.

Thanks for your patience.

Regards,
Ramazan

Actions #5

Updated by Sascha Egerer over 9 years ago

  • Status changed from Needs Feedback to Rejected
  • % Done changed from 0 to 100

Rejected as it was not a bug but produced by wrong core api usage.

Actions

Also available in: Atom PDF