Project

General

Profile

Actions

Bug #16591

closed

PATH_site wrongly defined in index.php

Added by cyprianpl almost 18 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
Start date:
2006-09-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
5
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

My problem looks like this:
The Typo3 installation is in a subdirectory typo3site' and when I enter it via URL:
http://server.com/typo3site/ it works like a charm.

Now, I set up a subdomain typo3site.server.com pointing on this subdirectory and everything (BE that is) seems to be working except FE, I get the following error when trying to view a page:

The original character set "iso-8859-2" was not found in t3lib/csconvtbl/
Forced charset not found

Of course the charset is present in this directory (and it works when I enter the site via the first URL).

I dug down the problem and finally found out that the PATH_site is wrongly defined!
It was '//' for this server and this Typo3 instalation.

I just changet the line:51 in index.php [Typo3 root folder] to:

define('PATH_site', (dirname(PATH_thisScript) == '/' ? '' : dirname(PATH_thisScript)).'/');

I got this error when I enabled admPanel for FE and was logged in in the BE.

(issue imported from #M4276)


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #14747: FE error when logged to BE (PATH_site='//' problem)ClosedMichael Stucki2005-05-20

Actions
Actions

Also available in: Atom PDF