[Will be fixed when PHP 8.2 is released] php 8.1 deprecated functions warning

Ask for help or provide support to other members.
Post Reply
emorras
Posts: 1
Joined: Tue Jul 05, 2022 11:32 am

[Will be fixed when PHP 8.2 is released] php 8.1 deprecated functions warning

Post by emorras »

Hi, I installed wondercms 3.3.2 under FreeBSD 13, PHP 8.1 and Nginx.

I get several errors/warnings on loginURL,

Deprecated: reset(): Calling reset() on an object is deprecated in /...../index.php on line 2446
Deprecated: key(): Calling key() on an object is deprecated in /...../index.php on line 2447
Deprecated: end(): Calling end() on an object is deprecated in /...../index.php on line 2448

And some other lines where key(), reset() and end() are used.

I don't know a lot of php, so don't know if under 8.2 it will fail or it's just noise.

Thanks
OneManLaptop
Posts: 68
Joined: Tue Mar 16, 2021 3:29 pm

Re: php 8.1 deprecated functions warning

Post by OneManLaptop »

Hey emorras, welcome to the forum. PHP 8.1 should certainly be compatible with WCMS. These are the server requirements for WCMS:

PHP version 7.2 or greater
cURL extension
mbstring extension
Zip extension
mod_rewrite module enabled

If you want to easily check if your server meets all the requirements, upload a simple info.php file to your server, then navigate to it and you can check which features are enabled:

To create such a file, simply open your web editor and create a file called info.php, then paste this into it:

Code: Select all

<?php
phpinfo();
?>
Save it, then upload it to the root of whichever server you're using WCMS on. If you need any help deciphering the results, feel free to share the link.
User avatar
wiz
Posts: 749
Joined: Sat Oct 30, 2010 12:23 am

Re: [Will be fixed when PHP 8.2 is released]php 8.1 deprecated functions warning

Post by wiz »

Hello emorras!

Full follow up on this topic is here: https://github.com/robiso/wondercms/issues/268

Copy pasted response:
Since only the error logs are filling up and WonderCMS is still functioning normally, we plan on releasing full PHP 8.2 support by the end of year (PHP 8.2 should be released in November 24).

If we currently do the PHP upgrade, we would break about 10-20% of our user base (WonderCMS would stop functioning for them), it's better to have error logs filling up for newer versions of PHP than breaking WonderCMS completely for users on PHP 7.2

Keep this issue and renaming it to PHP 8.1+ support.

Thanks again!
Post Reply