Fixed  "Preview News Feed" reports back "Uncaught Error"

JVCode

Well-known member
Trying to preview a feed and it's displaying the following error

Capture.PNG

It's giving me this error on all feeds.
 

Elizabeth

Well-known member
Only if the feed ends in /feed

I'm successful if it ends in a number or rss.

Take that back, there is no rhyme or reason to what worked or didn't work.
 

Mike

XenForo developer
Staff member
Please provide a feed URL. Also, does the feed work if you save it and import?
 

Mike

XenForo developer
Staff member
Thus far, every feed has worked for me. Can you turn on debug mode and possibly use FireBug to see if there's a better error?
 

Mike

XenForo developer
Staff member
library/XenForo/Model/Feed.php, look for:

Code:
			if (!empty($entryData['date_modified']) && is_a($entryData['date_modified'], 'Zend_Date'))
Replace with:

Code:
			if (!empty($entryData['date_modified']) && $entryData['date_modified'] instanceof Zend_Date)
 

EQnoble

Well-known member
Awesome thanks to Trombones for pointing this out and Mike for being a genius :)
Everything is working now on rc1 for feeds for me. Cool.
 

swatkins

Member
I applied the fix code and the import worked... 4 different threads were started but all returned this error when I clicked on them...

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@dieselevents.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I am at a loss as where to look to fix this problem...
 
Top