PDA

Zobacz pełną wersję : Problem po zmianie PHP



olekpl
24-06-2011, 01:07
Witam,
z racji, że miałem problem z odnośnikami w rozwijanym menu zmieniłem PHP z PHP-5.2.14 na 5.3.3. Menu zaczęło działać, tylko, że pojawiła mi się masa błędów.
Powtarza się:
Warning: require() [function.require]: open_basedir restriction in effect. File() is not within the allowed path(s):
Jak to naprawić? Chciałbym mieć aktywne rozwijane menu i działającą stronę. Zmieniając PHP menu zaczyna działać ale niestety pojawia się masa błędów.

pawelSafiStudio
24-06-2011, 01:10
Witaj,

jaką masz wersję Joomla! ? Kiedyś miałem podobny problem i wiem, że starsze numerki 1.5.x nie współgrały dobrze z PHP 5.3. Jeśli masz jakieś starsze wydanie to zrób update do 1.5.23.

Pozdrawiam.

olekpl
24-06-2011, 13:21
Mam najnowszą Joomlę 1.6 więc też się dziwie, że strona nie działa...

palyga007
24-06-2011, 13:29
1. W jaki sposób zmieniłeś sobie wersję PHP?
2. Napisz do administratorów hostingu bo to problem, który nie jest bezpośrednio związany z J!.

olekpl
24-06-2011, 13:34
Jest to hosting linuxpl.com, admin polecił mi zmianę PHP poprzez panel administratora (klienta).

palyga007
24-06-2011, 13:37
wszystkie dane w configuration.php są wypełnione prawidłowo? (min ścieżka do katalogu tmp, itp)

olekpl
24-06-2011, 13:49
Rozmawiałem z adminem, powiedział, że open_basedir nie może być wyłączony ze względów bezpieczeństwa serwera. Mam to naprawić za pomocą tego linka: http://www.web-development-blog.com/archives/curl-follow-url-location-while-open_basedir-is-set/
Tylko za bardzo nie wiem jak się za to zabrać...

neo_fox
24-06-2011, 15:20
Rozmawiałem z adminem, powiedział, że open_basedir nie może być wyłączony ze względów bezpieczeństwa serwera.

I racja. Open_basedir zawsza powininen być aktywny.
Poza tym nie w tym problem



Warning: require() [function.require]: open_basedir restriction in effect. File() is not within the allowed path(s):

To wygląda dla mnie tak jakby jakiś skrypt wywołwał funkcje require bez wymaganego parametru (nazwy pliku)
Podaj cały komunikat błędu.


Regards,
Radek

olekpl
24-06-2011, 18:01
Wklejam błędy:

1. Strona główna


Warning: include() [function.include]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/janusz10/:/tmp:/usr/local/lib/php/:/usr/sbin/:/usr/bin/:/usr/local/bin/:/usr/local/sbin/:/bin/:/sbin/) in /home/janusz10/domains/kolejowy-lowicz.eu/public_html/plugins/system/jat3/jat3/core/template.php on line 449

Warning: include() [function.include]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/janusz10/:/tmp:/usr/local/lib/php/:/usr/sbin/:/usr/bin/:/usr/local/bin/:/usr/local/sbin/:/bin/:/sbin/) in /home/janusz10/domains/kolejowy-lowicz.eu/public_html/plugins/system/jat3/jat3/core/template.php on line 179

Warning: include() [function.include]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/janusz10/:/tmp:/usr/local/lib/php/:/usr/sbin/:/usr/bin/:/usr/local/bin/:/usr/local/sbin/:/bin/:/sbin/) in /home/janusz10/domains/kolejowy-lowicz.eu/public_html/plugins/system/jat3/jat3/core/template.php on line 179

Warning: include() [function.include]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/janusz10/:/tmp:/usr/local/lib/php/:/usr/sbin/:/usr/bin/:/usr/local/bin/:/usr/local/sbin/:/bin/:/sbin/) in /home/janusz10/domains/kolejowy-lowicz.eu/public_html/plugins/system/jat3/jat3/core/template.php on line 179


Warning: include() [function.include]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/janusz10/:/tmp:/usr/local/lib/php/:/usr/sbin/:/usr/bin/:/usr/local/bin/:/usr/local/sbin/:/bin/:/sbin/) in /home/janusz10/domains/kolejowy-lowicz.eu/public_html/plugins/system/jat3/jat3/core/template.php on line 179
kolejowy-lowicz.eu - Kolej na Łowicz!


Warning: include() [function.include]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/janusz10/:/tmp:/usr/local/lib/php/:/usr/sbin/:/usr/bin/:/usr/local/bin/:/usr/local/sbin/:/bin/:/sbin/) in /home/janusz10/domains/kolejowy-lowicz.eu/public_html/plugins/system/jat3/jat3/core/template.php on line 179


