-
Invité
- rank:
- 1
- registered:
- December 2003
- Status:
- offline
- last visit:
- 06.03.05
- Posts:
- 0
After installation of the weather 1.30 module, and installation of weather pagage for Denmark, im getting this fault:
Warning: weather_userapi_getall() [function.weather-userapi-getall]: open_basedir restriction in effect. File(/usr/local/lib/php/weather.class.php) is not within the allowed path(s): (/STORE/parazone_dk) in /STORE/parazone_dk/public_html/modules/weather/pnuserapi.php on line 601
Warning: weather_userapi_getall(weather.class.php) [function.weather-userapi-getall]: failed to create stream: Operation not permitted in /STORE/parazone_dk/public_html/modules/weather/pnuserapi.php on line 601
Fatal error: weather_userapi_getall() [function.weather-userapi-getall]: Failed opening required 'weather.class.php' (include_path='.:/usr/local/lib/php') in /STORE/parazone_dk/public_html/modules/weather/pnuserapi.php on line 601
What is wrong??????? -
- rank:
-
Site Admin
- registered:
- December 2003
- Status:
- offline
- last visit:
- 09.10.08
- Posts:
- 266
Hello,
This is caused by a bug in the 1.30 version (but I missed it because it works most servers including mine !)
So as a temporary fix, please make the following changes (2 files to update). I assume that the module directory name is weather as in the released zip archive.
change #1 : in pnuserapi.php look for the line (it is line 601) :
and replace it with : change #2 : in weather.class.php look for the line and replace it with :
In the following version I will correct this problem and replace the hardcoded module name (weather) with a call to pnModGetInfo just to be sure it will work with every path.
Let me know if you still have any problem.
Happy postnuking.
Your Name/pseudo sound familiar to any aquarist
-
- rank:
-
Site Admin
- registered:
- December 2003
- Status:
- offline
- last visit:
- 09.10.08
- Posts:
- 266
I said that because a man whose name was Alf jacob Nielsen invented the "calk reactor" that reef aquarists across the world use to add calcium to their tanks. He is also the author with Svein A Fossa of a very beautiful collection of books about reef aquaria : "The modern Coral Reef aquarium" (Korallrevsakvariet)



