Phillip I have a problem
cosmin 269
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: Phillip I have a problem
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
Phillip I have a problem
Unfortunately, I am currently far to busy to doing a modification like this. I may find the time in 2 weeks.
Unfortunately, I am currently far to busy to doing a modification like this. I may find the time in 2 weeks.
1 Re: Phillip I have a problem
cosmin
OP
269
From: -
From: -
Phillip I have a problem
That's great, it works now. But what about my other questions?
That's great, it works now. But what about my other questions?
1 Re: Phillip I have a problem
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
Phillip I have a problem
Yes, try replacing:
with:
and remove the follow line:
Yes, try replacing:
$raw = @file($this->URL);
with:
$fp = curl_init($this->URL);
curl_setopt($fp, CURLOPT_RETURNTRANSFER, 1);
$raw = curl_exec($fp);
curl_close($fp);
and remove the follow line:
$raw = implode("", $raw);
1 Re: Phillip I have a problem
cosmin
OP
269
From: -
From: -
Phillip I have a problem
Philipp did you get the email I sent you?
Philipp did you get the email I sent you?
1 Re: Phillip I have a problem
cosmin
OP
269
From: -
From: -
Phillip I have a problem
It works now. Thanks.
It works now. Thanks.
1 Re: Phillip I have a problem
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
Phillip I have a problem
I see. This is a second call to verify the feed.
Just replace the second fopen line with:
I see. This is a second call to verify the feed.
Just replace the second fopen line with:
$iwebsite = "1";
1 Re: Phillip I have a problem
cosmin
OP
269
From: -
From: -
Phillip I have a problem
Nothing. Still does that even after the change. But I can import news from your ntcompatible feeds, which is weird. If already existing feeds work, why doesn't adding a new feed work? Computers really hate me.
EDIT:
maybe line 2097 in cadmin/mod_news is the problem? It still uses fopen.
Nothing. Still does that even after the change. But I can import news from your ntcompatible feeds, which is weird. If already existing feeds work, why doesn't adding a new feed work? Computers really hate me.
EDIT:
maybe line 2097 in cadmin/mod_news is the problem? It still uses fopen.
$iwebsite = @fopen("$categorydsc", "r");
1 Re: Phillip I have a problem
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
Phillip I have a problem
Ok, try the following modification. Open cadmin/mod_news in an editor and replace:
with:
Ok, try the following modification. Open cadmin/mod_news in an editor and replace:
$fp = fopen("$import[import_xmlurl]", "r");
while ($xmldata = fread($fp, 4096)) xml_parse($xml, $xmldata, feof($fp));
fclose($fp);
with:
$fp = curl_init($import[import_xmlurl]);
curl_setopt($fp, CURLOPT_RETURNTRANSFER, 1);
$xmldata = curl_exec($fp);
curl_close($fp);
xml_parse($xml, $xmldata);
1 Re: Phillip I have a problem
cosmin
OP
269
From: -
From: -
Phillip I have a problem
CURL support enabled
CURL Information libcurl/7.15.3 OpenSSL/0.9.7a zlib/1.2.1.2 libidn/0.5.6
I guess it is.
CURL support enabled
CURL Information libcurl/7.15.3 OpenSSL/0.9.7a zlib/1.2.1.2 libidn/0.5.6
I guess it is.
1 Re: Phillip I have a problem
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
Phillip I have a problem
I would open a trouble ticket with them and see if they can enable it for you. Is curl installed on that server? Curl should show up as separate module in phpinfo.
I would open a trouble ticket with them and see if they can enable it for you. Is curl installed on that server? Curl should show up as separate module in phpinfo.
1 Re: Phillip I have a problem
cosmin
OP
269
From: -
From: -
Phillip I have a problem
Damn. Yes, phpinfo shows they did. So, what now? My other site is hosted on another server of the same provider and feeds work just fine.
Damn. Yes, phpinfo shows they did. So, what now? My other site is hosted on another server of the same provider and feeds work just fine.
1 Re: Phillip I have a problem
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
Phillip I have a problem
Perhaps your web hosting provider disabled the ability to allow remote urls (allow_url_fopen = off)?
Perhaps your web hosting provider disabled the ability to allow remote urls (allow_url_fopen = off)?
My installation of ST at www.allopenjobs.com won't accept any RSS feeds as news sources, even though they all are perfectly valid. The installation is brand new, no mods or anything.
Which I did, http part and all.