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

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
zhanisgriiva
Registered User
Posts: 3
Joined: Wed May 01, 2019 9:34 am

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

Post 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?
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

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

Post 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?
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
zhanisgriiva
Registered User
Posts: 3
Joined: Wed May 01, 2019 9:34 am

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

Post 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')
Holger
Registered User
Posts: 1883
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

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

Post 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)
User avatar
</Solidjeuh>
Registered User
Posts: 1788
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

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

Post 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
User avatar
JimA
Former Team Member
Posts: 7833
Joined: Thu Jul 31, 2008 5:54 am
Location: The Netherlands
Name: Jim Mossing Holsteyn
Contact:

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

Post 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.
Jim Mossing Holsteyn - Former Community Team Leader
Knowledge Base | Documentation | Board rules

If you're having any questions about the rules/customs of this website, feel free to drop me a PM.
User avatar
</Solidjeuh>
Registered User
Posts: 1788
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

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

Post 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...
User avatar
mrgoldy
Former Team Member
Posts: 1394
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs
Contact:

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

Post by mrgoldy »

phpBB Studio / Member of the Studio

Contributing: You can do it too! Including testing Pull Requests (PR).
phpBB Development and Testing made easy.
nncuong
Registered User
Posts: 2
Joined: Sun Jun 07, 2009 11:46 pm

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

Post 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)));
User avatar
mrgoldy
Former Team Member
Posts: 1394
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs
Contact:

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

Post 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;
phpBB Studio / Member of the Studio

Contributing: You can do it too! Including testing Pull Requests (PR).
phpBB Development and Testing made easy.
zhanisgriiva
Registered User
Posts: 3
Joined: Wed May 01, 2019 9:34 am

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

Post by zhanisgriiva »

Yes, worked for me as well, thanks.
nncuong
Registered User
Posts: 2
Joined: Sun Jun 07, 2009 11:46 pm

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

Post 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.
Holger
Registered User
Posts: 1883
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

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

Post by Holger »

Works, thank you!
Lady_G
Registered User
Posts: 272
Joined: Fri Jun 08, 2012 12:38 pm
Location: US

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

Post by Lady_G »

I confirm the bug and the fix, thank you!
casualmind
Registered User
Posts: 33
Joined: Wed Apr 03, 2019 5:02 am

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

Post by casualmind »

It happens to me.

But fixed, thank you!
Post Reply

Return to “[3.2.x] Support Forum”