Home Forums Theme support Chic Theme PHP 8

This topic contains 10 replies, has 2 voices, and was last updated by  amrit 1 month ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • Hello 7Theme,

    when will you provide PHP 8 compatibility for the Chic Theme?
    The latest Version is 1.0.6 which is not compatible with PHP 8, I tried running the Chic Theme with PHP 8.0.23 on my local web server and it throws the error:

    Fatal error: Uncaught Error: Call to undefined function create_function() in E:\laragon\www\kathak.de\wp-content\themes\chic\7league\posttype-portfolio.php:787 Stack trace: #0 E:\laragon\www\kathak.de\wp-content\themes\chic\7league\init.php(45): require_once() #1 E:\laragon\www\kathak.de\wp-content\themes\chic\functions.php(3): require_once(‘E:\\laragon\\www\\…’) #2 E:\laragon\www\kathak.de\wp-settings.php(566): include(‘E:\\laragon\\www\\…’) #3 E:\laragon\www\kathak.de\wp-config.php(115): require_once(‘E:\\laragon\\www\\…’) #4 E:\laragon\www\kathak.de\wp-load.php(50): require_once(‘E:\\laragon\\www\\…’) #5 E:\laragon\www\kathak.de\wp-blog-header.php(13): require_once(‘E:\\laragon\\www\\…’) #6 E:\laragon\www\kathak.de\index.php(17): require(‘E:\\laragon\\www\\…’) #7 {main} thrown in E:\laragon\www\kathak.de\wp-content\themes\chic\7league\posttype-portfolio.php on line 787

    Our web host will discontinue the PHP 7.4 version at the end of November 2022, by then the Chic Theme should be able to run with PHP 8.

    Thanks in advance.

    Oops, caught! We already made updates for PHP 8, looks like we missed this function. We already fixed it, the new version is 1.07 and you can download it in the next few minutes. Sorry again!

    Sorry but version 1.07 of Chic Theme doesn’t work with PHP 8.0.23 either.

    At the top of the Page these error messages are displayed:

    Warning: Trying to access array offset on value of type null in X:\xxxxxx\www\xxxxxx\wp-content\themes\chic\7league\callscripts.php on line 167

    Warning: Trying to access array offset on value of type null in X:\xxxxxx\www\xxxxxx\wp-content\themes\chic\7league\callscripts.php on line 197

    And in Footer of the Page this error message is displayed:

    Fatal error: Uncaught Error: Undefined constant “secondfooter_content” in X:\xxxxxx\www\xxxxxx\wp-content\themes\chic\footer.php:23 Stack trace: #0 X:\xxxxxx\www\xxxxxx\wp-includes\general-template.php(92): locate_template(Array, true, true, Array) #3 X:\xxxxxx\www\xxxxxx\wp-content\themes\chic\page.php(25): get_footer() #4 E:\laragon\www\kathak.de\wp-includes\template-loader.php(106): include(‘X:\\xxxxxx\\www\\…’) #5 X:\xxxxxx\www\xxxxxx\wp-blog-header.php(19): require_once(‘X:\\xxxxxx\\www\\…’) #6 X:\xxxxxx\www\xxxxxx\index.php(17): require(‘X:\\xxxxxx\\www\\…’) #7 {main} thrown in X:\xxxxxx\www\xxxxxx\wp-content\themes\chic\footer.php on line 23

    The Menu, Logo, Buttons etc. of the page are also broken.

    WordPress 6.0.2, Chic 1.07 and PHP 8.0.23, any idea to solve the problem?

    Thanks in advance!

    The warnings are only warnings, that’s not the problem, but the error in the footer of course is a problem. We fixed it (also the warnings) and uploaded a new version (1.071), can you please try it again? Thank you.

    Thanks for the new version, the warnings are gone.

    However, the layout is broken when I switch to PHP 8. It seems like the CSS isn’t loading properly, the logo is huge, the menu doesn’t display properly, the buttons aren’t styled etc.
    Unfortunately I have no way to upload screenshots here to show how it looks with PHP 7.4 and PHP 8. Let me know how I can send you the Screenshots.

    In addition, with PHP 8 I can no longer click in the Theme Options to change the settings, nothing happens.

    The Theme Options menu is not clickable. Did you check that?

    Looking foward for any help. Thank you.

    Ok, that’s really strange because we tested it on our end. Can you send us the screenshots via email ( info at 7theme . net )? Thank you. What PHP version exactly do you use?

    I have sent an email (on 10/10/2022) with screenshots to info@7theme.net.
    Did you receive it? Any news about this issue?

    Thanks in advance!

    Hi, I don’t think so. Can you send it again? (info at 7theme . net). Thank you!

    Hi, I’ve emailed you again at info@7theme.net with the screenshots.
    Subject: https://7theme.net/forums/topic/chic-theme-php-8/#post-49096

    Thank you!

    Ok, got it. We already answered your email.

    Hi Stefan,

    here is the access to the website:

    #### REMOVED FROM SUPPORT, IT’S A PUBLIC FORUM !!!

    The live site is running PHP 7.4. Please tell me when you want to check it so I can switch to PHP 8 via .htaccess for this time.

    I switched to PHP 8 for testing and got an error message from WordPress saying:

    WordPress-Version 6.0.3
    Aktives Theme: Chic (Version 1.071)
    Aktuelles Plugin: (Version )
    PHP-Version 8.0.24

    Fehler-Details
    ==============
    Ein Fehler vom Typ E_ERROR wurde in der Zeile 1408 der Datei /mnt/web024/d0/59/5258259/htdocs/kathak/wp-content/themes/chic/7league/options-page.php verursacht. Fehlermeldung: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in /mnt/web024/d0/59/5258259/htdocs/kathak/wp-content/themes/chic/7league/options-page.php:1408
    Stack trace:
    #0 /mnt/web024/d0/59/5258259/htdocs/kathak/wp-includes/class-wp-hook.php(307): sevenleague_adminpanel()
    #1 /mnt/web024/d0/59/5258259/htdocs/kathak/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #2 /mnt/web024/d0/59/5258259/htdocs/kathak/wp-includes/plugin.php(476): WP_Hook->do_action()
    #3 /mnt/web024/d0/59/5258259/htdocs/kathak/wp-admin/admin.php(259): do_action()
    #4 /mnt/web024/d0/59/5258259/htdocs/kathak/wp-admin/themes.php(10): require_once(‘…’)
    #5 {main}
    Thrown

    Thanks in advance.

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.