Not Solved [How To?] PHP version update
#1
Not Solved
Hi,
I would like to update my PHP version - I currently have version 5.6.x - I would like to change to version 7.0.x or higher.
When I try to change to version 7.4.x all pages on the forum are blank and the options in ACP were not available - the ACP template displayed but there was no option to choose - all pages were blank.
When I changed it to 7.0.x - ACP worked fine but all forum pages were blank - does it require some reloading of MyBB cache or is there something else?
I checked it on localhost and all used plugins work correctly even on version 7.4.x - maybe I'm doing something wrong, how should I do it? 
My version of MyBB is 1.8.19
Reply
#2
Not Solved
probably relevant mysqli module is not loaded for php > 7

whatever version you select, for blank pages problems :
try looking at recent entries of server error log to trace the cause.

personally I'd prefer to use php 7.2.x so that most of plugins can work.
Reply
#3
Not Solved
Example logs:


mod_fcgid: stderr: Stack trace:
mod_fcgid: stderr: #0 /------/tasks.php(727): Page->output_nav_tabs(Array, 'scheduled_tasks')
mod_fcgid: stderr: #1 /------/index.php(821): require('/home/admin/dom...')
mod_fcgid: stderr: #2 {main}
mod_fcgid: stderr:   thrown in /-----/admin/styles/Whisper/style.php on line 283
mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: [] operator not supported for strings in /-----/admin/styles/Whisper/style.php:283



I tried to change this ACP theme to the default one, and here is the problem - it does not change, only the login page (default path /admin) to the one from the default ACP style and after logging in, there is still the Whisper - this theme does not change , although in the options I have selected that it should be the default ACP style and the login panel is changing. As if something forced the use of this theme (Whisper) even though it is changed to another in ACP
Reply
#4
Not Solved
try using below SQL queries & check if your style changes at admin panel
UPDATE `mybb_settings` SET `value` = 'default' WHERE `name` = 'cpstyle';
UPDATE `mybb_adminoptions` SET `cpstyle` = 'default';

[SQL queries quidance]
Reply
#5
Not Solved
ACP theme has changed to the default one and there is no more log information like Whisper etc. - after changing to PHP 7.2.x ACP works fine but all pages are still empty (<head> and empty <body> - nothing more does not generate)
Maybe some plugin is blocking? - I checked all on localhost and PHP 7.4.x and everything worked, but maybe one of them is blocking something)
Reply
#6
Not Solved
if you suspect plugins, move all plugins files & their folders to a temporary
folder
(eg. plugins_temp). if plugins were causing the problem then admin panel
should appear normal after moving them.

you can move back plugin files & folders few at a time ; simultaneously check
plugins section by refreshing the page to trace problematic plugin(s)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)