Problems with Joomla 1.5.8?? (1 viewing) (1) Guest
Favoured: 0
|
|
|
TOPIC: Problems with Joomla 1.5.8??
|
|
|
|
Problems with Joomla 1.5.8?? 3 Years, 5 Months ago
|
Karma: 0
|
|
Great Module! But are there any conflicts with Joomla 1.5.8? It works great with my other server with v. 1.5.3, but on my updated server I only see the textbox and button. The gif appears and it sounds like it's updating. Permissions are fine and cURL is enabled. Same OS and software on both servers, but different versions of Joomla. Thanks in advance.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:Problems with Joomla 1.5.8?? 3 Years, 4 Months ago
|
Karma: 0
|
|
I have updated to Joomla 1.5.8. It is working well for me.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:Problems with Joomla 1.5.8?? 3 Years, 3 Months ago
|
Karma: 0
|
|
I have a similar problem with 1.5.9. But strangely enough, only on my online installations.
I have joomla installed twice on my local system and the module works perfectly. I see the charts, everything is just fine.
Once I try to enable the module on my online system (two systems actually, without no connection to each other), on one of them all I see is an text input field and the submit button - which don't work, the quotes are not retrieved.
On the second I get an ugly warning (and the two inputs as well):
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /var/www/html/web210/html/cms/modules/mod_yahoostockquote/mod_yahoostockquote_lib.php on line 385
Safe mode is off!
Both systems have cURL enabled:
first has:
libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
And the second:
libcurl/7.12.1 OpenSSL/0.9.7a zlib/1.2.1.2 libidn/0.5.6
And I really need this plugin, I have a customer which specifically asked for it, and I cannot tell him, "hey, it works, but not on your site!"
So, ANY help will be a thousand years remembered...
Thanks!
|
|
|
|
|
|
|
Last Edit: 2009/01/29 05:25 By jumping jack.
|
|
|
The administrator has disabled public write access.
|
kksou (Admin)
Admin
Posts: 1599
|
|
Re:Problems with Joomla 1.5.8?? 3 Years, 3 Months ago
|
Karma: 23
|
|
If cURL is enabled and safe_mode is off, then it must be that you have set open_basedir.
Try to do a google on "CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode". I think there are quite a number of solutions to resolve this.
Alternatively, if you've ok with PHP, edit the file mod_yahoostockquote_lib.php. Go to around line 379, you will see class YahooStockQuote extends YahooStockQuote_base.
Edit the function get_page($url). Instead of using the curl functions, you can try using file_get_contents($url). I didn't use this option because some hosts do not allow file_get_contents() to retrieve an url. If your site allows, this will help solve your problem.
Hope this helps.
Regards,
/kksou
|
|
|
|
|
|
|
Last Edit: 2009/01/29 12:12 By kksou.
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:Problems with Joomla 1.5.8?? 3 Years, 3 Months ago
|
Karma: 0
|
Thanks for your prompt reply. Unfortunately I still couldn't make it work. I tried to do what you suggested in your alternative solution, now I have the following code:
| Code: |
/*
class YahooStockQuote extends YahooStockQuote_base {
function get_page($url) {
if ($url!='') {
$ch = curl_init ();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, $this->binary);
$this->html = curl_exec($ch);
curl_close($ch);
}
}
}
*/
class YahooStockQuote extends YahooStockQuote_base {
function get_page($url) {
if ($url!='') {
$this->html = file_get_contents($url);
}
}
} |
As you see I replaced the first YahooStockQuote class with the second one.
It did not change anything: local works like before, online still doesn't.
Later edit:
I checked the php configuration for the online servers, and yes, I have open_basedir set! Now I have to figure out a method to change this, as I do not have access to php.ini (it's a shared server)!
But: even if I set an open_basedir on the local system, it still works!
Anyway, thanks a lot for your help. If you have any new ideas, I would be grateful.
|
|
|
|
|
|
|
Last Edit: 2009/01/29 17:55 By jumping jack.
|
|
|
The administrator has disabled public write access.
|
kksou (Admin)
Admin
Posts: 1599
|
|
Re:Problems with Joomla 1.5.8?? 3 Years, 3 Months ago
|
Karma: 23
|
|
Hi,
Please check with your host whether they allow file_get_contents($url) to retrieve an url.
Also try do a
echo "bp1: ".htmlentities($this->html)."<br />";
to see if $this->html contains the retrieved html content from yahoo.com.
Regards,
/kksou
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
kksou (Admin)
Admin
Posts: 1599
|
|
Re:Problems with Joomla 1.5.8?? 2 Years, 10 Months ago
|
Karma: 23
|
Hi,
Please download the latest version (v1.5.7).
Yahoo Stock Quote (AJAX module version)
The default now uses fread() instead of curl.
It might now work on your machine...
Regards,
/kksou
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
|