pragmaMx Support Forum

Archive => veraltete bzw. unsupportete Systeme und Module => Alt Archive => VKP-Maxi & VKP-Midi & VKP-Mini => Thema gestartet von: privacynet in 16 Mai 2003, 07:41:49

Titel: You cannot access this file directly ...
Beitrag von: privacynet in 16 Mai 2003, 07:41:49
Hi Leute,

habe mein Portal einige Wochen nicht angefasst und auch nichts geändert - jetzt bekomme ich bei jedem Aufruf eines Modeuls die Meldung:

You cannot access this file directly ...

Weiss jemand woran das liegen kann?

http://www.privacynet-hosting.net/portal

Danke für die Hilfe

gruss privacynet
Titel: Re: You cannot access this file directly ...
Beitrag von: jubilee in 16 Mai 2003, 09:12:00
Hmmmm.....
Das ist doch kein VKPMxxx was da läuft oder
(zumindest seh ich die Copyrights im Footer nicht)
Also dann :
PHP-Version welche ?
Server-Version welche ?
phpNuke-Version welche ?
Datenbank-Version welche ?
Securityfixe eingespielt ?
Und dann sehn wir mal weiter  ;)
MfG
jubilee
Titel: Re: You cannot access this file directly ...
Beitrag von: privacynet in 16 Mai 2003, 09:37:40
Hast Du recht, ist kein VKPMxxx was da lauft , ist die alte Version VKP5.0 - die davor hier angeboten wurde.

Die anderen Antworten muss ich erst noch schuldig bleiben
Titel: Re: You cannot access this file directly ...
Beitrag von: Andi in 16 Mai 2003, 10:34:41
Hi :)
Tippe auf typischen Fall von register_globals = OFF
Hat Dein Provider die php-Version aktualisiert?
Hast Du Zugriff auf die php.ini?
Titel: Re: You cannot access this file directly ...
Beitrag von: privacynet in 17 Mai 2003, 00:31:15
Hi Andi,

nein, ich habe leider keinen Zugriff auf die php.ini

Dein Hinweis schein verständlich, da mein Provider sein System ubgedated hat.

Was kann ich sonst noch machen?
Titel: Re: You cannot access this file directly ...
Beitrag von: privacynet in 19 Mai 2003, 18:49:31
Hi :cry

weiss gar niemand mehr einen Rat, sonst muss ich den Provider wechseln

Titel: Re: You cannot access this file directly ...
Beitrag von: Andi in 19 Mai 2003, 19:39:09
Uuuups, Sorry, habe nicht mehr dran gedacht...

- Die einfachste Möglichkeit, währe Deinen Provider zu bitten, die Einstellung zu ändern.
- Eventuell kannst Du eine eigene php.ini für Deine Domain verwenden. Frage auch hier Deinen Provider.
- Eine .htaccess Datei kann evtl. auch helfen. Zuhause schau ich später nach, wie der Befehl lauten muss...
- Wenn das alles nichts nützt, gibt es noch die HauRuck-Methode:

Füge in die mainfile.php, ganz am Anfang, folgende Zeilen ein: $req = array_merge($GLOBALS["HTTP_GET_VARS"], $GLOBALS["HTTP_POST_VARS"], $GLOBALS["HTTP_COOKIE_VARS"], $GLOBALS["HTTP_SERVER_VARS"]);
foreach($req as $varname => $value) {
${$varname} = $value;
}

Eventuell müssen diese Zeilen noch in andere Dateien eingefügt werden, wenn dort auch Probleme auftauchen.
Titel: Re: You cannot access this file directly ...
Beitrag von: privacynet in 19 Mai 2003, 20:37:18
hi, kein problem.

Nach dem Einfügen der Zeilen bekomme ich folgen Meldung:

 

$req = array_merge($GLOBALS["HTTP_GET_VARS"], $GLOBALS["HTTP_POST_VARS"], $GLOBALS["HTTP_COOKIE_VARS"], $GLOBALS["HTTP_SERVER_VARS"]); foreach($req as $varname => $value) { ${$varname} = $value; }
Warning: Cannot add header information - headers already sent by (output started at /home/sites/site13/web/portal/mainfile.php:6) in /home/sites/site13/web/portal/mainfile.php on line 62
 


Any idea?
Titel: Re: You cannot access this file directly ...
Beitrag von: privacynet in 19 Mai 2003, 20:41:02
uuuups, war mein Fehler - hatte es an die falsche Stelle eingefügt - jetzt funzt es.

Die Sache mit der .htaccess würd mich allerdings auch noch interessieren.

Danke für Deine Mühe
Titel: Re: You cannot access this file directly ...
Beitrag von: Andi in 19 Mai 2003, 20:56:09
Hi...
habe mal kurz gegooglt,
versuche es mal mit einer .htaccess Datei im root mit folgender Zeile drin:

php_flag register_globals on

Wenn ein 500er Error kommt, lässt das Dein Provider nicht zu.

Wenn es doch geht, erstelle Dir zusätzlich mal ne php-Datei mit folgendem Inhalt:
<?php
phpinfo();
?>
rufe sie auf und schau, was beim Wert register_globals dann steht...
Titel: Re: You cannot access this file directly ...
Beitrag von: privacynet in 19 Mai 2003, 21:11:23
Super, mit .htaccess funzt es bestens, konnte auch gleich die Fehlermeldung bei NukePopper (allow_call_time_pass_reference) abstellen.

Vielen Dank.

Super Support.
Titel: Re: You cannot access this file directly ...
Beitrag von: Andi in 19 Mai 2003, 21:13:12
 :D   Fein !

Dann kannste ja den Kram wieder aus der mainfile rausnehmen ;)
Titel: Re: You cannot access this file directly ...
Beitrag von: privacynet in 19 Mai 2003, 21:17:18
 :kiss   :D  Danke für den Tip, hab ich bereits gemacht