Joomla! Discussion Forums



It is currently Wed Nov 25, 2009 12:23 am (All times are UTC )

 


Forum rules

Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 9 posts ] 
Author Message
Posted: Sun Oct 22, 2006 11:18 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Aug 28, 2006 9:48 am
Posts: 87
Dear Group,

I have an interesting dilemna. I use godaddy as a provider and I created a testing environment that use eWeather and worked just fine. Then I switched the system live and I got the message below in the window where the message was suppose to appear:

Warning: file_get_contents(): URL file-access is disabled in the server configuration in /home/content/r/e/b/rebels66/html/host/includes/domit/xml_domit_parser.php on line 1645

After struggling for sometime I started to think it may not be my problem but something with the settings on godaddy. I asked and found that they were very unresponsive. So I ask can someone help?

Andy


Top
  E-mail  
 
Posted: Thu Jan 11, 2007 6:56 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Thu Jun 29, 2006 7:27 am
Posts: 225
Hi,

I'm facing the same error when i do another installation manually.

After i upload all the file to my server and run http://www.domain.com/installation
It prompt me the error below,

Quote:
Warning: main(): URL file-access is disabled in the server configuration in /www/9999mb.com/j/i/m/smithveg/htdocs/includes/joomla.php on line 71


What should i need to configure in the ../configuration.php ?

Someone know how can i solve this? :)

_________________
You do not have time to think about failure.
Signature Rules: viewtopic.php?f=8&t=65


Top
   
 
Posted: Fri Jan 12, 2007 8:36 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Aug 28, 2006 9:48 am
Posts: 87
Sorry it has been so long since I solved it that I  do not remember exactly what I had to do in order to get it working. From what I can remember e-weather also has a forum on their site and I think that I may have gotten the solution there. Good luck and I have spent some time trying to reflect on what it was that I did but I continue to draw a blank. If it comes to me then I will post again. Good luck.


Top
  E-mail  
 
Posted: Fri Jan 12, 2007 1:53 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Thu Jun 29, 2006 7:27 am
Posts: 225
AndyRay,

Thanks to your reply. What you talking about the e-weather?

_________________
You do not have time to think about failure.
Signature Rules: viewtopic.php?f=8&t=65


Top
   
 
Posted: Fri Jan 12, 2007 2:06 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Aug 28, 2006 9:48 am
Posts: 87
E-weather is produced by a german company that can be found in the extensions section. If you go to their forum you will be able to find more info there.


Top
  E-mail  
 
Posted: Thu May 31, 2007 5:18 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Feb 01, 2007 5:07 pm
Posts: 95
what's the solution for this error? i've been getting the same error. what's their website? i don't see eWeather under extensions anymore. hmmm...


Top
  E-mail  
 
Posted: Sat Dec 08, 2007 6:27 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Aug 31, 2006 7:39 pm
Posts: 6
The problem is that the webserver has strict security about opening an URL from a remote location. In PHP.INI you'll find allow_url_fopen = off. Do NOT change this line as this will make your PHP configuration less secure. I finally found the solution on MamboBear.de

With eWeather and RAF weather it is still possible to open a remote URL.
- Add the PHP CURL module for your webserver (if not present) and restart Apache
- Change line 1645 of /includes/domit/XML_Domit_Parser.php with the following code:

Code:
// return file_get_contents($filename);
//fvt 2006-09-16

$ch = curl_init();
$timeout = 5; // set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, $filename);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file_contents = curl_exec($ch);
curl_close($ch);

return $file_contents;

//Fvt end //


It will look like this:

Code:
   function getTextFromFile($filename) {
      if ($this->doUseHTTPClient && (substr($filename, 0, 5) == 'http:')) {
         $this->establishConnection($filename);
      }

      if ($this->httpConnection != null) {
         $response =& $this->httpConnection->get($filename);

         $this->httpConnection->disconnect();
         return $response->getResponse();
      }
      else if (function_exists('file_get_contents')) {
          //if (file_exists($filename)) {
            // return file_get_contents($filename);
//fvt 2006-09-16

$ch = curl_init();
$timeout = 5; // set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, $filename);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file_contents = curl_exec($ch);
curl_close($ch);

return $file_contents;
          //}
      }
      else {
         require_once(DOMIT_INCLUDE_PATH . 'php_file_utilities.php');

         $fileContents =& php_file_utilities::getDataFromFile($filename, 'r');
         return $fileContents;
      }


Top
  E-mail  
 
Posted: Sat Jun 20, 2009 3:10 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Nov 07, 2007 4:27 pm
Posts: 17
are there anyother solution if curl is disabled in the server ?


Top
  E-mail  
 
Posted: Sat Aug 01, 2009 11:03 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Aug 28, 2007 8:02 am
Posts: 71
hi all!

i'm having the same problem as you do...

i tryed with EdwinW advices, but now all i'm getting is eweather panel, with no informations in it....

can you help me with this problem?


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

Quick reply

 



Who is online

Users browsing this forum: ariesanywhere and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group