PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Error when enabling the kksou Google Weather modul (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Error when enabling the kksou Google Weather modul


#5793
tokenring (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Error when enabling the kksou Google Weather modul 1 Year, 8 Months ago Karma: 0  
Hey guys,

Excellent little module here. I know it is good because I have it working on the test site, but the production site is throwing an error.

Here is the error in the UI when the module is enabled. I don't see this error on the other site I'm running. I can't find the difference as of yet.

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /homepages/31/d384714160/htdocs/aruffrufflife_live/modules/mod_kksouGoogleWeather/mod_kksouGoogleWeather_libclass.php on line 678
 
 
Last Edit: 2013/01/13 22:53 By tokenring.
  The administrator has disabled public write access.

#5794
tokenring (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:Error when enabling the kksou Google Weather modul 1 Year, 8 Months ago Karma: 0  
Here is the environment:

PHP Built On Linux infong 2.4 #1 SMP Fri May 18 17:32:59 UTC 2012 i686 GNU/Linux
Database Version 5.0.96-log
Database Collation utf8_general_ci
PHP Version 5.2.17
Web Server Apache
Joomla! Version Joomla! 2.5.8 Stable ere is the environment:

PHP Built On Linux infong 2.4 #1 SMP Fri May 18 17:32:59 UTC 2012 i686 GNU/Linux
Database Version 5.0.96-log
Database Collation utf8_general_ci
PHP Version 5.2.17
Web Server Apache
Joomla! Version Joomla! 2.5.8 Stable [ Ember ] 8-November-
 
 
Last Edit: 2013/01/13 22:55 By tokenring.
  The administrator has disabled public write access.

#5795
tokenring (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:Error when enabling the kksou Google Weather modul 1 Year, 8 Months ago Karma: 0  
Apparently I can't do anything about my text being duplicated or tripled when I post. Sorry about that.

Aaron
 
  The administrator has disabled public write access.
#5796
kksou (Admin)
Admin
Posts: 1722
graph
User Online Now Click here to see the profile of this user
Re:Error when enabling the kksou Google Weather modul 1 Year, 8 Months ago Karma: 27  
Hi,

As the error message says, the problem is with your php.ini. Some host are more conservative and set to block all file and web access PHP commands by default in the php.ini.

The google weather retrieves data from the wunderground.com weather server. It requires the web access for it to work.

If you're ok with allowing web access, please google for "php.ini allow file_get_contents". There are many articles that shows you how to enable file_get_contents() in the php.ini for your server.

Regards,
/kksou
 
  The administrator has disabled public write access.
#5797
tokenring (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:Error when enabling the kksou Google Weather modul 1 Year, 8 Months ago Karma: 0  
Thanks Kksou!

Okay, here is my new question. On a J1.5 site or less you would see the PHP.ini file in the /root directory. What is the location in J2.5?

Also, this modules runs fine on test.aruffrufflife.com and not www.aruffrufflife.com (just a second instance of the site) on the same host. So that is what is confusing me. I know I have to see the contents of the file to figure this out.

Aaron
 
  The administrator has disabled public write access.
#5798
tokenring (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:Error when enabling the kksou Google Weather modul 1 Year, 8 Months ago Karma: 0  
I think I found the issue and the resolution from your help.

test site that works.
PHP Version 5.4.10

live site that doesn't work
PHP Version 5.2.17
 
  The administrator has disabled public write access.
#5799
tokenring (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:Error when enabling the kksou Google Weather modul 1 Year, 8 Months ago Karma: 0  
Amazing! It was because I was specifying this in my .htaccess file (pre J2.5) which came over when I needed it.

########## Begin - Joomla! PHP5
#
AddHandler x-mapp-php5 .php
#
########## End - Joomla! PHP5

So this will remind me to comment out this on all the sites. Thanks again!

Aaron
 
  The administrator has disabled public write access.



Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Blog - Forum - Privacy Policy - Contact Us
Copyright © 2006-2012. kksou.com. All Rights Reserved