pn 0.762 - Bad arguments passed to API function-5
-
- Inscrit en : 04.04.06
- Dernière visite : 17.04.06
- Messages : 2
I am receiving a "Bad arguments passed to API function-5" error on a clean pn 0.762 install when attempting to view Current Settings in the Weather module's Admin section and after creating the standard weather block.
The module has permitted me to configure the WC XML Data Feed option with the Partner ID and License Key I've received from the Weather Channel. I've loaded all City Packages and have set my default location, but when I click on the Current Settings link the "Bad arguments passed to API function-5" error appears above the admin links and nothing is displayed below.
The block also does not display, even if a valid location ID is entered in it's configuration. All that appears is the "Bad arguments passed to API function-5" error at the top of the center block.
Any help will be appreciated!
_____________________
Linux 2.4.27-2-686-smp
Debian 3.1 (testing)
Apache 2.0.54
MySQL 4.1.15
PHP 4.3.10-16
Postnuke 0.762 -
- Rang : Site Admin
- Inscrit en : 06.12.03
- Dernière visite : 25.02.10
- Messages : 274
The merror message you are receiving mean that at least one of 3 things is incorrect or missing:
- the city code
- the temp unit
- the speed unit
So there must be something wrong with the default settings.
A frequent cause for this is users falling to click on the "save changes" button at the end of the default settings procedure.
Can you point me to your website if it is online ?
By the way if you want to beta test weather 1.40 I would be happy to send it to you.
The main change is that it use pnRender templates for all display so it is easier to customize your weather display.
-
- Inscrit en : 04.04.06
- Dernière visite : 17.04.06
- Messages : 2
Thanks vedrine!
Everything's working now! Not sure what effect this had, but the pn_mod_vars from my previous 1.33 install did not get removed when the module itself was removed. After manually removing them and doing a clean 1.34 install, no problems to report!
And, yes, I'd be happy to test v1.4. I've always been most comfortable on the bleeding-edge! :)
My site (which is itself a work in progress) can be found at
http://istari.us
By the way, though I don't have a link to it yet on my main site, I do have a functioning pn v0.800-MS1 release running which can also be used for testing if you're interested.
Cheers!
Mark
_____________________
Linux 2.4.27-2-686-smp
Debian 3.1 (testing)
Apache 2.0.54
MySQL 4.1.15
PHP 4.3.10-16
Postnuke 0.762 -
- Inscrit en : 23.09.06
- Dernière visite : 14.10.06
- Messages : 2
Hi
I am quite new to PostNuke, but I have been able to install several modules without any problems. "Weather" is unfortunately not one of them...
I also get the message "Error! Sorry! Bad arguments passed to API function-5", but this occurs as soon as I reach step 3 in your install guide (step 1 and 2 are OK, also the ASCII/binary mode thing).
What have I missed or done wrong...?
(PN vers. 7.6.2) -
- Rang : Site Admin
- Inscrit en : 06.12.03
- Dernière visite : 25.02.10
- Messages : 274
Hello,
I think you are trying to install the version 1.34 available in the Downloads section of this website ?
If the answer is yes, can I suggest that you delete all the module/weather directory on your server and use the link to http://noc.postnuke.com/snapshots.php?group_id=357
to download the 1.40 version.
This version isn't yet publically announced but it is quite stable and additionnaly far more friendly during install with the user. Most typical errors are displayed as clear messages rather than the rather cryptic ones I used in previous versions !!
If you have still any problem with the 1.40 version, don't hesitate to post on this forum and I will try to help you.
Additionnaly using the link above you are downloading the nightly build so you are allways sure to get the most up-to-date version. -
- Inscrit en : 06.12.03
- Dernière visite : 15.08.09
- Messages : 4294967292
I had the same problem with a fresh/new install on postnuke .75
I deleted the weather directory in modules and installed it againg. After that, the module worked well!!!
Yiannis Pailas
Ioannina, Greece
------------------ -
- Inscrit en : 06.12.03
- Dernière visite : 15.08.09
- Messages : 4294967292
I think I solved my problems by installing the version 1.40 as Vedrine recommended. It seems to work perfectly! (Thank you ver much, Vedrine!)
M -
- Inscrit en : 23.09.06
- Dernière visite : 14.10.06
- Messages : 2
Oops, the above was from me... Didn't notice I hadn't logged on.
Miber -
- Inscrit en : 06.12.03
- Dernière visite : 15.08.09
- Messages : 4294967292
I'm getting the same error.
I'm also getting "Error! Called unknown function: weather_admin_curprefs()" when I try to change my default location in admin.
I'm running PN .764, weather 1.33 and I've tried both the "standard" for MSNBC and XML weather from weather.com. When I signed up for weather.com, it didn't give me an authorization key. Would that be my password for there?
My site can be found at http://hraus.net and the "New Weather" link is at the bottom of the menu - this is the one for weather 1.33. I also have the pnWeather module on the site which is the "Weather" link on the menu.
It's not a necessity for a default city, since a user can go and change settings for themselves, but it would be nice.
By the way, it is basically a closed site, you will have to register (for free) as a user first.
Thank you very much,
Mickey -
- Inscrit en : 06.12.03
- Dernière visite : 15.08.09
- Messages : 4294967292
Utilisateurs en ligne
- 7 visiteurs
Données pour les 15 dernières minutes








