Back to ProBlog Support

p.mietlicki
p.mietlicki

Hi all !

I'm using fastcgi with php-fpm and, when someone tried to generate RSS feed on my blog, it replied with a 500 error. I've noticed this error under my apache logs :

FastCGI: comm with server "/cgi-bin/php5-fcgi" aborted: error parsing headers: duplicate header 'Content-Type', referer: http://pascal-mietlicki.fr/blog

I took a look at the code and I saw that under rss/feed.php (www/plugins/radiantweb/problog/views/rss/feed.php), there is :

header('Content-type: text/xml;', true);

In fact, if you have fastcgi enabled on your server, you will all have the same problem. Because the code, right now, does not comply with RFC2616 that only presents two scenarios for multiple Content-Type headers: 1) a "300 Multiple Choice" response for agent-drive negotiation, or 2) within multi-part content.

So please, RadiantWeb, would you be kind and implement these corrections : Remove this line under rss/feed.php:

header('Content-type: text/xml;', true);

Change this line under Bloglist.php (line 184).

From :

return View::make('radiantweb.problog::rss.feed', [
                    'rss_title'=>$this->property('rss_title'),
                    'rss_description'=>$this->property('rss_title'),
                    'rss_page'=>  Request::url(),
                    'posts' =>$this->page['blogPosts'],
                    'page'=>$this->page['blogPost']
                ]);

To :

return response()->view('radiantweb.problog::rss.feed', [
                    'rss_title'=>$this->property('rss_title'),
                    'rss_description'=>$this->property('rss_title'),
                    'rss_page'=>  Request::url(),
                    'posts' =>$this->page['blogPosts'],
                    'page'=>$this->page['blogPost']
                ])->header('Content-Type', 'text/xml');

By the way, this version uses the new view helper, so that's for the best.

Best regards, Pascal

Last updated

ChadStrat
ChadStrat

This is great. Very very helpful. Your feedback here is one of the reasons I love the October community so much. Thank you so much for your effort and feedback. I will make this change and next point release will have this.

joe.conigliaro2402

1-3 of 3