Himalayan-Academy / Hinduism-Today

Tracking Hinduism Today
0 stars 0 forks source link

RSS Feed Is Faling #12

Closed Brahmanathaswami closed 6 years ago

Brahmanathaswami commented 6 years ago

The RSS feed URL registered with Feedblitz fails on the new server

https://www.hinduismtoday.com/blogs-news/feed,0.rss

XML Parsing Error: no root element found Location: https://www.hinduismtoday.com/blogs-news/feed,0.rss Line Number 1, Column 1:

You can change to whatever it need to be.

Brahmanathaswami commented 6 years ago

hopefully we can get this settled tonite.

Brahmanathaswami commented 6 years ago

Obviously, the RSS feed URL can be "anything" ... just in case to .htaccess re-writes by our dear crazy friend in Australia, can be (Should Be!) deprecated.

Brahmanathaswami commented 6 years ago

The .htaccess file in the new server is a way old versions. We have a version from 4. 2018 and prior that Aug 30 2017.

the latest version on the new server doesn't make sense -- modified. 2/19/2016,, where is that from?

Brahmanathaswami commented 6 years ago

The rewrite full from 4.2018 is

RewriteRule ^blogs-news/feed,([0-9]+).rss modules/xnews/backendt.php?topicid=$2

mambax7 commented 6 years ago

I'm looking into it....

Brahmanathaswami commented 6 years ago

the "backendt.php" file there is a different between the old on and new on. on line 148, the function: $tmp-append is set to be array (in the old file that worked) $tpl->append('items', array( 'title' => XoopsLocal::convert_encoding(htmlspecialchars($storytitle, ENT_QUOTES)) , 'link' => nw_seo_UrlGenerator(_MA_NW_SEO_ARTICLES, $story->storyid(), $item_title) , 'guid' => $story->nw_stripeKey(md5($story->title().$story->topic_title), 7, 32), 'category' => XoopsLocal::convert_encoding(htmlspecialchars($story->topic_title, ENT_QUOTES)) , 'pubdate' => formatTimestamp($story->published(), 'rss') , 'description' => $description));

Array is missing in the new files.

$tpl->append('items', [ 'title' => XoopsLocal::convert_encoding(htmlspecialchars($storytitle, ENT_QUOTES)) , 'link' => nw_seo_UrlGenerator(_MA_NW_SEO_ARTICLES, $story->storyid(), $item_title) , 'guid' => $story->nw_stripeKey(md5($story->title().$story->topic_title), 7, 32), 'category' => XoopsLocal::convert_encoding(htmlspecialchars($story->topic_title, ENT_QUOTES)) , 'pubdate' => formatTimestamp($story->published(), 'rss') , 'description' => $description ]);

Brahmanathaswami commented 6 years ago

I won't change anything, just 'investigating" to help you.

Brahmanathaswami commented 6 years ago

Have to shut down for the day. I will look for a new RSS feed in the morning, or if you get the old one work, feedblitz catch it and will "fire" the HPI news as usuall.

mambax7 commented 6 years ago

OK, I'll keep you posted what I find out...

mambax7 commented 6 years ago

It should be fixed now.