By Anh T. on Saturday, 25 October 2014
Posted in Technical Issues
Replies 12
Likes 0
Views 565
Votes 0
I have a feed url that I'm trying to import from but it always fail and the green import status bar would be stuck at the initial position. When I tried to inspect the request, the response seems to come back with the number '5'.

When I dived into the code and traced through the calls the code seems to stop at line 143 of /helpers/connectors.php. It seems the code is setting a hard stop when $cur_loops == 5 and echoing out '5' and then exits. When I commented out this if loop the feed would import the articles successfully.

My question is, is this number '5' an arbitrary number and why was it set? The feed url I'm using is this: http://feeds.feedburner.com/abajournal/dailynews?format=xml

Thanks
Hello Anh Than,

I am really sorry for the delay of this reply as it is a weekend for us here.
Can you revert back to original code then we can continuous investigate on this? That might some conflict with the feed ajax call so that green status bar is stuck at that moment. Also can you provide us with your Joomla backend and FTP access so we can take a look of this? Please advise.

*You can put the information in the optional information field below(SITE DETAILS). Don't worry about privacy. Only Support team can view the information.
·
Saturday, 25 October 2014 11:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex

I don't think I can give FTP access to the site at the moment due to some sensitive data. I'm just using default Easyblog 3.9.19025 with Joomla 3.3 install with no customization. If you can try adding the feed url I've provided above with any install of easyblog I think you would find the same problem. Please try it on your end and let me know if it's just the problem with the feed itself or something else. I also have several other examples of feed urls that are giving the same problems.
·
Sunday, 26 October 2014 07:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Anh,

I am really sorry for the delay of this reply as it is a weekend for us here.
Hmm, it okay. we understand that.
By the way, I have tried in my local site, it seems like working fine for me. Check my screenshot below.
I believe my guessing is true, the reason why you can't execute is because some of the reason break the ajax call, can you try set your error_reporting to NONE then it should be work fine.
·
Sunday, 26 October 2014 11:31
·
0 Likes
·
0 Votes
·
0 Comments
·
I can arrange to give you ssh access to the server if you can let me know what IP address you are coming from.

Also, I am wondering if there may be some kind of server/dns validation being performed by some, but not all feeds, where the connection is disallowed if it finds a mismatch somewhere in the name of the server/certificate and the public DNS for the site? Though I did attempt to reconfigure the site using certs from a working server domain and that didn't fix the problem either, it is possible something was missed if indeed a servername/dns/url mismatch could prevent a feed connection from working.

FYI, we have tested on other servers but with a different domain and the feed works correctly. However even copying down the php.ini files from a working server to a non-working server didn't solve the problem. Both working and non-working are on Ubuntu 14.04 using Joomla 3.3 and I have created a test site on the non-working server with only a basic Joomla and EasyBlog installed on it but have the same problem. So far, the only real error messages I am seeing in the Apache log is:

PHP Notice: XML error: Mismatched tag at line 136, column 10 in /opt/test/libraries/simplepie/simplepie.php on line 1805,

I tested a feed from Bloomberg and it worked fine, but another I tried in addition to the ABA Journal one fails also. The one that works fine is:
http://www.bloomberg.com/tvradio/podcast/cat_news.xml

The other one that I tested that fails is:
http://www.deadline.com/feed/

I can make any changes to this server you think are worth trying so just let me know how best to proceed.

FYI, I am able to CURL the ABA feed from the commandline..
·
Tuesday, 28 October 2014 08:42
·
0 Likes
·
0 Votes
·
0 Comments
·
hello Anh Than,

Thanks for getting back to us,

This is my Ip address -> 210.195.30.75

*You can put the information in the optional information field below(SITE DETAILS). Don't worry about privacy. Only Support team can view the information.

Or you can send your SSH details at our online helpdesk which is available at https://crm.stackideas.com

Also provide us with your Joomla backend as well.
·
Tuesday, 28 October 2014 11:50
·
0 Likes
·
0 Votes
·
0 Comments
·
I've included the site details here. Thank you for the help.
·
Tuesday, 28 October 2014 14:02
·
0 Likes
·
0 Votes
·
0 Comments
·
hello Anh Than,

Sorry for late reply to this,
It seems like some of the feed url can't be curl, which means that system trying to get the content from the feeds URL but keep failed until 5 times then hitting as you mentioned show '5' in the console area.
May i know how to connect with your SSH? Or perhaps you assign FTP access to us so that we can do the debugging? Please advise.
·
Tuesday, 28 October 2014 17:36
·
0 Likes
·
0 Votes
·
0 Comments
·
I have added SSH and Web login info to the Site details
·
Tuesday, 28 October 2014 23:37
·
0 Likes
·
0 Votes
·
0 Comments
·
**UPDATE** I believe we have narrowed down the source of the problem to 3 aspects:

1. Enabling of "Get Full Text from Feed" (setting it to "yes")
2. Apache2 version 2.4.7 (or later)
3. Ubuntu 14.04 (or later)

If we disable "Get full text" the feed always works now but only partially. If we enable it on a server running Apache 2.4.4 with Ubuntu 12.04 it works, so it appears the problem is specific to Ubuntu 14.04 (and later), with Apache v2.4.7(or later).

Can someone please try enabling "Get Full Text" for the ABA Journal feed and if it still works for you, confirm what version of Linux/Apache you are running?

THanks...
·
Wednesday, 29 October 2014 08:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ann,

I'm really sorry that delayed of this reply,

I have do some debugging in your site, it seems like some of your articles from the feed url need to take a time to retrieve the content.

So it will keep loop over 5 times then stopped. I have temporary help you modify this to 100 times chance, it should work fine now.


if( $curl_loops == 100 )
{
echo '100';
exit;
}


Can you give it a try and see how it goes?
·
Wednesday, 29 October 2014 13:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Alex,

I've seen that part of the code before as I've mentioned in my first post and when I commented that part out it did work since it was given more time to run. Do all of the feeds go through this executeRedirects function on execution or only certain ones? It's strange that I consistently get the feed to execute completely on a different site but not on this one so I thought the problem would be related to the server settings.

Is it safe to increase the $curl_loops to 100? If it is safe I will just do that to resolve this issue for now. Thank you for your help looking into this.
·
Wednesday, 29 October 2014 14:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Anh T.,

Sorry for late reply to this,
Yes, it is safe, because only this specify feeds URL facing this issues, which means that got some article content is need some time to retrieve the content. Keep us updated then if the issues still persists.
·
Wednesday, 29 October 2014 15:55
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post