Error 500 occurs

Website URL

https://sebul.sarang.net/BB/

Error Message

HTTP ERROR 500

Other Information

https://sebul.sarang.net/BB/ucp.php?i=181 works in English.

But.
https://sebul.sarang.net/BB/ucp.php?i=179 and change My language to 한국어 and click submit button and
https://sebul.sarang.net/BB/ucp.php?i=181 then Error 500 occurs.

https://sebul.sarang.net/BB/ucp.php?i=179 and change My language to British English and click 제출 button and
https://sebul.sarang.net/BB/ucp.php?i=181 then it works.

To test please register. Registration is easy. There is no mail address verification.
Or, you can test with test ID. Username:tester, Password: tester

Where can I see server error log files?

You cannot see the server error log files, but you can set Display Errors to On so that they appear in your website:

You may also need to change some options in phpBB to activate their debug mode:
https://www.phpbb.com/support/docs/en/3.3/kb/article/enabling-debug-mode/

6 Likes

Website URL

(please specify the URL of the site on which you are experiencing the problem)
https://sebul.sarang.net/BB/

Error Message

(please share the FULL error message you see, if applicable)
General Error
Illegal use of $_SERVER. You must use the request class to access input data. Found in /var/www/errors/override.php on line 56. This error message was generated by deactivated_super_global.

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/phpbb/request/deactivated_super_global.php
LINE: 67
CALL: trigger_error()

FILE: [ROOT]/phpbb/request/deactivated_super_global.php
LINE: 87
CALL: phpbb\request\deactivated_super_global->error()

FILE: /var/www/errors/override.php
LINE: 56
CALL: phpbb\request\deactivated_super_global->offsetGet()

FILE: [ROOT]/includes/acp/acp_php_info.php
LINE: 39
CALL: phpinfo()

FILE: [ROOT]/includes/functions_module.php
LINE: 676
CALL: acp_php_info->main()

FILE: [ROOT]/adm/index.php
LINE: 81
CALL: p_master->load_active()

Other Information

(other information and details relevant to your question)
please refer
https://www.phpbb.com/community/viewtopic.php?t=2652157

Hmm, this is interesting.

The /var/www/errors/override.php file is PHP code that we inject into every request. Some commonly used PHP functions are disabled on our hosting, so we inject our own implementations or stubs to allow websites to use those functions even though the “real” version is not enabled.

However, our overrides use superglobals, which phpBB doesn’t like.

I haven’t seen the code so I don’t know if our code can easily be updated to remove this dependency. But this guide says that phpBB has a setting core.disable_super_globals that can be set to false to remove this check:

Other post about this: phpBB • deactivated_super_global screws up my website

The reply on phpBB’s forum says that it’s an open_basedir restriction, but I see nothing to suggest that this is related.

5 Likes

Website URL

sebul.sarang.net/BB

Error Message

[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/filesystem/filesystem.php on line 835: is_link(): open_basedir restriction in effect. File(/home) is not within the allowed path(s): (/php_sessions:/tmp:…:/var/www/errors:/usr/share/pear:/home/vol13_2/freecluster.eu/fceu_18338360/sebul.sarang.net/htdocs)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/filesystem/filesystem.php on line 872: is_dir(): open_basedir restriction in effect. File(/home/) is not within the allowed path(s): (/php_sessions:/tmp:…:/var/www/errors:/usr/share/pear:/home/vol13_2/freecluster.eu/fceu_18338360/sebul.sarang.net/htdocs)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/filesystem/filesystem.php on line 877: is_file(): open_basedir restriction in effect. File(/home) is not within the allowed path(s): (/php_sessions:/tmp:…:/var/www/errors:/usr/share/pear:/home/vol13_2/freecluster.eu/fceu_18338360/sebul.sarang.net/htdocs)

Other Information

(other information and details relevant to your question)

I had a look at the source code, and I think I see what causes the error. However, I’m not sure what the exact impact of it is.

This seems like a debug line. And debug mode tends to be noisy and report things that are not breaking errors too.

If you disable debug mode and then try to use your website, do you experience any problems?

5 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.