Posts merging

Undefined index: post_created - Posts merging

Undefined index: post_created

by wads24 » Fri Jan 05, 2024 4:29 pm

Hello PHPBB community,

I'm encountering a specific error only on one forum, viewforum.php?f=78. The error message is as follows:

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/ext/rxu/postsmerging/event/listener.php on line 365: Undefined index: post_created
[phpBB Debug] PHP Notice: in file [ROOT]/ext/rxu/postsmerging/event/listener.php on line 366: Undefined index: post_created
I've searched the forums, but I haven't found anyone else experiencing this issue. It's quite peculiar that I'm encountering it only on this particular forum.

I would greatly appreciate your help and insights in resolving this problem. Thank you in advance for your reply.

Below are the lines of code from 364 to 369 for reference:

Code: Select all

/**
 * Modify sql queries to select post creation time
 *
 * @param \phpbb\event\data    $event    Event object
 * @param string            $eventname    Name of the event
 */
 
Thanks in advance for a reply.
User avatar
wads24
Registered User
Posts: 685
Joined: Fri Jun 10, 2005 4:44 am
Name: James

Re: Undefined index: post_created

by rxu » Sat Jan 06, 2024 7:10 am

It seems you're using some development version of the extension from Github repo on your production board, like 3.0.0-dev. This is not recommended.
Also it's unclear what exact version of code is that. The lines 364-369 you posted above are just PHP comment which is never executed, so the actually used listener.php code seems to be different.
Could you post the related code of /ext/rxu/postsmerging/event/listener.php from your server?
Also the full error backtrace would be good to have too.
rxu
Extensions Development Team
Posts: 4018
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation