What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

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

    Asked by Svstoraa on February 02, 2016 at 02: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?

     

    Page URL:
    www.svstoraa.dk

    RSS RSS Feed Reader
  • Profile Image

    Answered by Ben on February 02, 2016 at 05: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.

  • Profile Image

    Answered by Svstoraa on February 03, 2016 at 03: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?

  • Profile Image
    JotForm Support

    Answered by Welvin on February 03, 2016 at 05: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. 

  • Profile Image

    Answered by Svstoraa on February 03, 2016 at 05: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?

     

  • Profile Image
    JotForm Support

    Answered by Charlie on February 03, 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.

  • Profile Image

    Answered by Svstoraa on February 04, 2016 at 05:33 PM
    I tryed thro forum af Joomla Works, and I got this answer:_
    Lefteris Lefteris's Avatar 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?

  • Profile Image

    Answered by Svstoraa on February 04, 2016 at 05:35 PM

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

    Could You by any chance make it public?

  • Profile Image
    JotForm Support

    Answered by Welvin on February 04, 2016 at 07: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. 

  • Profile Image

    Answered by Ben on February 05, 2016 at 09: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.