Support for php 8.0/8.1

  • Author
    Posts
  • #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 284

    My question: is tempera prepared for using php 8.0 / 8.1?

    Thanks in advance
    Joerg

    #134445

    Hi! Could you fix it? Does your website work with PHP 8.0 with no errors?

    #134846
    Zed
    Cryout Creations mastermind

    Hi

    @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).


    @Violet
    ,

    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.
    #135216
    This reply is private.
    #137144

    PHP 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

    #137412

    we 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.

    #138715
    Zed
    Cryout 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.
Viewing 7 posts - 1 through 7 (of 7 total)

You need to log in to reply to this topic.