Git Product home page Git Product logo

universalfeedcreator's Issues

PHP warning: array given to htmlspecialchars()

Hi,
I am forwarding this issue from a DokuWiki user who noticed this warning:

PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in .../vendor/openpsa/universalfeedcreator/lib/Creator/AtomCreator10.php on line 113

I don't have any further information yet.

Greetings,
Lars

Use of undefined constant FEEDCREATOR_VERSION

Today I upgraded from 1.8.3.1 -> 1.8.4

I wonder what I've done wrong in my install.

2021/01/24 21:50:01 [error] 47739#102365: *4712 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant FEEDCREATOR_VERSION - assumed 'FEEDCREATOR_VERSION' (this will throw an Error in a future version of PHP) in /usr/local/share/UniversalFeedCreator/lib/Creator/FeedCreator.php on line 130PHP message: PHP Warning: Use of undefined constant FEEDCREATOR_VERSION - assumed 'FEEDCREATOR_VERSION' (this will throw an Error in a future version of PHP) in /usr/local/share/UniversalFeedCreator/lib/Creator/RSSCreator091.php on line 67" while reading response header from upstream, client: 137.74.173.20, server: www.freshports.org, request: "GET /backend/watch-list.php?id=[redacted]&format=rss0.91 HTTP/2.0", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "www.example.org"

No licence text provided

Composer.json says the library is available under GNU LGPL 2.1 or later, however the licence text is not included in the repository.

PHP 8.3

FYI, there are issues with PHP 8.3 - I'll post some of the errors here and I'll have a patch later.

<b>Deprecated</b>:  Creation of dynamic property RSSCreator091::$_timeout is deprecated in <b>/usr/local/share/UniversalFeedCreator/lib/Creator/FeedCreator.php</b> on line <b>238</b><br />

<b>Deprecated</b>:  Creation of dynamic property PIECreator01::$truncSize is deprecated in <b>/usr/local/share/UniversalFeedCreator/lib/Creator/PIECreator01.php</b> on line <b>29</b><br />

Deprecation error for html, js output format in php7.4

When I choose HTML as feed output, I get this deprecation error in php7.4:

'join(): Passing glue string after array is deprecated. Swap the parameters'

in: /var/www/html/vendor/openpsa/universalfeedcreator/lib/Creator/HTMLCreator.php
line 143:
$feed = "".join($feedArray, "\r\n");

(or another file for js type)

FeedDate timezone fail

Unfortunately class FeedDate and thus RSS Feed pubDate fail at date strings with time zones.

For example,

var_dump(new FeedDate('1970-01-01 00:00:00+0200'));

... outputs a unixtime of 0, whereas -7200 would be correct.

A workaround of course is to pass unixtime integers instead of date strings.

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.