Giter Club home page Giter Club logo

simple-rss-feed-reader's Issues

Problem with links of the form http:/namesite/rss.xml

Sorry for my English. For a long time already I have a problem of sending rss news, which uses a non-traditional link. And now more in detail.

There is a site with rss tape of the form http:/namesite/rss.xml
If you add this link to Simple RSS Feed Reader, then he writes
**Failed loading XML... attributes construct error Couldn't find end of Start Tag rss line 1 Extra content at the end of the document**

If the address is removed in the .xml line, to which the module references, then just an error occurs. The news itself is still not displayed
**Failed loading XML...**

This is logical, since the rss feed to http:/namesite/rss simply does not exist.

How it is possible to solve this problem that rss a tape of a kind http: /namesite/rss.xml, was also perceived by the module?

setlocale and multilingual date-time

A useful feature for non-English sites would be a method to detect(from feed) or set the language(in module) and append the feed encoding.

EX:
setlocale(LC_TIME, 'fr_FR.utf8');

Failed loading XML... error parsing attribute name attributes construct error Couldn't find end of Start Tag line 1 Extra content at the end of the document

Was receiving this error.
Failed loading XML... error parsing attribute name attributes construct error Couldn't find end of Start Tag line 1 Extra content at the end of the document

I found that this was causing the error, some times extra spaces were being added and causing the above message.
<rss version="2.0"xmlns:atom="http://www.w3.org/2005/Atom">

To fix it I modified the helper file to clean up the url with a preg_replace there is probably a better way with regex but this was fast and worked out of the box for me.

helper.php about line 268

// cleanup the content received
            $repurl= array('<rss version="2.0"xmlns:atom="http://www.w3.org/2005/Atom">');
            $goodurl= array('<rss version="2.0"xmlns:atom="http://www.w3.org/2005/Atom">' =>'<rss version="2.0">');

            $fgcOutput = preg_replace("#(\n|\r|\s\s+|<!--(.*?)-->)#s", "", $fgcOutput);
            $fgcOutput = preg_replace("#(\t)#s", " ", $fgcOutput);

            $fgcOutput = str_replace($repurl, $goodurl, $fgcOutput);

Joomla 4 Support

Module installs and is functional on the backend, but on the front end, the page with the module results in a 500 error.

cache issues

I have 2 issues with the cacing of my feeds.

  1. they never update, I have to manually ftp in or use joomla cache delete to remove the old files before they will update.

  2. Joomla cache clear - the info - number of files and size - is always wrong size because the files iare in a sub directory.

By moving the cached files to mod_jw_srfr (not the cache feed subfolder) I was able to fix both of these issues.

php7.1 fatal error in helper.php

Fatal error: Only variables can be passed by reference in /modules/mod_jw_srfr/helper.php on line 303

Getting this error when trying to load the page using php 7.1b3 but it works fine in php 7.09

Code to set the Time Zone of the module

Even though there are multiple request to solve this issue, none of them worked for us, so we hacked modules/mod_jw_srfr/helper.php like this after line 49

date_default_timezone_set('America/Caracas');

Setting this value before this line has no effect.

Instead of setting the time- zone like this, it can be read from /configuration.php

cc @fevangelou

Segmentation fault (11) on Ubuntu 14.04, Apache 2

I'm getting a segmentation fault with simple-rss-feed-reader on a Joomla installation in my test server, that is working correctly in my developing server.

Can you hep me to figure out what I may be doing wrong? The cache directory is properly configured, but I only get a blank page when going to the main page and this error in the apache log:

[Tue Aug 11 12:03:26.700044 2015] [core:notice] [pid 1464] AH00051: child pid 5708 exit signal Segmentation fault (11), possible coredump in /etc/apache2

If I un-publish the module everything works again

This is the server information

PHP Version 5.5.9-1ubuntu4.11
PHP Built On Linux 3.16.0-45-generic #60~14.04.1-Ubuntu SMP Fri Jul 24 21:16:23 UTC 2015 x86_64
Database Version 5.5.44-0ubuntu0.14.04.1
Database Collation latin1_swedish_ci
PHP Version 5.5.9-1ubuntu4.11
Web Server Apache/2.4.7 (Ubuntu)
WebServer to PHP Interface apache2handler
Joomla! Version Joomla! 3.4.1 Stable [ Ember ] 21-March-2015 20:30 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.