Bottom
BUG V 1.30 problem on line 601 of pnuserapi.php
  • Posted: 24.03.2004, 13:59
       
    vedrine
    rank:
    Site Admin Site Admin
    registered:
     December 2003
    Status:
    offline
    last visit:
    09.10.08
    Posts:
    266
    If after installation of the weather 1.30 module, correct activation and setup you get an error message like this :

    Fatal error: Failed opening required 'weather.class.php' (include_path='') in /home/sites/site38/web/modules/weather/pnuserapi.php on line 601

    or

    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

    Or another error message about a problem on line 501 of the pnuserapi.php, this is caused by a bug in the 1.30 version (but I missed it because it works most servers including mine !) the path to the file is relative to the current folder wich causes problem on some servers.

    So as a temporary fix, please make the following changes (2 files to update). I assume that the module directory name is weather (with a lowercase w) as in the released zip archive.

    change #1 : in pnuserapi.php look for the line (it is line 601) :
    Code
    require_once("weather.class.php");
    and replace it with :
    Code
    require_once("modules/weather/weather.class.php");
    change #2 : in weather.class.php look for the line
    Code
    require_once("snoopy.class.php");
    and replace it with :
    Code
    require_once("modules/weather/snoopy.class.php");


    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 with line 601 !!

    Happy postnuking.
  • Posted: 05.04.2004, 09:25
    Invité
    rank:
    1
    registered:
     December 2003
    Status:
    offline
    last visit:
    06.03.05
    Posts:
    0
    Thank you very much!
    I solved all my problems!!

    /Jacob, parazone.dk
Quick reply
 
  • Options
Code:
Font color:  
Font size: