Page 1 of 1

3.2.6 - AJAX ERROR, Internal Server Error when trying to change Announcement topic to a Standard.

Posted: Wed May 01, 2019 9:41 am
by zhanisgriiva
Hi,
I just upgraded to phpBB 3.2.6 and tried to change Announcement topic to a Standard by clicking the toolbar at the bottom of the topic, but got the "AJAX ERROR, Internal Server Error". I Cleaned cache via APC and manually, but didn't help. Is there way to see what's the cause of the error and a way to fix it?

Re: 3.2.6 - AJAX ERROR, Internal Server Error when trying to change Announcement topic to a Standard.

Posted: Wed May 01, 2019 9:50 am
by david63
zhanisgriiva wrote:
Wed May 01, 2019 9:41 am
Is there way to see what's the cause of the error
Do your server error logs give any indication?

Re: 3.2.6 - AJAX ERROR, Internal Server Error when trying to change Announcement topic to a Standard.

Posted: Wed May 01, 2019 10:00 am
by zhanisgriiva
Looks like this:

PHP Fatal error: Uncaught Error: Call to a member function trigger_event() on null in forum/includes/mcp/mcp_main.php:444
#0 forum/includes/mcp/mcp_main.php(83): change_topic_type('make_normal', Array)
#1 forum/includes/functions_module.php(676): mcp_main->main('main', 'quickmod')
#2 forum/includes/functions_module.php(998): p_master->load_active('quickmod')
#3 forum/mcp.php(191): p_master->load('mcp', 'mcp_main', 'quickmod')

Re: 3.2.6 - AJAX ERROR, Internal Server Error when trying to change Announcement topic to a Standard.

Posted: Wed May 01, 2019 10:52 am
by Holger
Maybe similar, so I post it here: when trying to change from normal to sticky I get an AJAX error.
AJAX ERROR
Something went wrong.
(or similar)

Re: 3.2.6 - AJAX ERROR, Internal Server Error when trying to change Announcement topic to a Standard.

Posted: Wed May 01, 2019 12:57 pm
by </Solidjeuh>
Yeps, I have the same problem. When changing a topic to an announcement.

Code: Select all

[Wed May 01 14:54:41.883266 2019] [fcgid:warn] [pid 23027:tid 140414529341184] [client 2a02:a03f:54ed:c600:69e1:16e9:3f07:5c54:48780] mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: Call to a member function trigger_event() on null in /var/www/vhosts/solidjeuh.be/httpdocs/includes/mcp/mcp_main.php:444, referer: https://www.solidjeuh.be/viewtopic.php?f=4&t=26411
[Wed May 01 14:54:41.883394 2019] [fcgid:warn] [pid 23027:tid 140414529341184] [client 2a02:a03f:54ed:c600:69e1:16e9:3f07:5c54:48780] mod_fcgid: stderr: Stack trace:, referer: https://www.solidjeuh.be/viewtopic.php?f=4&t=26411
[Wed May 01 14:54:41.883413 2019] [fcgid:warn] [pid 23027:tid 140414529341184] [client 2a02:a03f:54ed:c600:69e1:16e9:3f07:5c54:48780] mod_fcgid: stderr: #0 /var/www/vhosts/solidjeuh.be/httpdocs/includes/mcp/mcp_main.php(83): change_topic_type('make_announce', Array), referer: https://www.solidjeuh.be/viewtopic.php?f=4&t=26411
[Wed May 01 14:54:41.883429 2019] [fcgid:warn] [pid 23027:tid 140414529341184] [client 2a02:a03f:54ed:c600:69e1:16e9:3f07:5c54:48780] mod_fcgid: stderr: #1 /var/www/vhosts/solidjeuh.be/httpdocs/includes/functions_module.php(676): mcp_main->main('main', 'quickmod'), referer: https://www.solidjeuh.be/viewtopic.php?f=4&t=26411
[Wed May 01 14:54:41.883451 2019] [fcgid:warn] [pid 23027:tid 140414529341184] [client 2a02:a03f:54ed:c600:69e1:16e9:3f07:5c54:48780] mod_fcgid: stderr: #2 /var/www/vhosts/solidjeuh.be/httpdocs/includes/functions_module.php(998): p_master->load_active('quickmod'), referer: https://www.solidjeuh.be/viewtopic.php?f=4&t=26411
[Wed May 01 14:54:41.883466 2019] [fcgid:warn] [pid 23027:tid 140414529341184] [client 2a02:a03f:54ed:c600:69e1:16e9:3f07:5c54:48780] mod_fcgid: stderr: #3 /var/www/vhosts/solidjeuh.be/httpdocs/mcp.php(191): p_master->load('mcp', 'mcp_main', 'quickmod'), referer: https://www.solidjeuh.be/viewtopic.php?f=4&t=26411
[Wed May 01 14:54:41.883485 2019] [fcgid:warn] [pid 23027:tid 140414529341184] [client 2a02:a03f:54ed:c600:69e1:16e9:3f07:5c54:48780] mod_fcgid: stderr: #4 {main}, referer: https://www.solidjeuh.be/viewtopic.php?f=4&t=26411
[Wed May 01 14:54:41.883506 2019] [fcgid:warn] [pid 23027:tid 140414529341184] [client 2a02:a03f:54ed:c600:69e1:16e9:3f07:5c54:48780] mod_fcgid: stderr:   thrown in /var/www/vhosts/solidjeuh.be/httpdocs/includes/mcp/mcp_main.php on line 444, referer: https://www.solidjeuh.be/viewtopic.php?f=4&t=26411
Same on my test board with no extensions

