Поддержка Разное До какой версии повысить PHP?

  • В админке заметил, что плагин один выдает, что после след. обновления ему нужна будет версия php 5,4 или выше, посмотрел сайты на 5,4 и 5,3 пару сайтов, в админке хостинга повысить версию можно, думал повысить до 5,6 версии всех сайтов. перед этим забекапить все. Но вижу там можно до 7,2 повысить. Стоит ли обновлять версию PHP если да, то до какой версии? Какие проблемы могут быть

    Страница, с которой нужна помощь: [войдите, чтобы увидеть ссылку]

Просмотр 7 ответов — с 1 по 7 (всего 7)
  • Модератор Yui

    (@fierevere)

    ゆい

    7.1 сейчас оптимальна.
    Ядро WP рекомендует последнюю ветку — 7.2 (тем не менее возможны чрезмерные предупреждения в логи по коду плагинов и тем, иногда (редко) проблемы)

    http://php.net/eol.php
    версии перечисленные здесь использовать не нужно, их поддержка прекращена

    https://ru.wordpress.org/support/upgrade-php/
    ну и это прочитайте, почти на все ваши вопросы отвечает статья

    Модератор SeVlad

    (@sevlad)

    wp.me/3YHjQ

    Стоит ли обновлять версию PHP если да, то до какой версии?

    версия 5.5 два года как приказала долго жить, какие 5,3-5,4?

    Стоит до последней стабильной. Но если плагины или тема древние, то могут быть проблемы.

    Плагин https://wordpress.org/plugins/php-compatibility-checker/ поможет проверять совместимость

    Спасибо! Проверил 1 из 38 плагинов / тем могут быть несовместимы красным выделен, но во многих есть желтое предупреждения. Даже не знаю что делать понизить версию может а не 7,2 но ссмысл, если все равно придется на нее переходить. Не совместим оказался плагин TablePress

    Name: Agreeable
    
    PHP 7.2 compatible.
    
    Name: Akismet Anti-Spam
    
    PHP 7.2 compatible.
    
    Name: Alizee
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/themes/alizee/widgets/video-widget.php
    ----------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------
     6 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    ----------------------------------------------------------------------------------------------------
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/themes/alizee/widgets/recent-posts.php
    ----------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------
     6 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    ----------------------------------------------------------------------------------------------------
    
    Name: All In One SEO Pack
    
    PHP 7.2 compatible.
    
    Name: All In One WP Security
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.utils.php
    -----------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------------------
     116 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    -----------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.ip.apnic.php
    --------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------------------------
     76 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    --------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.gtld.fastdomain.php
    ---------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ---------------------------------------------------------------------------------------------------------------------------------------------
     51 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
     68 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    ---------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.client.php
    ------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
    ------------------------------------------------------------------------------------------------------------------------------------
     328 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
     364 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
     523 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    ------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.ip.afrinic.php
    ----------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------------------------
     63 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    ----------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.zanet.php
    -----------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------------------
     53 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    -----------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.parser.php
    ------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 9 WARNINGS AFFECTING 9 LINES
    ------------------------------------------------------------------------------------------------------------------------------------
      46 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
      77 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
     344 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
     358 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
     416 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
     466 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
     612 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
     621 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
     835 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    ------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.nu.php
    --------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
    --------------------------------------------------------------------------------------------------------------------------------
     46 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
     54 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
     66 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    --------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/all-in-one-wp-security-and-firewall/lib/whois/whois.at.php
    --------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------------------
     64 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    --------------------------------------------------------------------------------------------------------------------------------
    
    Name: Amadeus
    
    PHP 7.2 compatible.
    
    Name: Another WordPress Classifieds Plugin (AWPCP)
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/another-wordpress-classifieds-plugin/functions.php
    ------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------------
     2881 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    ------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/another-wordpress-classifieds-plugin/includes/settings-api.php
    ------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ------------------------------------------------------------------------------------------------------------------------------------
     518 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
     520 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    ------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/another-wordpress-classifieds-plugin/includes/helpers/facebook.php
    ----------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------------------------
     133 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    ----------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/another-wordpress-classifieds-plugin/includes/functions/legacy.php
    ----------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
    ----------------------------------------------------------------------------------------------------------------------------------------
     349 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
     485 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
     506 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    ----------------------------------------------------------------------------------------------------------------------------------------
    
    Name: AntiVirus
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/antivirus/antivirus.php
    -----------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------
     684 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    -----------------------------------------------------------------------------------------------------------
    
    Name: Better Search Replace
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/better-search-replace/includes/class-bsr-compatibility.php
    --------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------------------
     54 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4
    --------------------------------------------------------------------------------------------------------------------------------
    
    Name: Broken Link Checker
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/broken-link-checker/modules/checkers/http.php
    -------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------
     147 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    -------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/broken-link-checker/includes/utility-class.php
    --------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------
     42 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4
    --------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/broken-link-checker/core/core.php
    -----------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------
     957 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    -----------------------------------------------------------------------------------------------------------
    
    Name: Contact Form 7
    
    PHP 7.2 compatible.
    
    Name: Cool Tag Cloud
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/cool-tag-cloud/cool-tag-cloud.php
    -----------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------
     522 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    -----------------------------------------------------------------------------------------------------------
    
    Name: Dagon Design Sitemap Generator
    
    PHP 7.2 compatible.
    
    Name: EWWW Image Optimizer
    
    The plugin/theme was skipped as it was too large to scan before the server killed the process.
    
    Name: Hyper Cache
    
    PHP 7.2 compatible.
    
    Name: Image Banner Widget
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/image-banner-widget/image-banner-widget.php
    -----------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    -----------------------------------------------------------------------------------------------------------------
     14 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
     24 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    -----------------------------------------------------------------------------------------------------------------
    
    Name: Lazy Load
    
    PHP 7.2 compatible.
    
    Name: Lectura Lite
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/themes/lectura-lite/functions.php
    -----------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------
     234 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    -----------------------------------------------------------------------------------------------------------
    
    Name: Oi Yandex.Maps for WordPress
    
    PHP 7.2 compatible.
    
    Name: ProtoPress
    
    PHP 7.2 compatible.
    
    Name: Q2W3 Fixed Widget
    
    PHP 7.2 compatible.
    
    Name: Responsive Lightbox
    
    PHP 7.2 compatible.
    
    Name: Reveal IDs
    
    PHP 7.2 compatible.
    
    Name: RusToLat
    
    PHP 7.2 compatible.
    
    Name: SG Window Pro
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/sg-window-pro/inc/customize-widget-colors.php
    -------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------
     47 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    -------------------------------------------------------------------------------------------------------------------
    
    Name: Slider by Nivo - Responsive Image Slider
    
    PHP 7.2 compatible.
    
    Name: Supreme Google Webfonts
    
    PHP 7.2 compatible.
    
    Name: TablePress
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/tablepress/views/view-about.php
    ------------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AFFECTING 2 LINES
    ------------------------------------------------------------------------------------------------------------
     185 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
     186 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    ------------------------------------------------------------------------------------------------------------
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/tablepress/libraries/excel-reader.class.php
    ------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ------------------------------------------------------------------------------------------------------------------------------------------------------------
     222 | WARNING | Method name "OLERead::__readData" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
     240 | WARNING | Method name "OLERead::__readPropertySets" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    ------------------------------------------------------------------------------------------------------------------------------------------------------------
    
    Name: Theme Authenticity Checker (TAC)
    
    PHP 7.2 compatible.
    
    Name: TinyMCE Advanced
    
    PHP 7.2 compatible.
    
    Name: Twenty Thirteen
    
    PHP 7.2 compatible.
    
    Name: WordPress File Monitor
    
    PHP 7.2 compatible.
    
    Name: WordPress Related Posts
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/wordpress-23-related-posts-plugin/init.php
    ----------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ----------------------------------------------------------------------------------------------------------------
     215 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
     440 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    ----------------------------------------------------------------------------------------------------------------
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/wordpress-23-related-posts-plugin/recommendations.php
    ---------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ---------------------------------------------------------------------------------------------------------------------------
     182 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
     264 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    ---------------------------------------------------------------------------------------------------------------------------
    
    Name: WP No External Links
    
    PHP 7.2 compatible.
    
    Name: WP-Optimize
    
    PHP 7.2 compatible.
    
    Name: wp_stem_ru
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/wp_stem_ru/wp_stem_ru.php
    -----------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------
     49 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    -----------------------------------------------------------------------------------------------
    
    Name: Yandex.Metrika
    
    PHP 7.2 compatible.
    
    Name: ВП Типограф Лайт
    
    FILE: /home/httpd/vhosts/autobryansk.info/httpdocs/wp-content/plugins/wp-russian-typograph/wp-russian-typograph.php
    -------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------
     456 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    -------------------------------------------------------------------------------------------------------------------
    
    
    Модератор Yui

    (@fierevere)

    ゆい

    посмотрите есть ли обновления для «проблемных» плагинов

    5.6 можете поставить хоть сейчас, она будет поддерживаться еще год, как последняя ветка пятой серии.

    Модератор SeVlad

    (@sevlad)

    wp.me/3YHjQ

    Даже не знаю что делать понизить версию может а не 7,2 но ссмысл, если все равно придется на нее переходить.

    Ну 7.1 вполне можно. И даже 5,6, но уже похуже (7ка работает быстрее, но тоже не везде).
    А со времени и плагины подтянуться.

    Плагины постоянно обновляю, просканировал на 7.0 только 4 желтых предупреждения ее можно наверное поставить или с предупеждениями нежелательно и поставить 5.6 если все зеленым будет? Сейчас сканируется на 7.1

    При сканировании на 7.0:
    1) wp_stem_ru — Compatible Warnings: 1 не знаю нужен или нет
    2) Image Banner Widget — Compatible Warnings: 1 — им вообще не пользовался еще, надо удалить.
    3) Broken Link Checker — Compatible Warnings: 1 — думаю тоже не обязателен, пусть даже будет не корректно работать
    4) Better Search Replace — Compatible Warnings: 1 — думаю тоже не нужен пока
    5) EWWW Image Optimizer — Unknown — этот вообще серым — неизвестно.

    Думаю можно завтра пробовать на 7.0 перейти. Плагин для установки баннеров удалю, остальные оставлю все.

Просмотр 7 ответов — с 1 по 7 (всего 7)
  • Тема «До какой версии повысить PHP?» закрыта для новых ответов.