Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: ozbob - tammikuu 23, 2020, 05:15:25 IP

Otsikko: HTTP ERROR 500 when opening admin
Kirjoitti: ozbob - tammikuu 23, 2020, 05:15:25 IP
Hello,

I have started getting a 500 error when I log in to admin and then try to open admin  ie.  https://railbotforum.org/mbs/index.php?action=admin

Correct password is entered and then " railbotforum.org is currently unable to handle this request. HTTP ERROR 500 "

Any idea as to what might be wrong please?

Running SMF 2.0.17

Thanks
Bob
Otsikko: Re: HTTP ERROR 500 when opening admin
Kirjoitti: YogiBear - tammikuu 23, 2020, 05:24:28 IP
Hi Bob, can you say which php version your host is running on the server.
Otsikko: Re: HTTP ERROR 500 when opening admin
Kirjoitti: Illori - tammikuu 23, 2020, 05:27:32 IP
anything in the server error log?
Otsikko: Re: HTTP ERROR 500 when opening admin
Kirjoitti: ozbob - tammikuu 23, 2020, 05:31:45 IP
Lainaus käyttäjältä: YogiBear - tammikuu 23, 2020, 05:24:28 IP
Hi Bob, can you say which php version your host is running on the server.

Current PHP version
native (5.6)
Otsikko: Re: HTTP ERROR 500 when opening admin
Kirjoitti: ozbob - tammikuu 23, 2020, 05:35:48 IP
Lainaus käyttäjältä: Illori - tammikuu 23, 2020, 05:27:32 IP
anything in the server error log?

No, not related to the admin page.

Last entry in error log is

' [Thu Jan 23 01:42:38.307954 2020] [authz_core:error] [pid 451758:tid 47267583616768] [client 66.45.232.28:13571] AH01630: client denied by server configuration: /home/railbotf/public_html/rss/error_log, referer: https://railbotforum.org/rss/rss2html.php?XMLFILE=http://translink.com.au/travel-information/services-and-timetables/ferries/rss&TEMPLATE=https://railbotforum.org/rss/ferry-template.html '

Which is not related.

Thanks.
Otsikko: Re: HTTP ERROR 500 when opening admin
Kirjoitti: tumbleweed - tammikuu 23, 2020, 05:35:49 IP
Just helping out here.

PHP= 7.0

Error on site shows:
Call to undefined function BBCTwitter_Who()