Re: 3.2.6 - AJAX ERROR, Internal Server Error when trying to change Announcement topic to a Standard.

Posted: Wed May 01, 2019 1:30 pm
by JimA
I can confirm that the same happens here on phpBB.com as well.
Could one of you please report this to the Bug Tracker? The development team will look at it very shortly but needs all possible information.

Re: 3.2.6 - AJAX ERROR, Internal Server Error when trying to change Announcement topic to a Standard.

Posted: Wed May 01, 2019 1:34 pm
by </Solidjeuh>
JimA wrote:
Wed May 01, 2019 1:30 pm
I can confirm that the same happens here on phpBB.com as well.
Could one of you please report this to the Bug Tracker? The development team will look at it very shortly but needs all possible information.
I cannot login into the bug tracker since my nickname changed here a few months ago. Already send a PM to Marshalrusty. Hope it get fixed soon...

Re: 3.2.6 - AJAX ERROR, Internal Server Error when trying to change Announcement topic to a Standard.

Posted: Wed May 01, 2019 1:56 pm
by mrgoldy

Re: 3.2.6 - AJAX ERROR, Internal Server Error when trying to change Announcement topic to a Standard.

Posted: Wed May 01, 2019 2:45 pm
by nncuong
I disable trigger_event in include/mcp/mcp_main.php. It's ok.

Code: Select all

line 444
//		extract($phpbb_dispatcher->trigger_event('core.mcp_change_topic_type_before', compact($vars)));

Code: Select all

line 493
//		extract($phpbb_dispatcher->trigger_event('core.mcp_change_topic_type_after', compact($vars)));

Re: 3.2.6 - AJAX ERROR, Internal Server Error when trying to change Announcement topic to a Standard.

Posted: Wed May 01, 2019 2:51 pm
by mrgoldy
Or you could just add $phpbb_dispatcher on the global line at the start of that function (line 381).
So it would be:

Code: Select all

function change_topic_type($action, $topic_ids)
{	
	global $user, $db, $request, $phpbb_log, $phpbb_dispatcher;

Re: 3.2.6 - AJAX ERROR, Internal Server Error when trying to change Announcement topic to a Standard.

Posted: Wed May 01, 2019 3:03 pm
by zhanisgriiva
Yes, worked for me as well, thanks.

Re: 3.2.6 - AJAX ERROR, Internal Server Error when trying to change Announcement topic to a Standard.

Posted: Wed May 01, 2019 3:36 pm
by nncuong
mrgoldy wrote:
Wed May 01, 2019 2:51 pm
Or you could just add $phpbb_dispatcher on the global line at the start of that function (line 381).
So it would be:

Code: Select all

function change_topic_type($action, $topic_ids)
{	
	global $user, $db, $request, $phpbb_log, $phpbb_dispatcher;
Yes, done.

Re: 3.2.6 - AJAX ERROR, Internal Server Error when trying to change Announcement topic to a Standard.

Posted: Wed May 01, 2019 7:30 pm
by Holger
Works, thank you!

Re: 3.2.6 - AJAX ERROR, Internal Server Error when trying to change Announcement topic to a Standard.

Posted: Thu May 02, 2019 12:03 am
by Lady_G
I confirm the bug and the fix, thank you!

Re: 3.2.6 - AJAX ERROR, Internal Server Error when trying to change Announcement topic to a Standard.

Posted: Thu May 02, 2019 5:19 am
by casualmind
It happens to me.

But fixed, thank you!