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 #1

Updated by Michael Stucki almost 18 years ago

So the problem is not PATH_site but PATH_thisScript which seems to be /index.php (seems to be on top of the root filesystem).

So what is the local (absolute) path to your TYPO3 website? What is the value of PATH_thisScript?

- michael

Actions #2

Updated by Amiran over 17 years ago

It was issued before ( http://bugs.typo3.org/view.php?id=1095&nbn=3 ). Seems like a problem of a web server software - major polish hosting company home.pl is using its own server software (Idea Web Server). I can confirm the same error ocurring on their server, the reporter from the link was also using their service.

Actions #3

Updated by Michael Stucki over 17 years ago

Not a TYPO3 problem.

Actions #4

Updated by cyprianpl over 17 years ago

I'm sorry I didn't reply on your note but I haven't returned home after t3board yet.
I don't understand why did you close the issue and why isn't it Typo3 problem?
I do understand it may be related only to this web hosting company [or maybe other minor ones] but since it's major in Poland I would kindly ask to reconsider changing this one line in Typo3 so other wouldn't have problems with Typo3 on this server.
If this change won't affect other server I can't see why isn't it possible.

best regards, cyprian

Actions #5

Updated by Michael Stucki over 17 years ago

The server is neither Apache nor IIS, so it is not supported. I rather suggest that you report this as a bug to the developers of this webserver software...

Actions #6

Updated by Christian Kuhn over 15 years ago

Resolved, no change required:

- No further feedback for two years.
- No similar issues from other users.
- As this is probably a problem in "Idea Web Server" this should be fixed there.

Actions #7

Updated by Benni Mack almost 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF