Home Forums Theme support Prestige theme and PHP 7.2

This topic contains 3 replies, has 2 voices, and was last updated by  7Theme Support 6 years, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Hi, I have some problems with the visability of Prestige on some browsers, not all strangely enough, and it seem to be related to an update of PHP to version 7.2 on my web providers servers.
    The PHP Compability check says this about the theme:

    FILE: /customers/6/e/f/affab.se/httpd.www/wp-content/themes/prestige/7league/posttype-real-estate.php
    ————————————————————————————————————
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ————————————————————————————————————
    1595 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    1657 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    ————————————————————————————————————

    FILE: /customers/6/e/f/affab.se/httpd.www/wp-content/themes/prestige/7league/anonym.php
    ———————————————————————————————————-
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ———————————————————————————————————-
    34 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    ———————————————————————————————————-

    FILE: /customers/6/e/f/affab.se/httpd.www/wp-content/themes/prestige/7league/css/customcss.php
    ————————————————————————————————————————————————————————–
    FOUND 2 ERRORS AFFECTING 2 LINES
    ————————————————————————————————————————————————————————–
    9 | ERROR | Indirect access to variables, properties and methods will be evaluated strictly in left-to-right order since PHP 7.0. Use curly braces to remove ambiguity.
    13 | ERROR | Indirect access to variables, properties and methods will be evaluated strictly in left-to-right order since PHP 7.0. Use curly braces to remove ambiguity.
    ————————————————————————————————————————————————————————–

    FILE: /customers/6/e/f/affab.se/httpd.www/wp-content/themes/prestige/7league/widgets.php
    ————————————————————————————————————
    FOUND 0 ERRORS AND 18 WARNINGS AFFECTING 18 LINES
    ————————————————————————————————————
    111 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    189 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    243 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    335 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    404 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    464 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    525 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    577 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    633 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    678 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    724 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    770 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    863 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    953 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    1043 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    1095 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    1146 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    1236 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    ————————————————————————————————————

    FILE: /customers/6/e/f/affab.se/httpd.www/wp-content/themes/prestige/7league/autoimporter.php
    —————————————————————————————————————————————————————————–
    FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
    —————————————————————————————————————————————————————————–
    71 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    752 | ERROR | Indirect access to variables, properties and methods will be evaluated strictly in left-to-right order since PHP 7.0. Use curly braces to remove ambiguity.
    —————————————————————————————————————————————————————————–

    Is this something you can fix with an update of the theme?, Guess there will be more who gets the same problem when older PHP versions stops function.
    Yours!
    /Anders

    Hi, what version of the theme do you use? We tested the most recent (1.16) and there were no problems…

    Hi, I used 1.15 because it seemed like the last version according to my downloads. But I see now that you have updated my download files with version 1.16. I will try that.
    Now I have tried and i got the following warnings, do they tell you anything?

    Warning: count(): Parameter must be an array or an object that implements Countable in /customers/6/e/f/affab.se/httpd.www/wp-content/themes/prestige/7league/config.php on line 52…. the first of a lot of them.

    A lot of strange things happened but it seems like in the end it was a simple case of colliding plugins, in this case a version of Jetpack that seems to have broken everything!!!
    Now everything is fine again.
    Thank you!
    /Anders

    Hi,

    not sure what caused the problem. But a warning is only a warning, not more. Normally these messages should never be visible on your website because you can provoke such kind of messages and find weak points on your website, and hack it. You should contact your hosting provider and ask to deactivate PHP errors and warnings.

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

You must be logged in to reply to this topic.