Hey
when i opend the feed.php i will get an error:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; FeedHtmlField has a deprecated constructor in /****/include/feedcreator.class.php on line 275
(and more: FeedDate, RSSCreator091 .......)
and:
Warning: Cannot modify header information - headers already sent by (output started at .... 645 and 646.
Piwigo 2.8.3
PHP: 7.0.10-nmm1
Offline
Hello
thx for reporting
just set PHP to not display Deprecated msg and Notices
Offline
Hello,
are there any intentions to solve RSS feeds issue in PHP 7:
"This page contains the following errors:
error on line 2 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error."
The same issue is in Piwigo 2.9.0beta1 as well.
Offline
manually fixed ... ("just set PHP to not display Deprecated msg and Notices" <- it doesn't help the Responsible programmer if any user hide deprecated msg/notices => nobody realized that the rss-feed isn't php7-ready ...)
a new feedcreator.class.php from <http://feedcreator.org/> don't resolve the problem. Forget it!
to fixed the deprecated Message:
open include/feedcreator.class.php
Find the line ( ... FeedHtmlField has a deprecated constructor in /****/include/feedcreator.class.php on line 275 )
275 = class FeedHtmlField {
Finde the function with same name (291: function FeedHtmlField($parFieldContent) { )
Replace ["function NAME" (function FeedHtmlField) by public function __construct
=> don't change the content of ( ) - only replace function NAME !
=> do this with every deprecated line ...
=> Save
After this: make a copy of this file! (in the next Piwig-Version no fix? reactivate your copy)
Offline
not fixed in 2.9 :(
Offline
WuppiGER wrote:
not fixed in 2.9 :(
I just open a bug in piwigo tracker about this issue.
[Github] Piwigo issue #678
Offline
May be ;) this forked version could solve (y)our issue!
https://github.com/flack/UniversalFeedCreator
Offline