Auto Groups

Undefined array key "poster_id" - Auto Groups

Undefined array key "poster_id"

by Tread » Thu May 20, 2021 2:26 pm

[ROOT]/ext/phpbb/autogroups/event/listener.php on line 104: Undefined array key "poster_id"

phpbb 3.3.4 on php 8 if you did not know about the debug it only shows on confirmation of account created page when you join up.
Tread
Registered User
Posts: 110
Joined: Thu Nov 14, 2019 9:52 pm

Re: Undefined array key "poster_id"

by MattF » Thu May 20, 2021 3:31 pm

Unable to reproduce. Do you have other extensions involved with new user registration? Displaying welcome messages or PMs?
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 6104
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman

Re: Undefined array key "poster_id"

by Tread » Thu May 20, 2021 5:05 pm

Only Notify Admin on Registration ext by dmzx.
Tread
Registered User
Posts: 110
Joined: Thu Nov 14, 2019 9:52 pm

Re: Undefined array key "poster_id"

by rxu » Fri May 21, 2021 10:33 am

What is the exact address of the page which gives that error?
Also, is there any error details (stack trace etc) in webserver's error log if any?
rxu
Extensions Development Team
Posts: 4101
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: Undefined array key "poster_id"

by Tread » Fri May 21, 2021 5:02 pm

/ucp.php?mode=register

Image
Tread
Registered User
Posts: 110
Joined: Thu Nov 14, 2019 9:52 pm

Re: Undefined array key "poster_id"

by MattF » Fri May 21, 2021 5:18 pm

You must have something else interacting going on, because something is creating a new anonymous post when you register, which is not normal behavior for a phpBB board.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 6104
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman

Re: Undefined array key "poster_id"

by Miri4ever » Fri Jan 06, 2023 1:14 pm

Code: Select all

PHP Warning: in file [ROOT]/ext/phpbb/autogroups/event/listener.php on line 104: Undefined array key "poster_id"
I can reproduce this error if using the Board to Mass Send out mails, like for our newsletter.
Homepage: Terra Oceanica

Extension Developments:
PHPBB Games Solitaire, MChat Poker, MChat Black Jack, MChat Cards, MChat Trivia
PHPBB Special Effects, Mousepointers, X-Mas Themes and Designs for PBWoW Style.
Supported work: (**New Updated** UCP Sidebar), Tables, Hide, PBWow3 Style
User avatar
Miri4ever
Registered User
Posts: 637
Joined: Sat Mar 07, 2015 11:18 am

Re: Undefined array key "poster_id"

by MattF » Fri Jan 06, 2023 4:08 pm

Miri4ever wrote:

Code: Select all

PHP Warning: in file [ROOT]/ext/phpbb/autogroups/event/listener.php on line 104: Undefined array key "poster_id"
I can reproduce this error if using the Board to Mass Send out mails, like for our newsletter.
Whatever extension you are using for the mass email needs to set a poster_id when using the submit post function, even if it is just anonymous.

You can also try this https://github.com/phpbb-extensions/autogroups/pull/171
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 6104
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman