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.
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 » Wed May 01, 2019 9:41 am

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: 16162
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

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

Post by david63 » Wed May 01, 2019 9:50 am

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!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

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 » Wed May 01, 2019 10:00 am

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: 1739
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 » Wed May 01, 2019 10:52 am

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
Scorpy
Registered User
Posts: 16
Joined: Wed May 01, 2019 11:58 am
Contact:

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

Post by Scorpy » Wed May 01, 2019 12:04 pm

zhanisgriiva wrote:
Wed May 01, 2019 9:41 am
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?
Same here. Please help.

User avatar
</Solidjeuh>
Registered User
Posts: 1605
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> » Wed May 01, 2019 12:57 pm

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
Register a free account & Play!!
~~~ https://www.solidjeuh.be ~~~
Have a secret? --> https://www.tellyoursecrets.eu

User avatar
Scorpy
Registered User
Posts: 16
Joined: Wed May 01, 2019 11:58 am
Contact:

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

Post by Scorpy » Wed May 01, 2019 1:27 pm

david63 wrote:
Wed May 01, 2019 9:50 am
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?
[01-May-2019 00:52:00 UTC] PHP Fatal error: Uncaught Error: Call to a member function trigger_event() on null in /home/trkeljan/public_html/includes/mcp/mcp_main.php:444
Stack trace:
#0 /home/trkeljan/public_html/includes/mcp/mcp_main.php(83): change_topic_type('make_global', Array)
#1 /home/trkeljan/public_html/includes/functions_module.php(676): mcp_main->main('main', 'quickmod')
#2 /home/trkeljan/public_html/includes/functions_module.php(998): p_master->load_active('quickmod')
#3 /home/trkeljan/public_html/mcp.php(191): p_master->load('mcp', 'mcp_main', 'quickmod')
#4 {main}
thrown in /home/trkeljan/public_html/includes/mcp/mcp_main.php on line 444
[01-May-2019 00:52:57 UTC] PHP Fatal error: Uncaught Error: Call to a member function trigger_event() on null in /home/trkeljan/public_html/includes/mcp/mcp_main.php:444
Stack trace:
#0 /home/trkeljan/public_html/includes/mcp/mcp_main.php(83): change_topic_type('make_global', Array)
#1 /home/trkeljan/public_html/includes/functions_module.php(676): mcp_main->main('main', 'forum_view')
#2 /home/trkeljan/public_html/mcp.php(312): p_master->load_active()
#3 {main}
thrown in /home/trkeljan/public_html/includes/mcp/mcp_main.php on line 444
[01-May-2019 00:56:41 UTC] PHP Fatal error: Uncaught Error: Call to a member function trigger_event() on null in /home/trkeljan/public_html/includes/mcp/mcp_main.php:444
Stack trace:
#0 /home/trkeljan/public_html/includes/mcp/mcp_main.php(83): change_topic_type('make_global', Array)
#1 /home/trkeljan/public_html/includes/functions_module.php(676): mcp_main->main('main', 'forum_view')
#2 /home/trkeljan/public_html/mcp.php(312): p_master->load_active()
#3 {main}
thrown in /home/trkeljan/public_html/includes/mcp/mcp_main.php on line 444

User avatar
JimA
Community Team Leader
Community Team Leader
Posts: 7607
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 » 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.
Image Jim Mossing Holsteyn - 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: 1605
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> » Wed May 01, 2019 1:34 pm

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...
Register a free account & Play!!
~~~ https://www.solidjeuh.be ~~~
Have a secret? --> https://www.tellyoursecrets.eu

User avatar
Scorpy
Registered User
Posts: 16
Joined: Wed May 01, 2019 11:58 am
Contact:

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

Post by Scorpy » Wed May 01, 2019 1:37 pm

JimA wrote:
Wed May 01, 2019 1:30 pm
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 would but I do not know how to do it. Could you please explain?

User avatar
mrgoldy
Jr. Extension Validator
Posts: 1047
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs

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

Post by mrgoldy » Wed May 01, 2019 1:56 pm

phpBB Studio / ''Proud member of the Studio"

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 » Wed May 01, 2019 2:45 pm

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
Jr. Extension Validator
Posts: 1047
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs

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

Post by mrgoldy » 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;
phpBB Studio / ''Proud member of the Studio"

User avatar
Scorpy
Registered User
Posts: 16
Joined: Wed May 01, 2019 11:58 am
Contact:

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

Post by Scorpy » Wed May 01, 2019 3:02 pm

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).
It works! Well done. Thank you very much. :)

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 » Wed May 01, 2019 3:03 pm

Yes, worked for me as well, thanks.

Post Reply

Return to “[3.2.x] Support Forum”