PHP 7 RSS error #625

Closed
opened 2026-10-05 00:07:58 +02:00 by adam · 1 comment
Owner

Hello,

I have piwigo 2.9.0 and when I go on feed.php page, I have this error:

Erreur d’analyse XML : données incompréhensibles après l’élément de document
Emplacement : https://url/feed.php?feed=123456789
Numéro de ligne 2, Colonne 1 :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 /path/include/feedcreator.class.php on line 275

^

The solution is given on the forum :

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

Please include this fix in the offical release.

Regards
Yann

Hello, I have piwigo 2.9.0 and when I go on feed.php page, I have this error: > Erreur d’analyse XML : données incompréhensibles après l’élément de document > Emplacement : https://url/feed.php?feed=123456789 > Numéro de ligne 2, Colonne 1 :<b>Deprecated</b>: Methods with the same name as their class will not be constructors in a future version of PHP; FeedHtmlField has a deprecated constructor in <b>/path/include/feedcreator.class.php</b> on line <b>275</b><br /> > ^ The solution is given [on the forum](http://piwigo.org/forum/viewtopic.php?pid=166362#p166362) : ``` 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 ``` Please include this fix in the offical release. Regards Yann <!-- github-sync-id:228234211 -->
adam closed this issue 2026-10-05 00:07:58 +02:00
Author
Owner

@MaximeBOURMAUD please check this

@MaximeBOURMAUD please check this <!-- github-comment-id:328516241 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#625