MyBB Community Forums

Full Version: OUGC_pages problem after ugrading to PHP 8.0
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I use this OUGC_pages plugin  ( https://community.mybb.com/mods.php?acti...6&bid=4368 )  for several years without any problems. Everything worked fine.
But after upgrading from PHP 7.4 to PHP 8.0 something strange happens:

Using PHP 7.4 the plugin page admin/index.php?module=config-plugins looks like this (how it should look):

[Image: php7-4.jpg]


Using PHP 8.0 non of the plugins shows up, just an empty field is displayed - see picture:

[Image: php8-0.jpg]

Looks like OUGC_pages does'nt support PHP 8.0 (as soon as i place the OUGC_pages.php - file into the plugin folder this happens). Is there a solution to keep it working, also under PHP 8.0?
Any help or suggestions would be nice.
By the way, I use OUGC_pages version 1.8.21 (the latest version so far I know)
Reason for this is => https://github.com/Sama34/OUGC-Pages/blo...hp#L41-L42

create_function() has been removed on PHP8
(2022-12-25, 06:19 PM)SvePu Wrote: [ -> ]Reason for this is => https://github.com/Sama34/OUGC-Pages/blo...hp#L41-L42

create_function() has been removed on PHP8

Thanks a lot SvePu, can I copy/past this script into the actual file or is there a ready to go file available somewhere?
(2022-12-25, 07:44 PM)wageral Wrote: [ -> ]
(2022-12-25, 06:19 PM)SvePu Wrote: [ -> ]Reason for this is => https://github.com/Sama34/OUGC-Pages/blo...hp#L41-L42

create_function() has been removed on PHP8

Thanks a lot SvePu, can I copy/past this script into the actual file or is there a ready to go file available somewhere?
Here you have an adapted version....copy the attached file into "ROOT/inc/plugins/ougc_pages.php" ... overwrite the old one.
Thanks again SvePu, i'll try it tomorrow and let you know if it works Smile

Yes, it works indeed. Problem solved. Thanks a lot for helping Smile