News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

HTTP ERROR 500 when opening admin

Started by ozbob, January 23, 2020, 05:15:25 PM

Previous topic - Next topic

ozbob

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

YogiBear

Hi Bob, can you say which php version your host is running on the server.
SMF v2.1.3  Mods : Snow & Garland v1.4,  PHP  v.7.4.33

Illori


ozbob

Quote from: YogiBear on January 23, 2020, 05:24:28 PM
Hi Bob, can you say which php version your host is running on the server.

Current PHP version
native (5.6)

ozbob

Quote from: Illori on January 23, 2020, 05:27:32 PM
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.

tumbleweed

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
G.C. SOLUTIONS - Hosting Quality Sites Since 2006. Experience Your Forums On A Whole New Level
Elastic Sites Stress Fast CPU/Ram Upgrades- More Info Here.
Reviews By SMF Forum Owners - Read Our Rev

tumbleweed

I had updated the site to PHP 7.0 which reflects the difference between OP and mine.
G.C. SOLUTIONS - Hosting Quality Sites Since 2006. Experience Your Forums On A Whole New Level
Elastic Sites Stress Fast CPU/Ram Upgrades- More Info Here.
Reviews By SMF Forum Owners - Read Our Rev

ozbob

"  [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?

ozbob

#8
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.

tumbleweed

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?
G.C. SOLUTIONS - Hosting Quality Sites Since 2006. Experience Your Forums On A Whole New Level
Elastic Sites Stress Fast CPU/Ram Upgrades- More Info Here.
Reviews By SMF Forum Owners - Read Our Rev

Kindred

per the error
$txt['page_management']
is not defined. 
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sir Osis of Liver

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.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Kindred

but the error, as listed is merely a missing txt string.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

ozbob

Quote from: Sir Osis of Liver on January 24, 2020, 12:04:08 PM
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?

Kindred

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...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

ozbob

Yes, more than likely.  Removed the code from Admin.php,  errors gone.  PHP now 7.0.

Thanks everyone.




Sir Osis of Liver

Quote from: Kindred on January 24, 2020, 12:49:58 PM
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.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Advertisement: