Joomlatwork
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 21, 2013, 08:53:29 PM

Login with username, password and session length
Search:     Advanced search
17065 Posts in 5664 Topics by 11139 Members
Latest Member: grWGyr
* Home Help Search Login Register
+  Joomlatwork
|-+  Joomla accelerate component
| |-+  Support questions
| | |-+  Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be
« previous next »
Pages: [1] Print
Author Topic: Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be  (Read 2511 times)
dracbart
Newbie
*
Posts: 2


View Profile Email
« on: January 30, 2010, 08:09:36 PM »

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set

I get this warning after installing and activating accelerator. But after i refresh the page it's gone and it doesn't come back until i clean the cache and the page is served for the first time again..

What is wrong?

Regards,

Bart Verhoeven
Logged
John
Administrator
Sr. Member
*****
Posts: 421


JoomlAtWork team member


View Profile Email
« Reply #1 on: January 30, 2010, 09:03:40 PM »

It seems that this relies on a security change made in PHP 4.4.4 and PHP 5.1.5 (see changelog).

There are some solutions posted in the PHP function comments (see http://de.php.net/curl_setopt).

We'll take a look at the issue, thanks for reporting.

Regards,
John
Logged
joomlatwork
Administrator
Hero Member
*****
Posts: 2817


View Profile Email
« Reply #2 on: January 30, 2010, 09:32:20 PM »

The cache engine only uses the CURL for CSS and JS optimalisation. Have you tried to disable this in the config?

R.
Logged
dracbart
Newbie
*
Posts: 2


View Profile Email
« Reply #3 on: January 30, 2010, 09:36:05 PM »

The cache engine only uses the CURL for CSS and JS optimalisation. Have you tried to disable this in the config?

R.

Yes i did, and that seams to be solving the issue, but the css and js optimalisation is exactly the feature what i was looking for, and what i need for my site.

So not using it will slow down my site incredibly. Is there another option?
Logged
joomlatwork
Administrator
Hero Member
*****
Posts: 2817


View Profile Email
« Reply #4 on: February 01, 2010, 05:55:55 PM »

Yes, you can do two things:

1) Suppress the error handling level in the Joomla configuration settings, if this not helps:
2) Edit the includes/css_handler file and find the line @curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); and remove this line. Also witin the includes/cache_handler.php is the same line for Javascript.

These files are located in /administrator/components/com_jrecache.

Regards,

Richard
Logged
eskwire
Newbie
*
Posts: 38


View Profile
« Reply #5 on: March 12, 2010, 02:49:09 PM »

It appears that I have this same problem after switching hosting companies.

I was able to make the error go away by setting:
Enable Javascript optimization: to No

and leaving all the other JSS/CSS optimization settings set to yes.

1. Does this seem right?

2. What exactly does this error mean?  Will my site now run slower b/c of it?

3. I was able to find the file and line to remove
/administrator/components/com_jrecache/includes/cache_handler.php

If I remove this am I removing functionality?

Thanks!

Logged
joomlatwork
Administrator
Hero Member
*****
Posts: 2817


View Profile Email
« Reply #6 on: March 15, 2010, 12:24:56 PM »

No you cannot overrule this ( is curl functionality).

What you can try is to disable the CSS / JS optimalisation in the JRE cache.

Install the plugin CssJsCompress (is very fast)

clear the cache.

regards,

R.
Logged
scept1c
Newbie
*
Posts: 12


View Profile WWW Email
« Reply #7 on: March 17, 2010, 10:25:43 AM »

disabling the CSS optimalisition has helped, thanks Joomlatwork.
Logged

Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!