Fever and string parsing problems


Recommended Posts

Hello board,

 

I'm having a problem with an application I'm trying to implement into my unRAID ecosystem.

The problem is: I don't know how to tackle this problem or who to turn to in order to have it solved. In addition the situation is quite difficult to explain and this means I cannot expect to see it solved any time soon. So, frankly without much hope, I'd like to share my woe with you because, you never know.

 

The application being discussed is fever (http://feedafever.com/), a clever in-house RSS client solution. I wanted to get rid of Google Reader in substitution of it and decided to give it a try. Unfortunately it doesn't come for free or with a trial period; the only thing you can do it is to just buy it.

It requires a PHP enabled HTTP server and a MySQL server installation; a common configuration already available on unRAID thanks to the plugins developed by this community.

 

I configured MySQL, lighttps and installed and configured fever as well. Everything went smooth. I can subscribe to feeds and see them fetched and populating the MySQL database. There's only one problems: the articles fetched aren't completely fetched. For some feeds, the body of the articles are not available, other times the article titles are not avaible, sometimes both.

 

When I saw that I contacted the developer asking for support. To put it short, we agreed nothing is wrong with the app itself, only there might see to be some string parsing problems. I checked and noticed that only feeds that present the UTF-8 syntax make the app behave weirdly. In MySQL database, the table doesn't get filled with body article texts, the column is empty, or strange characters are put in substitution of article titles. See examples below:

 

Link to a non working feed: http://feeds.feedburner.com/loopinsight/KqJb

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>The Loop - powered by FeedBurner</title>
<link href="http://feedburner.google.com/fb/lib/stylesheets/undohtml.css" rel="stylesheet" type="text/css" media="all">
<link href="http://feedburner.google.com/fb/feed-styles/bf30.css" rel="stylesheet" type="text/css" media="all">
<link rel="alternate" type="application/rss+xml" title="The Loop" href="http://feeds.feedburner.com/loopinsight/KqJb">
<script type="text/javascript" src="http://feedburner.google.com/fb/feed-styles/bf30.js"></script>
</head>

 

It gets displayed like this: https://dl.dropbox.com/u/2777693/Photo%2006-07-12%2018%2054%2024.png

 

Link to a non working feed: http://daringfireball.net/index.xml

<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Daring Fireball</title>
<subtitle>Mac and web curmudgeonry/nerdery. By John Gruber.</subtitle>
<link rel="alternate" type="text/html" href="http://daringfireball.net/" />
<link rel="self" type="application/atom+xml" href="http://daringfireball.net/index.xml" />
<id>http://daringfireball.net/feeds/combo</id>

 

At that point I tried to install the thing on a full-blown slackware 13.1 version installing and configuring MySQL, PHP and Apache. Surprise surprise, on that installation fever works perfectly. I thought it could have been Apache so I tried to replace lighttp with Apache but without luck. To this day I don't really know what could be missing on the customized Slackware version used by unRAID and therefore I don't know how to solve my problem. I also thought it could be something related to the profile.d/ configuration but I'm not certain.

 

Unfortunately Fever developer told me he's quite ignorant about server configurations so he's not in a position to help me at this regard, so I'm asking: is there anyone who has the slightest idea?

 

EDIT: to be exact fever fails at retrieving content every time the content is wrapped with a CDATA tag

Link to comment

All right. I just discovered the tests I conducted weren't reliable due to the presence of lighttpd and the embedded libraries it comes with. I rebooted unRAID without it and installed Apache from scratch and now everything works perfectly with a manual installation of Apache + PHP and related packages...

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.