Piwigo.org

You are not logged in. (Register / Login)

Announcement

#1 2016-12-21 14:58:31

WuppiGER
Member
Location: Germany
Registered: 2016-05-31
Posts: 33
Website

PHP7: Feedcreator - deprecated

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

 

#2 2016-12-22 09:42:06

flop25
Piwigo Team
Registered: 2006-07-06
Posts: 6448
Website

Re: PHP7: Feedcreator - deprecated

Hello
thx for reporting
just set PHP to not display Deprecated msg and Notices


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2016-12-30 23:24:17

Matjaz_65
Member
Registered: 2016-12-29
Posts: 3

Re: PHP7: Feedcreator - deprecated

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

 

#4 2017-01-10 14:47:02

WuppiGER
Member
Location: Germany
Registered: 2016-05-31
Posts: 33
Website

Re: PHP7: Feedcreator - deprecated

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

 

#5 2017-05-05 10:22:08

WuppiGER
Member
Location: Germany
Registered: 2016-05-31
Posts: 33
Website

Re: PHP7: Feedcreator - deprecated

not fixed in 2.9 :(

Offline

 

#6 2017-05-12 11:21:28

Youp3
Member
Registered: 2014-03-10
Posts: 1

Re: PHP7: Feedcreator - deprecated

WuppiGER wrote:

not fixed in 2.9 :(

I just open a bug in piwigo tracker about this issue.
[Github] Piwigo issue #678

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2017 · Contact