Bug #16591
closedPATH_site wrongly defined in index.php
0%
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)