JotForm RSS causes issues to be shown when opened using Simple RSS feed Reader by Joomla Works

  • Svstoraa
    Asked on February 2, 2016 at 2:13 PM

    I hav made a RSS report in JotForm, and I get this link: https://eu.jotform.com/rss/60035043678049

    When I insert this link to a new module based on Simple RSS feed Reader, I get these remarks in the frotend of my Template:

    Warning: fopen(): Filename cannot be empty in /home/.../svstoraa.dk/public_html/libraries/joomla/filesystem/file.php on line 330

    Warning: Invalid argument supplied for foreach() in /home/.../svstoraa.dk/public_html/modules/mod_jw_srfr/helper.php on line 42

    Warning: Invalid argument supplied for foreach() in /home/.../svstoraa.dk/public_html/modules/mod_jw_srfr/helper.php on line 42

    I have tryed to empty the cache, but that does not work.

    The Simple RSS feed Reader is functioning OK with the original feeds, and other newsfeeds.

    What to do?

     

  • Ben
    Replied on February 2, 2016 at 5:51 PM

    Based on the PHP errors that you have pasted it seems that the error is with the RSS feed reader that you are using.Based on the error, it seems that fopen is passed an empty filename for RSS field. As such I believe that the code that follows expected the value from fopen to return specific values within the array.As the fopen did not work properly the foreach probably tried to do foreach on false value causing this.My suggestion is to use some of the print debug functions to find the source of this issue.For example, I would add var_dump($filename) right before fopen($filename, $operation) that will allow you to see the exact name that is passed to it.Of course, please do change $filename with the actual variable being passed to the fopen function on line 330The Simple RSS feed Reader is functioning OK with the original feeds, and other newsfeeds.I presume that it might be this one: http://extensions.joomla.org/extension/simple-rss-feed-readerLooking at it it seems that it reads the values from within its own cache, so the issue might be related to the way the cache of the RSS feed is saved, so this should be looked into as well.Looking at the feed itself, it seems that the feed is OK - opens up properly on my side.

  • Svstoraa
    Replied on February 3, 2016 at 3:27 AM

    In the URL field I have secured, that no "space", "enter" or "lineshift" was present.

    That rsolved the issue with

    Warning: fopen(): Filename cannot be empty in /home/.../svstoraa.dk/public_html/libraries/joomla/filesystem/file.php on line 330

    and one of the

    Warning: Invalid argument supplied for foreach() in /home/.../svstoraa.dk/public_html/modules/mod_jw_srfr/helper.php on line 42

    Still I have this problem to be solved

    Warning: Invalid argument supplied for foreach() in /home/.../svstoraa.dk/public_html/modules/mod_jw_srfr/helper.php on line 42

    Any suggestions to a solution?

    JotForm RSS causes issues to be shown when opened using Simple RSS feed Reader by Joomla Works Image 1 Screenshot 20

  • Welvin Support Team Lead
    Replied on February 3, 2016 at 5:07 AM

    I will have to test this and then let you know. I would also suggest checking this with the extension/plugin developer for help. 

  • Svstoraa
    Replied on February 3, 2016 at 5:35 AM

    This thread suggest to update the extention: http://www.joomlaworks.net/forum/simple-rss-feed-reader/41980-continued-error-messages-reply#145209

    And so I did from the link in answer 3.

    Now the errors have disappeared, but instead I get no show of posts from the feed.

    Now what?

    JotForm RSS causes issues to be shown when opened using Simple RSS feed Reader by Joomla Works Image 1 Screenshot 20

     

  • Charlie
    Replied on February 3, 2016 at 10:11 AM

    I'm discussing this with my colleague and we're setting up a test Joomla site to try the plugin. But as mentioned, it would be best to also contact Joomlaworks.net about this in their forum for support.

  • Svstoraa
    Replied on February 4, 2016 at 5:33 PM
    I tryed thro forum af Joomla Works, and I got this answer:_
    Lefteris Lefteris's Avatar Screenshot 10 OFFLINE Moderator Posts: 9487

     

    No posts in frontend 12 hours 57 minutes ago #151097

     

    Hi,

    There is an error thrown by the XML parser:Failed loading XML attributes construct error Couldn't find end of Start Tag rss line 1 Extra content at the end of the document.

    Looking at the feed you provided it looks like the extra whitespace at the root RSS tag is causing the issue.

    IMPORTANT: Please search the forum before posting a question!

    JoomlaWorks Support Team Member

     

    Now, I do not know how to find this whitespace. Do you have any suggestions?

  • Svstoraa
    Replied on February 4, 2016 at 5:35 PM

    By the way. I have made this thread private by mistake.

    Could You by any chance make it public?

  • Welvin Support Team Lead
    Replied on February 4, 2016 at 7:33 PM

    I will need to ask this to our developers. I will let you know here as soon as I get a reply from them.

    This thread is now public. 

  • Ben
    Replied on February 5, 2016 at 9:48 AM

    I took a look at the thread you have mentioned above: http://www.joomlaworks.net/forum/simple-rss-feed-reader/44775-no-posts-in-frontend#151097 as well as the issue on a demo Joomla site set up by my colleague.

    Please do note that the file can be opened by other RSS readers, so I would suggest to either use a different extension and if you wish to hide some parts, we might be able to provide you with the CSS code that would do that for you.

    In regards to the issue, it seems that the RSS module is not built to anticipate anything other than expected layout, which is what is causing the same.

    I have checked the RSS link, but it does not have any whitespace at the end. However the following Joomla Feed does have whitespace (new line) at the end: http://feeds.joomla.org/JoomlaAnnouncements

    - The reason why I mention this is because their script should check if the RSS is valid or if not, see what is the reason. If they however can provide the exact cause of it not working and it is in deed issue with the RSS, we can raise this to our developers for them to check out and update as needed.

    We can however not assist as much with 3rd party software/solutions.

    Do feel free to test out the same link in other RSS readers to see if any other happens to not work.

    - As mentioned above, I do suggest to consider an alternative RSS Feed reader if the issue can not be resolved on their side.