Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
New server - PHP RSS news feeds stopped working
Old 01-06-2008, 07:14 AM New server - PHP RSS news feeds stopped working
Mother_Sheep's Avatar
Novice Talker

Posts: 13
Name: Jo
Location: UK
Trades: 0
Hi all,
I've been teaching myself (often via forums like this) and semi happily running a small website for the past year.

I've just moved to a new web host and my aim at the moment is to keep hosting my 'old' site while I develop a new, neater & tidier site.

The first problem is that the RSS feeds which were running previously now don't work. These should be seen here http://www.ewegotit.com/ in the latest news box, here: http://www.ewegotit.com/celebrity-gossip.htm - where it says [an error occurred while processing this directive]

I've added
AddHandler server-parsed .htm
AddHandler server-parsed .html
along with other variants into the .htaccess but still no joy

Can anyone see a blazingly obvious error in my coding or could it be something my new web hosts need to turn on/tweak?

I'd appreciate any advice
Cheers
__________________
Follow The Flock

Please login or register to view this content. Registration is FREE
Mother_Sheep is offline
Reply With Quote
View Public Profile Visit Mother_Sheep's homepage!
 
 
Register now for full access!
Old 01-06-2008, 09:07 AM Re: New server - PHP RSS news feeds stopped working
maxxximus's Avatar
Extreme Talker

Posts: 219
Name: Rob
Location: UK
Trades: 0
Suspect its a SSI issue. Try adding to your existing .htaccess

Code:
 Options +Includes
along with your other directives.

http://httpd.apache.org/docs/2.0/howto/ssi.html
maxxximus is offline
Reply With Quote
View Public Profile
 
Old 01-06-2008, 10:31 AM Re: New server - PHP RSS news feeds stopped working
Mother_Sheep's Avatar
Novice Talker

Posts: 13
Name: Jo
Location: UK
Trades: 0
Cheers Maxxximus, tried that, still no joy.
I'm reading through the how to you linked to so hopefully I can work it out. In the mean time if you or anyone else has an idea please feel free to add

cheers
__________________
Follow The Flock

Please login or register to view this content. Registration is FREE
Mother_Sheep is offline
Reply With Quote
View Public Profile Visit Mother_Sheep's homepage!
 
Old 01-06-2008, 12:36 PM Re: New server - PHP RSS news feeds stopped working
maxxximus's Avatar
Extreme Talker

Posts: 219
Name: Rob
Location: UK
Trades: 0
Can you paste your server error log for today.

Your htaccess file should read as below plus any other directives you need. Should have made that clear.

Code:
Options +Includes
AddHandler server-parsed .html
AddHandler server-parsed .htm

Last edited by maxxximus; 01-06-2008 at 12:41 PM..
maxxximus is offline
Reply With Quote
View Public Profile
 
Old 01-06-2008, 01:59 PM Re: New server - PHP RSS news feeds stopped working
Mother_Sheep's Avatar
Novice Talker

Posts: 13
Name: Jo
Location: UK
Trades: 0
OK, I've cleaned it up a bit, there were a lot of duplicated errors due to me faffing today so I just left one of each unique error log

[Sun Jan 06 10:51:29 2008] [error] [client 74.6.20.108] unable to include potential exec "/rsscelebfeeds.php" in parsed file /home/users/user/www/ewegotit.com/celebrity-gossip.htm

[Sun Jan 06 11:56:11 2008] [error] [client 90.203.16.227] unable to include potential exec "/rssnewsfeeds.php" in parsed file /home/users/user/www/ewegotit.com/news.htm, referer: http://www.ewegotit.com/celebrity-gossip.htm

[Sun Jan 06 12:08:31 2008] [error] [client 90.203.16.227] File does not exist: /home/users/user/www/ewegotit.com/none, referer: http://www.ewegotit.com/emx_nav_left.css

[Sun Jan 06 12:48:14 2008] [alert] [client 78.90.16.77] /home/users/user/www/ewegotit.com/drupal-5.5/.htaccess: Options not allowed here

[Sun Jan 06 14:46:48 2008] [alert] [client 90.203.16.227] /home/users/user/www/ewegotit.com/.htaccess: Options not allowed here

[Sun Jan 06 15:48:12 2008] [alert] [client 90.203.16.227] /home/users/user/www/ewegotit.com/.htaccess: Invalid command '.htm', perhaps mis-spelled or defined by a module not included in the server configuration

[Sun Jan 06 15:55:53 2008] [alert] [client 86.3.164.131] /home/users/user/www/ewegotit.com/.htaccess: Options not allowed here, referer: http://www.webmaster-talk.com/php-fo...ews-feeds.html

[Sun Jan 06 16:17:48 2008] [error] [client 66.249.67.15] File does not exist: /home/users/user/www/ewegotit.com/robots.txt


I also started a totally new .htacces file and included the exact text below:
Options +Includes
AddHandler server-parsed .html
AddHandler server-parsed .htm
and came up with a server error 500

I've tried a few variations in the .htaccess and keep coming up with either 500 error or a complete fubar. Like I said previously, the site was running fine (albeit a bit messy) just a couple of days ago on my old hosting package, so it's got to be something to do with moving servers/hosts.

I've been in touch with the 'technical support' but after a day of telling me a missing <td> tag was to blame, they advised me to seek the guidance of a web developer. (nice!)

I hope you can make some more sense of this.

Cheers
__________________
Follow The Flock

Please login or register to view this content. Registration is FREE
Mother_Sheep is offline
Reply With Quote
View Public Profile Visit Mother_Sheep's homepage!
 
Old 01-06-2008, 03:28 PM Re: New server - PHP RSS news feeds stopped working
maxxximus's Avatar
Extreme Talker

Posts: 219
Name: Rob
Location: UK
Trades: 0
Sounds like your Host has restricted overriding of core config in the httpd.conf file. This would need to be changed and the server restarted.

http://httpd.apache.org/docs/1.3/mod...#allowoverride

There is a work around that avoids using SSIs - dont know how much your site relies on them.

Instead of SSIs use standard php includes. So where you have in your http://www.ewegotit.com/celebrity-gossip.htm page

HTML Code:
 <!--#include virtual="/rsscelebfeeds.php" -->
you would replace with
PHP Code:
<?php include('http://www.ewegotit.com/rsscelebfeeds.php'); ?>
The only downside is you would need to rename your page to celebrity-gossip.php and alter all links to that page.

Someone else might make another suggestion.
maxxximus is offline
Reply With Quote
View Public Profile
 
Old 01-06-2008, 04:06 PM Re: New server - PHP RSS news feeds stopped working
Mother_Sheep's Avatar
Novice Talker

Posts: 13
Name: Jo
Location: UK
Trades: 0
Thanks for all of your help maxxximus, the good news is you've helped me learn a bit more but it is beginning to sound like no matter what I do this end, I am obstructed by some permission issue server side.

I've contacted the hosts again to see if they can dig deeper and actually offer some support.

Cheers again
__________________
Follow The Flock

Please login or register to view this content. Registration is FREE
Mother_Sheep is offline
Reply With Quote
View Public Profile Visit Mother_Sheep's homepage!
 
Reply     « Reply to New server - PHP RSS news feeds stopped working
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.30972 seconds with 12 queries