Warning: include() [function.include]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/janusz10/:/tmp:/usr/local/lib/php/:/usr/sbin/:/usr/bin/:/usr/local/bin/:/usr/local/sbin/:/bin/:/sbin/) in /home/janusz10/domains/kolejowy-lowicz.eu/public_html/plugins/system/jat3/jat3/core/template.php on line 179


Warning: include() [function.include]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/janusz10/:/tmp:/usr/local/lib/php/:/usr/sbin/:/usr/bin/:/usr/local/bin/:/usr/local/sbin/:/bin/:/sbin/) in /home/janusz10/domains/kolejowy-lowicz.eu/public_html/plugins/system/jat3/jat3/core/template.php on line 179


Warning: include() [function.include]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/janusz10/:/tmp:/usr/local/lib/php/:/usr/sbin/:/usr/bin/:/usr/local/bin/:/usr/local/sbin/:/bin/:/sbin/) in /home/janusz10/domains/kolejowy-lowicz.eu/public_html/plugins/system/jat3/jat3/core/template.php on line 179

2. Panel admina


Warning: require() [function.require]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/janusz10/:/tmp:/usr/local/lib/php/:/usr/sbin/:/usr/bin/:/usr/local/bin/:/usr/local/sbin/:/bin/:/sbin/) in /home/janusz10/domains/kolejowy-lowicz.eu/public_html/administrator/modules/mod_menu/mod_menu.php on line 15

Warning: require() [function.require]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/janusz10/:/tmp:/usr/local/lib/php/:/usr/sbin/:/usr/bin/:/usr/local/bin/:/usr/local/sbin/:/bin/:/sbin/) in /home/janusz10/domains/kolejowy-lowicz.eu/public_html/administrator/modules/mod_menu/mod_menu.php on line 19

Warning: require() [function.require]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/janusz10/:/tmp:/usr/local/lib/php/:/usr/sbin/:/usr/bin/:/usr/local/bin/:/usr/local/sbin/:/bin/:/sbin/) in /home/janusz10/domains/kolejowy-lowicz.eu/public_html/administrator/modules/mod_menu/mod_menu.php on line 29

Warning: require() [function.require]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/janusz10/:/tmp:/usr/local/lib/php/:/usr/sbin/:/usr/bin/:/usr/local/bin/:/usr/local/sbin/:/bin/:/sbin/) in /home/janusz10/domains/kolejowy-lowicz.eu/public_html/administrator/modules/mod_menu/tmpl/default.php on line 13


Warning: require() [function.require]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/janusz10/:/tmp:/usr/local/lib/php/:/usr/sbin/:/usr/bin/:/usr/local/bin/:/usr/local/sbin/:/bin/:/sbin/) in /home/janusz10/domains/kolejowy-lowicz.eu/public_html/libraries/joomla/application/module/helper.php on line 162

Warning: require() [function.require]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/janusz10/:/tmp:/usr/local/lib/php/:/usr/sbin/:/usr/bin/:/usr/local/bin/:/usr/local/sbin/:/bin/:/sbin/) in /home/janusz10/domains/kolejowy-lowicz.eu/public_html/administrator/modules/mod_quickicon/mod_quickicon.php on line 15

Warning: require() [function.require]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/janusz10/:/tmp:/usr/local/lib/php/:/usr/sbin/:/usr/bin/:/usr/local/bin/:/usr/local/sbin/:/bin/:/sbin/) in /home/janusz10/domains/kolejowy-lowicz.eu/public_html/administrator/modules/mod_quickicon/helper.php on line 51


Warning: include() [function.include]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/janusz10/:/tmp:/usr/local/lib/php/:/usr/sbin/:/usr/bin/:/usr/local/bin/:/usr/local/sbin/:/bin/:/sbin/) in /home/janusz10/domains/kolejowy-lowicz.eu/public_html/libraries/joomla/application/component/view.php on line 606

neo_fox
24-06-2011, 18:18
To dość dziwnie wygląda. Przykładowo w pliku administrator/modules/mod_menu/mod_menu.php jest coś takiego

require dirname(__FILE__).'/menu.php';
czyli nic szczególnego. I nie może tu być żadnej mowy o "open_basedir restriction" jako że to próba inkluzji pliku znajdującego się w tym samym katalogu.
Jedyne co mi do głowy przychodzi to że " dirname(__FILE__)" jest zastrzeżona albo zwraca niepoprwną wartość i php próbuje włączyć plik z root.

Tak czy inaczej IMHO masz coś pochrzanione z konfiguracją PHP >> dzwoń do admina ;)