Error log shows
[24-Jan-2020 08:30:57 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:31:13 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:31:15 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:31:24 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:31:31 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:31:34 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:31:37 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:31:39 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:31:40 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:31:42 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:31:45 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:31:45 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:31:50 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:31:52 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:31:55 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:31:57 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:00 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:01 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:04 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:07 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:08 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:11 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:14 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:16 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:18 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:19 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:21 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:21 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:23 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:24 Australia/Brisbane] PHP Notice:  Undefined index: page_management in /home/railbotf/public_html/mbs/Sources/Admin.php on line 235
[24-Jan-2020 08:32:24 Australia/Brisbane] PHP Notice:  Undefined index: page_management_main in /home/railbotf/public_html/mbs/Sources/Admin.php on line 240
[24-Jan-2020 08:32:24 Australia/Brisbane] PHP Notice:  Undefined index: page_management_add in /home/railbotf/public_html/mbs/Sources/Admin.php on line 241
[24-Jan-2020 08:32:24 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:27 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:28 Australia/Brisbane] PHP Notice:  Undefined index: page_management in /home/railbotf/public_html/mbs/Sources/Admin.php on line 235
[24-Jan-2020 08:32:28 Australia/Brisbane] PHP Notice:  Undefined index: page_management_main in /home/railbotf/public_html/mbs/Sources/Admin.php on line 240
[24-Jan-2020 08:32:28 Australia/Brisbane] PHP Notice:  Undefined index: page_management_add in /home/railbotf/public_html/mbs/Sources/Admin.php on line 241
[24-Jan-2020 08:32:28 Australia/Brisbane] PHP Fatal error:  Call to undefined function BBCTwitter_Who() in /home/railbotf/public_html/mbs/Sources/Who.php on line 802
[24-Jan-2020 08:32:30 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:31 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:33 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:40 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:41 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:43 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:49 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:49 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:50 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:51 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:53 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:58 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:32:58 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:33:01 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:33:06 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:33:06 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:33:08 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
[24-Jan-2020 08:33:13 Australia/Brisbane] PHP Strict Standards:  Only variables should be passed by reference in /home/railbotf/public_html/mbs/index.php on line 448
Otsikko: Re: HTTP ERROR 500 when opening admin
Kirjoitti: tumbleweed - tammikuu 23, 2020, 05:39:39 IP
I had updated the site to PHP 7.0 which reflects the difference between OP and mine.
Otsikko: Re: HTTP ERROR 500 when opening admin
Kirjoitti: ozbob - tammikuu 23, 2020, 05:41:06 IP
"  [24-Jan-2020 08:32:24 Australia/Brisbane] PHP Notice:  Undefined index: page_management in /home/railbotf/public_html/mbs/Sources/Admin.php on line 235
[24-Jan-2020 08:32:24 Australia/Brisbane] PHP Notice:  Undefined index: page_management_main in /home/railbotf/public_html/mbs/Sources/Admin.php on line 240
[24-Jan-2020 08:32:24 Australia/Brisbane] PHP Notice:  Undefined index: page_management_add in /home/railbotf/public_html/mbs/Sources/Admin.php on line 241 "

^ So this is the problem?
Otsikko: Re: HTTP ERROR 500 when opening admin
Kirjoitti: ozbob - tammikuu 23, 2020, 05:49:43 IP
I am back into admin thanks to tumbleweed.

Solved for now.

Call to undefined function BBCTwitter_Who()

Was an old mod.  Removed the call in Who.php "  PHP Fatal error:  Call to undefined function BBCTwitter_Who() in /home/railbotf/public_html/mbs/Sources/Who.php on line 802 "

All functioning fine.
Otsikko: Re: HTTP ERROR 500 when opening admin
Kirjoitti: tumbleweed - tammikuu 23, 2020, 06:01:12 IP
The code still throws error.
/** Page Manager next item **/
'pages' => array(
'label' => $txt['page_management'],
'file' => 'Pages.php',
'function' => 'Pages',
'icon' => 'logs.gif',
'subsections' => array(
'main' => array($txt['page_management_main']),
'add' => array($txt['page_management_add']),


Not sure what is causing the error?
Otsikko: Re: HTTP ERROR 500 when opening admin
Kirjoitti: Kindred - tammikuu 24, 2020, 08:31:49 AP
per the error
$txt['page_management']
is not defined. 
Otsikko: Re: HTTP ERROR 500 when opening admin
Kirjoitti: Sir Osis of Liver - tammikuu 24, 2020, 12:04:08 IP
That's from page management mod, it either didn't install correctly or didn't uninstall cleanly.  IIRC, it wasn't updated beyond 2.0 RC.

Otsikko: Re: HTTP ERROR 500 when opening admin
Kirjoitti: Kindred - tammikuu 24, 2020, 12:49:58 IP
but the error, as listed is merely a missing txt string.
Otsikko: Re: HTTP ERROR 500 when opening admin
Kirjoitti: ozbob - tammikuu 24, 2020, 01:15:20 IP
Lainaus käyttäjältä: Sir Osis of Liver - tammikuu 24, 2020, 12:04:08 IP
That's from page management mod, it either didn't install correctly or didn't uninstall cleanly.  IIRC, it wasn't updated beyond 2.0 RC.



Thanks,  I used that mod some time ago, uninstalled.  If I remove the code that should solve the error?
Otsikko: Re: HTTP ERROR 500 when opening admin
Kirjoitti: Kindred - tammikuu 24, 2020, 05:27:30 IP
well, if you uninstalled -- it looks like you ignored the errors during uninstall and it left code behind.
Yes, you can probably remove that code...   but it suggests that there may be other code left behind as well...
Otsikko: Re: HTTP ERROR 500 when opening admin
Kirjoitti: ozbob - tammikuu 24, 2020, 06:46:43 IP
Yes, more than likely.  Removed the code from Admin.php,  errors gone.  PHP now 7.0.

Thanks everyone.



Otsikko: Re: HTTP ERROR 500 when opening admin
Kirjoitti: Sir Osis of Liver - tammikuu 24, 2020, 08:46:01 IP
Lainaus käyttäjältä: Kindred - tammikuu 24, 2020, 12:49:58 IP
but the error, as listed is merely a missing txt string.

There has to be remnant code calling the $txt string, or it wouldn't throw an error.  If the code is removed, doesn't matter if $txt is there or not.