This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Phillip I have a problem


avatar
cosmin 269
From: -
Phillip I have a problem

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.
No XML/RSS newsfeed found. You need to enter the full URL to the newsfeed (e.g. http://www.site/xml/backend.php)

Which I did, http part and all.

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
avatar
Administrator
1342
From: 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.
1 Re: Phillip I have a problem
avatar
OP 269
From: -
Phillip I have a problem

That's great, it works now. But what about my other questions?
1 Re: Phillip I have a problem
avatar
Administrator
1342
From: Austria
Phillip I have a problem

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
avatar
OP 269
From: -
Phillip I have a problem

Philipp did you get the email I sent you?
1 Re: Phillip I have a problem
avatar
OP 269
From: -
Phillip I have a problem

It works now. Thanks.
1 Re: Phillip I have a problem
avatar
Administrator
1342
From: Austria
Phillip I have a problem

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
avatar
OP 269
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.

$iwebsite = @fopen("$categorydsc", "r");
1 Re: Phillip I have a problem
avatar
Administrator
1342
From: Austria
Phillip I have a problem

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
avatar
OP 269
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.
1 Re: Phillip I have a problem
avatar
Administrator
1342
From: 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.
1 Re: Phillip I have a problem
avatar
OP 269
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.
1 Re: Phillip I have a problem
avatar
Administrator
1342
From: Austria
Phillip I have a problem

Perhaps your web hosting provider disabled the ability to allow remote urls (allow_url_fopen = off)?

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.