Zum Inhalt springen

Problem mit include_path php

Erstellt am 2. Juni 2003 · 2 Antworten · letzte Antwort am 27. Oktober 2004

Tags: Frage

nsce ·

Hallo - wollte mal Typo 3 unter Netware probieren ..

Womögich ist es nur eine Kleinigkeit für euch:
Beim Start von www.domain/typo3 kommt der Fehler Warning: Failed opening 'vol1:/inet_root/htdocs/quickstart/typo3conf/vol1:/inet_root/htdocs/quickstart/typo3/sysext/cms/tbl_tt_content.php' for inclusion (include_path='.;sys:/php/includes') in vol1:/inet_root/htdocs/quickstart/typo3/t3lib/class.t3lib_div.php on line 1830

Warum wird hier versucht den absoluten pfad in den pfad zu setzten bzw anzufügen ??

lg
Thomas

hpfgh ·

habe typo3 unter netware 6.5 am laufen mußte aber code ändern

anbei die alte und neue Codezeile:

t3libclasst3lib_div.php Zeile 183x funtion loadTCA($table)

/**
* Loads the $TCA (Table Configuration Array) for the $table
*
* Requirements:
* 1) must be configured table (the ctrl-section configured),
* 2) columns must not be an array (which it is always if whole table loaded), and
* 3) there is a value for dynamicConfigFile (filename in typo3conf)
*/
function loadTCA($table) {
global $TCA,$LANG_GENERAL_LABELS;
if (isset($TCA[$table]) && !is_array($TCA[$table]["columns"]) && $TCA[$table]["ctrl"]["dynamicConfigFile"]) {
if (!strcmp(substr($TCA[$table]["ctrl"]["dynamicConfigFile"],0,6),"T3LIB:")) {
include(PATH_t3lib."stddb/".substr($TCA[$table]["ctrl"]["dynamicConfigFile"],6));
} elseif (t3lib_div::isAbsPath($TCA[$table]["ctrl"]["dynamicConfigFile"]) && @is_file($TCA[$table]["ctrl"]["dynamicConfigFile"])) { // Absolute path...
include($TCA[$table]["ctrl"]["dynamicConfigFile"]);
} else include($TCA[$table]["ctrl"]["dynamicConfigFile"]);
//!!GH } else include(PATH_typo3conf.$TCA[$table]["ctrl"]["dynamicConfigFile"]);
}
}

pquadrat ·

Hallo,

bin auch dabei, Typo3 auf Netware 6.5(SP2) zum laufen zu bringen, habe in class.t3lib_div.php folgendes geändert:

alt:
include(PATH_typo3conf.$TCA[$table]["ctrl"]["dynamicConfigFile"]);
neu:
include($TCA[$table]["ctrl"]["dynamicConfigFile"]);

damit geht es zu 80%

Bekomme aber immer noch stellenweise Fehler, z.B. unter Web: Info:

Filereference, "SYS:/apache2/htdocs/SYS:/apache2/htdocs/typo3/sysext/cms/web_info/locallang.php", not found!

Schein das gleiche Problem zu sein, weiß jemand Rat?

Hier mein Installationsweg:

PHP einschalten: zur httpd.conf vom Apache hinzufügen:
include sys:apache2confmod_php.conf

in SYS:pHPPHP.INI auskommentieren / anpassen:
; open_basedir = ".;sys:/tmp"
include_path = ".;sys:/php/includes;SYS:/Apache2/htdocs/quickstart;SYS:/Apache2/htdocs/quickstart/typo3"

Typo3 unter SYS:APACHE2htdocs kopieren (oder woanders hin, ist aber zum testen wohl so einfacher)

MySQL passwort anlegen:
mysqladmin -u root password

http://serveradresse/index.php aufrufen

Grüße
Peter