![]() |
|
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Zen Cart & osCommerce Tips, advice and help on how to use the most popular free E-commerce shopping carts available. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi
I need some help setting up an XML feed in to my website I did find another post about this but it didn't work for me keep getting some errors http://www.webdeveloper.com/forum/sh...ad.php?t=93943 http://www.thewatch4u.co.uk/curl.php Warning: curl_setopt(): supplied argument is not a valid cURL handle resource in /home/hitech99/public_html/thewatch4u/curl.php on line 8 Warning: curl_setopt(): supplied argument is not a valid cURL handle resource in /home/hitech99/public_html/thewatch4u/curl.php on line 10 Warning: curl_setopt(): supplied argument is not a valid cURL handle resource in /home/hitech99/public_html/thewatch4u/curl.php on line 12 Warning: curl_setopt(): supplied argument is not a valid cURL handle resource in /home/hitech99/public_html/thewatch4u/curl.php on line 14 Warning: curl_setopt(): supplied argument is not a valid cURL handle resource in /home/hitech99/public_html/thewatch4u/curl.php on line 16 Warning: curl_setopt(): supplied argument is not a valid cURL handle resource in /home/hitech99/public_html/thewatch4u/curl.php on line 18 Warning: curl_exec(): supplied argument is not a valid cURL handle resource in /home/hitech99/public_html/thewatch4u/curl.php on line 20 Warning: curl_close(): supplied argument is not a valid cURL handle resource in /home/hitech99/public_html/thewatch4u/curl.php on line 22 Fatal error: Call to a member function on a non-object in /home/hitech99/public_html/thewatch4u/curl.php on line 44 I'm sure its an easy fix but i can't see it thanks Anthony ![]() |
|
|||
|
That error occurs when a handle hasn't been defined for the cURL functions.
There should be a statement such as PHP Code:
For some reason, the handle isn't being defined. It is possibly occurring because the URL for the XML feed hasn't been defined somewhere in the script's configuration. I suggest you double check the configuration for the plug-in, in particular where you define the URL for the XML feed.
__________________
Lawrence |
|
|||
|
I will double check this expect your right lol just missed some thing Anthony
__________________
BABYKIDSCLOTHINGONLINE.COM BEAUTYEXPRESSONLINE.COM HI-TECH99.CO.UK HI-TECH99.COM STOPSPAMMAIL.CO.UK THEWATCH4U.CO.UK UKCLASSIFIEDADS.NET UKONLINE-DIRECTORY.COM |
|
|||
|
Hi i have solved those errors problem had a space were there shouldn't have been one but have another error??
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/hitech99/public_html/thewatch4u/curl.php on line 16 Array()
__________________
BABYKIDSCLOTHINGONLINE.COM BEAUTYEXPRESSONLINE.COM HI-TECH99.CO.UK HI-TECH99.COM STOPSPAMMAIL.CO.UK THEWATCH4U.CO.UK UKCLASSIFIEDADS.NET UKONLINE-DIRECTORY.COM |
|
|||
|
Your host is probably running PHP in safe mode. To check the configuration of your PHP installation, create a file called phpinfo.php or similar then put the following in it.
PHP Code:
The only way to change these parameters is to ask your host to edit the php.ini file which they are very unlikely to do. What CURLOPT_FOLLOWLOCATION does, is tell the script to follow any page redirections that are on the page you are trying to download. The chance are that there won't be so it should be safe to comment out line 16 with "//". Line 16 will now look similar to this PHP Code:
__________________
Lawrence |
|
|||
|
They are set to
Safemode is set to off open_basedir/home/hitech99:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmpno value Anthony
__________________
BABYKIDSCLOTHINGONLINE.COM BEAUTYEXPRESSONLINE.COM HI-TECH99.CO.UK HI-TECH99.COM STOPSPAMMAIL.CO.UK THEWATCH4U.CO.UK UKCLASSIFIEDADS.NET UKONLINE-DIRECTORY.COM |
|
|||
|
It'll be because open_basedir is set. This is set for security reasons to prevent injection of malicious code on to your server via log files etc. It's very unlikely that your host will change this for you so I suggest you comment out line 16 as shown in my previous post. That line will only have an effect if the URL you are downloading from uses a page redirect, if it doesn't, then the line will do absolutely nothing anyway.
__________________
Lawrence |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OScommerce or zencart | Rb2 | eCommerce for Beginners | 5 | 01-12-2007 09:52 PM |
| how to import Data base | Cushtydeals | Zen Cart & osCommerce | 3 | 07-10-2007 04:27 PM |
| osCommerce v3 download | Lawrence | Zen Cart & osCommerce | 0 | 22-09-2007 12:03 PM |
| Oscommerce v3 - anyone know anything about this? | PeterC | Zen Cart & osCommerce | 1 | 05-09-2007 11:18 AM |
| how to add a news feed? | Tinkerbell | The Water Cooler | 3 | 21-08-2007 12:10 PM |