-
AuthorPosts
-
April 5th, 2022 at 08:04 #128201
When using wp-cli with php 8.0 I got the following warnings:
Warning: Undefined array key “tempera_comlabels” in /var/www/www.saarfuchs.com/wp-content/themes/tempera/includes/theme-comments.php on line 197
Warning: Trying to access array offset on value of type null in /var/www/www.saarfuchs.com/wp-content/themes/tempera/includes/theme-setup.php on line 53
Warning: Trying to access array offset on value of type null in /var/www/www.saarfuchs.com/wp-content/themes/tempera/includes/theme-setup.php on line 94
Warning: Trying to access array offset on value of type null in /var/www/www.saarfuchs.com/wp-content/themes/tempera/includes/theme-setup.php on line 94
Warning: Trying to access array offset on value of type null in /var/www/www.saarfuchs.com/wp-content/themes/tempera/includes/theme-setup.php on line 96
Warning: Trying to access array offset on value of type null in /var/www/www.saarfuchs.com/wp-content/themes/tempera/includes/theme-setup.php on line 96
Warning: Trying to access array offset on value of type null in /var/www/www.saarfuchs.com/wp-content/themes/tempera/includes/theme-setup.php on line 97
Warning: Trying to access array offset on value of type null in /var/www/www.saarfuchs.com/wp-content/themes/tempera/includes/theme-setup.php on line 97
Warning: Trying to access array offset on value of type null in /var/www/www.saarfuchs.com/wp-content/themes/tempera/includes/theme-setup.php on line 103
Warning: Trying to access array offset on value of type null in /var/www/www.saarfuchs.com/wp-content/themes/tempera/includes/theme-setup.php on line 105
Warning: Trying to access array offset on value of type null in /var/www/www.saarfuchs.com/wp-content/themes/tempera/includes/theme-setup.php on line 284
Warning: Trying to access array offset on value of type null in /var/www/www.saarfuchs.com/wp-content/themes/tempera/includes/theme-setup.php on line 284My question: is tempera prepared for using php 8.0 / 8.1?
Thanks in advance
JoergNovember 28th, 2022 at 01:46 #134445Hi! Could you fix it? Does your website work with PHP 8.0 with no errors?
December 10th, 2022 at 02:54 #134846ZedCryout Creations mastermindHi
@Saarfuchs,We do not support or test Tempera (or any of our themes) with wp-cli. Global variables work differently there and addressing that would require rewriting large parts of the theme (which was created at a time when wp-cli did not exist).
We always do our active development on the current PHP version and I have not encountered any compatibility issues in Tempera (or any of our other classic themes) with either PHP 8.1 or the previous 8.0.
Are you observing any problems?If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic.December 22nd, 2022 at 21:27 #135216This reply is private.February 28th, 2023 at 10:19 #137144PHP 8.x gives this 3 lines errors :
Warning: Attempt to read property “post_author” on null in /home/XXX/wp-content/themes/tempera/functions.php on line 36
Warning: Attempt to read property “post_author” on null in /home/XXX/wp-content/themes/tempera/functions.php on line 36
Warning: Attempt to read property “post_author” on null in /home/XXX/wp-content/themes/tempera/functions.php on line 299
Had to get back to PHP 7.3.4
March 7th, 2023 at 18:53 #137412we have sadly the same problem after witching to php 8.1. There is no way back to php 7.x, therfore we have to find another theme.
April 28th, 2023 at 23:26 #138715ZedCryout Creations mastermind@Draky, there are no lines 36 or 299 in Tempera’s functions.php file, so you must have edited it.
The Warning: Trying to access array offset on value of type bool ... error will hopefully get fixed in a future theme update, making Tempera usable with WP CLI.
If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic. -
AuthorPosts
You need to log in to reply to this topic.