Recent Topics

1 Jan 18, 2024 08:26    

Ran code through easy coding standard (ECS):
https://github.com/easy-coding-standard/easy-coding-standard

which upgraded the b2evolution arrays to PHP 8 standards, etc.

Manually fixed the arrays in b2evo installation file(s) to correspond to PHP 8 -- as ECS failed to do it.

I tried Rector https://github.com/rectorphp/rector automatic upgrade to PHP 8 but it left b2evolution 7.2.5 in an unstable state... always.
Tried to call the attention of the Rector developer by opening an issue but the developer was not interested.

Accordingly,

Implemented dirty hacks to rid of fatal errors the front display of blogs, including the Dashboard Contents and Comments tabs (yuck!)

https://github.com/Metztli/b2evolution

Limited testing... Notwithstanding, to not display the warnings -- which had beginning to plague b2evolution 7.2.5 since PHP 7.4 -- you should make sure to modify your
conf/_advanced.php file and change the value, at line no. 49, from:
$display_errors_on_production = true;

to
$display_errors_on_production = false;

Work in progress but feedback is useful. NO WARRANTIES whatsoever!

2 Jan 18, 2024 11:30

Thanks, will have a look. I did try something a while back but went back to php7, though I have php8 installed on my server I think I avoided using it. Will try again.

All the best

3 Jan 20, 2024 01:12

'The front end is completely broke.'
This is the major fatal error attempted fix by the hack above:

Fatal error: Uncaught Error: Object of class WidgetContainer could not be converted to string in /path/to/b2evolution/inc/skins/skin.funcs.php, i.e.,
https://github.com/b2evolution/b2evolution/issues/122#issue-2009151128

Object of class WidgetContainer could not be converted to string in
Object of class WidgetContainer could not be converted to string in

It is a show stopper. Notwithstanding, the other two fatal errors in the backend tabs referenced above are no less infuriating / exasperating. Yet, all have been apparently resolved to make PHP 8 display appropriately, as well, with relevant hacks.

4 Jan 20, 2024 18:50

Is there any advantage of using php8? if b2evo was designed around 7 ?/

I have other things I'm working on currently so won't be of much use me thinks. :(


Form is loading...