Fin
Data processing error No data
  • Envoyé: 09.11.2004, 00:20
    Invité
    rang:
    1
    enregistré depuis:
     décembre 2003
    Status:
    hors ligne
    dernière visite:
    06.03.05
    Messages:
    0
    Data processing error No data

    help please
    I can get this working via html block but cannot get the 5 day forcast module to work @ all even with correct setting for xml feed.
    Im using weather version 1.3.2 and postnuke ver 0.7.2.6-Phoenix .
    Hope you can help out here as im stuck
    The site im using it on is http://www.nefishing.co.uk
    Am I missing something..??

    also how hard would it be to include a tidal info section to it..?? just an idea
  • Envoyé: 09.11.2004, 12:29
       
    vedrine
    rang:
    Site Admin Site Admin
    enregistré depuis:
     décembre 2003
    Status:
    hors ligne
    dernière visite:
    09.10.08
    Messages:
    266
    Hello,
    This error message meaning is that no data were returned by weather.com.
    Unitl now when some users reported similar problem the causes were :
    - forgetting to install at least a country package
    - forgetting to choose a default city
    - incomplete or inccorect settings for the method (weather.com or MSNBC)
    In only one case I was unable to correct the problem but on a very particuliar server : A webserver running on a Novell netware server. This computer was incompatible with the snooper php library I use to establish the connexion.
    So if you are on a Windows or Linux machine, we should succede to resolvez your problem. Can you please follow my step by step checkup list here :

    STEP 1 : START FROM A CLEAN SITUATION
    --------------------------------------------------
    Only follow this step if a weather module version prior to 1.30 was ever installed on your site (Omiting this step if a weather 1.26 or 1.27 was one day uploaded on your site will certainly result in a non working module)
    A) Suppress any trace of all olds weather blocks in the database
    ---------------------------------------------------------------------------------
    This underestimated step often causes a lot of trouble later if incorrectly done
    - Go to administration -> Blocs
    - Display ALL the blocks (even inactivated ones), click on "Show all blocks" link above the table.
    - Suppress all the blocks from the weather module, that is all blocks with "weather" in the "Module" column
    B) SUPPRESS THE OLD WEATHER MODULE
    ------------------------------
    - Go to administration -> Modules
    - Click on Regenerate
    - Click on "Deactivate" on the weather module line
    - Click on "Remove" on the weather module line

    After that suppress the entire weather subdirectory in the modules directory with all the files in it.
    After that with phpmyadmin verify that there is no more tables with name :
    prefix_wthr_city
    prefix_wthr_country
    prefix_wthr_region
    prefix_wthr_subdiv
    prefix_wthr_user
    prefix_wthr_cache
    prefix_wthr_pkg
    Where prefix is the common prefix to all your tables in the database (nuke by default if you didn't change it during PostNuke install)
    If you find any suppress these tables (but don't suppress any other table !!)
    STEP 2 : INSTALL THE NEW WEATHER MODULE
    ---------------------------------------
    Upload the weather directory of the new weather module in your modules directory. Verify that ALL files were coorectly uploaded. When I check the weather module install on non working sites, I often detect that some files are missing !!

    - Go to Administration -> Modules
    - Click on "Regenerate"
    A new line must appear, if it doesn't the ONLY possibility is incorrect upload !!
    - Click on "Initialize" on the weather line
    - Click on "Activate" on the weather module line
    When you return to Administration, you must find an admin panel for the weather module, if this is not the case, no need to go to next step. Someting goes wrong. Your best choice is to find what, and redo all the uninstall/install process from the beginning !!
    STEP 3 : CHOOSE WEATHER MODULE SETTINGS
    ------------------------------------------------------------
    Even if the module is correctly installed as in step 2, it can't run without default settings

    - Go to Administration -> weather
    - Click on "Install city package(s)"
    - choose a country in the drop down list
    - click on the "Install City Package(s)" button. DON't click on the "Install ALL city package(s)" because it would install all the countries (more than 30 000 cities) rendering the module awfully slooooow and unworkable (very difficult to choose a country and a city in some menus)
    And unfortunately the is no "Suppress ALL" button (must do that one since version 1.30 !!!) !!
    The message "City package added to database" will be displayed.
    When your module will be operationnal you will be able to install other countries folowing the same proccess.
    - click on "Change default local weather"
    - Choose a region(only region where a country is installed are displayed) click on the "Select" biutton right to the regions drop down list
    - Choose a country in the country menu, (only installed countries are displayed) click on the "Select" biutton right to the countries drop down list
    - Choose a subdivision, only USA and Australia have subdivisions. click on the "Select" biutton right to the subdivisionss drop down list
    - Choose a city click on the "Select" biutton right to the cities drop down list
    This last click shows the mesurement preferences.
    select the temperature and wind speed units you want
    - click on the "Save Changes" button
    WARNING : nothing is saved until you click on the "Save Changes" button.
    - If you want to verify your settings, click on "Current settings"
    Normalement à cette étape le module doit fonctionner car par défaut la méthode MSBC est sélectionnée lors de l'installation du module, mais je vous conseille de le vérifier en cliquant sur "Méthode d'obtention des données"
    IMPORTANT si vous cochez "Récupération par fichier XML sur Weather.com " et si vous n'avez pas d'ID partenaire ou de clé d'autorisation, le module ne fonctionnera pas
    STEP 4 : TESTING THE MODULE OPERATION
    ---------------------------------------------------------
    In yourbrowster, enter url :
    your_site/index.php?module=weather&func=forecast
    Detailed forecast for the default city must be displayed
  • Envoyé: 12.11.2004, 13:29
     
    Gstyle
    enregistré depuis:
     novembre 2004
    Status:
    hors ligne
    dernière visite:
    21.11.06
    Messages:
    2
    Have tried 3 times following the step by step guide above and still getting the same error.
    only way i can get any data is via the
    <script src='http://voap.wea...te=GENXV&;par=**********&unit=0&key=4********fda******2cd*****'></script>
    have hidden code as suggested in another post on the forum

    There shouldnt b a problem with the server as its linux and has postnuke built into it.
    I would love this weather module working fully as i think its a great module that will come in handy to fisher men in the UK.. But would happily settle for just an html block like the one pasted above with the 5 day forecast in it.
    Also i have signed upto the site so if you would like to email me i can grant you admin status for a while on the site so you can have a look an see if its anything daft.
    Thanks for the support
  • Envoyé: 14.11.2004, 17:48
       
    vedrine
    rang:
    Site Admin Site Admin
    enregistré depuis:
     décembre 2003
    Status:
    hors ligne
    dernière visite:
    09.10.08
    Messages:
    266
    Well it seems that you have a problem with Snoopy the library used in the weather module to establish the connexion and fetch the data (it's the same library that MarkWest use in the future PostNuke .8 RSS module to fetch rss feeds and I and very proud because my module was the first postnuke one to integrate it)
    The avantage of Snoopy is that it is a real web client (as IE) so any webserver "should" respond to Snoopy http queries. But obviously in your case it isn't the case because you script works and Snoopy doesn't.
    Unfortunately when I integrate Snoopy I only did it in a quick and simple way. So Snoopy errors aren't reported back to the weather module and displayed. The only message is the one you have when no data is returned !!! As Snoopy worked for almost anybody (he case of the Netware server was the only one reported so far) I never took the time to rework that part of the module.
    Your problem sound as a good opportunity to rewrite this code so that Snoopy errors are displayed (It's easy to do if I have a non working server to test it and with you I have one !!!)
    So I will rewrite the 2 or 3 files concerned by the problem (pnuser.php, pnuserapi.php weather.class.php)
    But unfortunately I have a lot of work in the upcomming week so not sure when I will be able to do it.
    Can you PM me a mail adress where I can send you the modified files when they are ready ?
    Unfortunately when we will know the snoopy error we will have to find the cause....
  • Envoyé: 14.11.2004, 18:01
       
    vedrine
    rang:
    Site Admin Site Admin
    enregistré depuis:
     décembre 2003
    Status:
    hors ligne
    dernière visite:
    09.10.08
    Messages:
    266
    Well It must be because last week was my 50 birthday but now sometime I do things and forget all about them !!
    I looked the weather module I use on this site and It is already modified to report back Snoopy errors but this code was never tested because I never had Snoopy errors !! So I can send you a version we can call 1.33beta (basically 1.32 with the corrections I made for my website but never relaesed for instance HTML 4.01 compliancy, bugfixes, adjustments, ...) and we will see if it reopt back any arror. If it don't I need to rework it !!!
Réponse rapide
 
  • Options
Code:
Couleur de la police:  
Taille de la police: