Internal Server Error when changing PHP version.

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
AdamF1972
Registered User
Posts: 3
Joined: Thu May 06, 2021 11:44 am

Internal Server Error when changing PHP version.

Post by AdamF1972 »

Support Request Template
What version of phpBB are you using? phpBB 3.3.3
What is your board's URL? https://coraliegardens.rocks
Who do you host your board with? Self hosted (MAMP Pro 6.3.2 on 10.13.6 MacOS)
How did you install your board? I used the download package from phpBB.com
What is the most recent action performed on your board? Update from a previous version of phpBB3
Is registration required to reproduce this issue? Yes
Do you have any MODs installed? No
Do you have any extensions installed? Yes
What version of phpBB3 did you update from? phpBB 3.3.2
What extensions do you have installed? No answer given
What styles do you currently have installed? prosilver default.
What language(s) is your board currently using? English Australian
Which database type/version are you using? MySQL 5
What is your level of experience? Comfortable with PHP and phpBB
What username can be used to view this issue? No answer given
What password can be used to view this issue? No answer given
What actions did you take (updating your board; installing a MOD, style or extension; etc.) prior to this problem becoming noticeable? No answer given
Please describe your problem. Hi there. I'm currently running phpBB 3.3.3 on MAMP Pro 6.3.2 with PHP 7.1.33.

If I try to change the version of PHP beyond 7.1.33 to anything else, I start getting server errors when I try to access the ACP. The issue then starts to affect logging into the board itself. I've tried various versions of PHP. I've also tried purging the cache etc. after upgrade.

Ideally, I am looking to upgrade PHP to either 7.4.15 or 8.0.1 or higher. Mainly for security.

There is nothing in particular showing in the server log and was wondering if there was anything that I had to change or tweak within phpBB to allow for different versions of PHP.

This issue has been rearing its head since I installed the site originally on 3.3.0 with MAMP 5.5 and an older version of Mac OS.

The issue has also been happening since before I added in any extensions.

Any help would be greatly appreciated.
Generated by SRT Generator
Last edited by HiFiKabin on Tue May 11, 2021 9:12 am, edited 1 time in total.
Reason: Moved to Custom Coding
AdamF1972
Registered User
Posts: 3
Joined: Thu May 06, 2021 11:44 am

Re: Internal Server Error when changing PHP version.

Post by AdamF1972 »

Hiya... I think I've solved my own issue in that the problem is related to how MAMP deals with PHP... not phpBB.

This issue can be considered closed... unless anyone knows how to fix this issue in MAMP for Mac OSX.

Cheers,

Adam.
User avatar
AlfredoRamos
Recognised Extension Developer
Posts: 1302
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo
Contact:

Re: Internal Server Error when changing PHP version.

Post by AlfredoRamos »

AdamF1972 wrote: Thu May 06, 2021 11:19 pm If I try to change the version of PHP beyond 7.1.33 to anything else, I start getting server errors when I try to access the ACP
Which errors?

If you get something like:

Code: Select all

PHP message: PHP Notice:  iconv(): Wrong charset, conversion from `utf-8' to `utf-16be' is not allowed in /srv/http/localhost/public_html/forum/vendor/patchwork/utf8/src/Patchwork/PHP/Shim/Iconv.php on line 175
Just enable the iconv PHP module.

Also note that every PHP version has its own configuration file, so you might need to modify the one that corresponds to the PHP version you are currently running, specially the PHP modules.
AdamF1972 wrote: Thu May 06, 2021 11:19 pm Any help would be greatly appreciated.
It's hard to help if you don't mention those error messages.
Some of my phpBB extensions:
:chart_with_upwards_trend: SEO Metadata | Image Markdown | :shield: hCaptcha
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user | Linux Boards :penguin:
AdamF1972
Registered User
Posts: 3
Joined: Thu May 06, 2021 11:44 am

Re: Internal Server Error when changing PHP version.

Post by AdamF1972 »

G'day AbaddonOrmuz,

Sorry, I just got the notification of this reply just now.

The error that I'm getting when I try any version of PHP other than 7.1.33 is...

2021-05-10_06-48-50.png

When I check the apache log, there's nothing being captured. The PHP log shows this error...

[10-May-2021 06:00:37 Australia/Perth] PHP Warning: Cannot modify header information - headers already sent by (output started at /Portal Website/vendor/symfony/http-foundation/Response.php:361) in /Portal Website/includes/functions.php on line 1909

Much appreciated.

Adam.
Post Reply

Return to “phpBB Custom Coding”