Installation angeblich OK, dann beim Einloggen Fehler

All about webserver configurations, PHP and databases.

Moderator: Thorsten

ChLorenz
Posts: 5
Joined: Sun Aug 20, 2006 1:52 pm

Installation angeblich OK, dann beim Einloggen Fehler

Post by ChLorenz »

Hallo,
ich habe bei Strato die neueste Version lt. Anleitung installiert (ich weiß um das Safe-Mode-Problem)
Nach der Insatallation bekomme ich beim Einloggen folgende Fehlermeldung:

Warning: Unable to access constants.php in /mnt/ja1/02/243/00000015/htdocs/neufaq/inc/init.php on line 35

Fatal error: Failed opening required 'constants.php' (include_path='') in /mnt/ja1/02/243/00000015/htdocs/neufaq/inc/init.php on line 35

Die COnstants.php hat aber volle berechtigung und auch die Neuinstallation im anderen Verzeichnis mit Datenbankversion 4.x (vorher 5.x) hat nichts gebracht ...

Hat jemand das bei Strato vernünftig am laufen?
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Installation angeblich OK, dann beim Einloggen Fehler

Post by Thorsten »

Hi,
ChLorenz wrote:Warning: Unable to access constants.php in /mnt/ja1/02/243/00000015/htdocs/neufaq/inc/init.php on line 35

Fatal error: Failed opening required 'constants.php' (include_path='') in /mnt/ja1/02/243/00000015/htdocs/neufaq/inc/init.php on line 35
wer hat denn diese dämliche Einstellung am include_path verbrochen? So kann das auch nicht gehen... ist das bei Strato so Standard?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ChLorenz
Posts: 5
Joined: Sun Aug 20, 2006 1:52 pm

Re: Installation angeblich OK, dann beim Einloggen Fehler

Post by ChLorenz »

Leider bin ich kein PHP-Programmierer, wohl aber versierter Anwender.
Welche Einstellung muss da gedreht werden? Ich habe mir die Init.php & constants.php angeschaut, weiß aber nicht, was da falsch sein könnte ...
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

setze mal bei den includes() und requires() ein ./ vor den Dateinamen, dann sollte es gehen.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ChLorenz
Posts: 5
Joined: Sun Aug 20, 2006 1:52 pm

Post by ChLorenz »

Jetzt bekomme ich einen "Parse Error in Line 35"
Was kostet Ihr die Stunde? Ich möchte das vielleicht telefonisch klären ... Und habe dann auch kein schlechtes Gewissen ....
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

das muss in der inc/init.php so aussehen:

Code: Select all

// Needed for PMF_Init::isASupportedLanguage()
require_once('./constants.php');
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ChLorenz
Posts: 5
Joined: Sun Aug 20, 2006 1:52 pm

Post by ChLorenz »

Warning: Unable to access ./constants.php in /mnt/ja1/02/243/00000015/htdocs/neufaq/inc/init.php on line 35

Fatal error: Failed opening required './constants.php' (include_path='') in /mnt/ja1/02/243/00000015/htdocs/neufaq/inc/init.php on line 35

das hatte ich schon probiert ... ich frage mich, ob das bei Strato überhaupt läuft ...
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,
ChLorenz wrote:das hatte ich schon probiert ... ich frage mich, ob das bei Strato überhaupt läuft ...
ja, das tuts seit mehr als 5 Jahren. Ich schreib dir mal einen Fix zusammen.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
fpsoft
Posts: 8
Joined: Tue Aug 22, 2006 9:49 am
Contact:

Bei Update-Fehler bei Step 5/5,Nach Update-Fehler bei Admin

Post by fpsoft »

Hallo,

gibt es hier eine Lösung? Ich glaube mein Problem liegt ähnlich.

Beim Update von Version 1.4.1 auf 1.6.4 kam beim Aufruf von Step 5/5 folgende Meldung:

Fatal error: Cannot redeclare class db in /home/www/htdocs/piplak.de/Produkte/FAQs/inc/mysql.php on line 28

Scheint allerdings alles zu funktionieren, bis auf die Administration. Beim Aufruf erscheinen folgende 3 Meldungen:
  • 1.
    Warning: main() [function.main]: Unable to access constants.php in /home/www/htdocs/piplak.de/Produkte/FAQs/inc/init.php on line 35

    2.
    Warning: main(constants.php) [function.main]: failed to create stream: No such file or directory in /home/www/htdocs/piplak.de/Produkte/FAQs/inc/init.php on line 35

    3.
    Fatal error: main() [function.main]: Failed opening required 'constants.php' (include_path='') in
    /home/www/htdocs/piplak.de/Produkte/FAQs/inc/init.php on line 35
Gehostet ist die Website bei Evanzo, vorher lief alles einwandfrei.

Ãœber einen Tipp bin ich dankbar.

Mit besten Grüßen
fpsoft
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

ich arbeite an einem Fix für diese selten dämliche Konfigurationen...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ChLorenz
Posts: 5
Joined: Sun Aug 20, 2006 1:52 pm

Kommt noch ein FIx oder ist der schon da?

Post by ChLorenz »

Habe jetzt mal wieder geguckt ... WIe sieht´s mit dem Fix aus?
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

ich bin noch dran. Könntest du mal die 2.0er testweise installieren?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
meikel
Posts: 135
Joined: Wed Feb 12, 2003 11:12 am
Location: Erfurt
Contact:

Re: Installation angeblich OK, dann beim Einloggen Fehler

Post by meikel »

Thorsten wrote:
ChLorenz wrote:Warning: Unable to access constants.php in /mnt/ja1/02/243/00000015/htdocs/neufaq/inc/init.php on line 35

Fatal error: Failed opening required 'constants.php' (include_path='') in /mnt/ja1/02/243/00000015/htdocs/neufaq/inc/init.php on line 35
wer hat denn diese dämliche Einstellung am include_path verbrochen? So kann das auch nicht gehen... ist das bei Strato so Standard?
Der Includepath ist falsch, keine Frage, aber das ist auch nicht besser:

Code: Select all

// Needed for PMF_Init::isASupportedLanguage()
require_once('constants.php');
Der aktuelle Path zeigt nicht auf /inc.

Ändere das wie folgt ab:

Code: Select all

if (! defined('INC'))
  define('INC', dirname(__FILE__) . '/');

// Needed for PMF_Init::isASupportedLanguage()
require_once( INC . 'constants.php');
fpsoft
Posts: 8
Joined: Tue Aug 22, 2006 9:49 am
Contact:

Das gleiche Problem...

Post by fpsoft »

Hallo,

ich habe das gleiche Problem und die 'init.php' entsprechend geändert. Jetzt kommen folgende Meldungen:

Code: Select all

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/www/htdocs/piplak.de/Produkte/FAQs/inc/mysql.php on line 144

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/www/htdocs/piplak.de/Produkte/FAQs/inc/mysql.php on line 144

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/htdocs/piplak.de/Produkte/FAQs/inc/mysql.php on line 176

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/htdocs/piplak.de/Produkte/FAQs/inc/mysql.php on line 176
:(
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

welche Version nutzt du?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply