• Hi there! I use Virtue theme more than 2 years and love it. Siteground hosting, when my site is, asks us to Move to PHP 7. (Your site is using PHP 5.6 which is below the recommended PHP 7.0.)
    https://www.siteground.com/blog/wordpress-on-php7-now/?utm_source=newsletter%2003-17&utm_medium=email, and before doing this movement, first check/ If there are themes and plugins that might not be compatible with PHP 7, you will see them listed on the screen. And only Virtue theme gave me an error.
    SG support recommends me to change the theme or ask theme’s support. I want to use Virtue further, it is excellent!
    plugin SG Optimizer revealed only Virtue error (no any plugins) –

    FILE: /home/freeocea/public_html/wp-content/themes/virtue/themeoptions/inc/validation/preg_replace/validation_preg_replace.php
    ——————————————————————————————————————————
    FOUND 1 ERROR AFFECTING 1 LINE
    ——————————————————————————————————————————
    30 | ERROR | preg_replace() – /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0
    ——————————————————————————————————————————

    FILE: /home/freeocea/public_html/wp-content/themes/virtue/woocommerce/single-product/add-to-cart/grouped.php

    How can it be resolved?

    thank you in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The place where you see the error “FILE: /home/freeocea/public_html/wp-content/themes/virtue/themeoptions/inc/validation/preg_replace/validation_preg_replace.php” is not a file that is being used.

    It will be removed in later version of the theme but you can’t update to php7 without issue because that file is not being used.

    Ben
    Kadence Themes

    Thread Starter MoniJulia

    (@monijulia)

    Ben, thank you so much!
    I will do

    If the file is not used, why can’t we update without issue? Do you mean that we CAN update since the file is not used?

    Thanks

    You can update to php 7 all the demos and thousands have there is no issue. the “error” is just incorrect.

    Hi there,
    I had the same issue before, and just not updated to the latest version of Virtue.

    I cleared the site cache and then re-ran the PHP check on SiteGround and voila! No more warning about Virtue incompatibility with PHP 7.0.

    Thanks!

    Thread Starter MoniJulia

    (@monijulia)

    @celenie – thank you! ??
    “I cleared the site cache and then re-ran the PHP check on SiteGround and voila! ”
    – could you please write the path how did you clear from cache?

    • This reply was modified 7 years, 6 months ago by MoniJulia.
    • This reply was modified 7 years, 6 months ago by MoniJulia.
    • This reply was modified 7 years, 6 months ago by MoniJulia.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Virtue and php 7.0’ is closed to new replies.