• Resolved officelvpc

    (@officelvpc)


    Hi All,

    I manage a web page with wordpress but am not at all familiar with html. My WordPress dashboard is telling me I need to update my PHP. I followed the steps to do it including using the plugin “PHP Compatibility Tracker” and it came up with some issues with my theme. I tried googling around and there were some answers to my problem but I couldn’t understand them. I’m hoping if paste the issues and the corresponding code below and someone might be able to just tell me how to change them?

    1. Problem per the PHP Compatibility Plugin:

    FILE: /home3/lvpc/public_html/wp-content/themes/andrinatheme/functions/admin-interface.php
    ———-
    FOUND 2 ERRORS AFFECTING 1 LINE
    ———-
    900 | ERROR | Extension ‘ereg’ is deprecated since PHP 5.3 and removed since PHP 7.0; Use pcre instead
    900 | ERROR | Function ereg_replace() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_replace() instead

    Full Line of Corresponding Code in admin-interface.php(this is the only place “ereg” shows up):

    $jquery_click_hook = ereg_replace(“[^A-Za-z0-9]”, “”, strtolower($value[‘name’]));

    2. Problem per the PHP Compatibility Plugin:

    FILE: /home3/lvpc/public_html/wp-content/themes/andrinatheme/template-contact.php
    ———–
    FOUND 2 ERRORS AFFECTING 1 LINE
    ———–
    20 | ERROR | Extension ‘ereg’ is deprecated since PHP 5.3 and removed since PHP 7.0; Use pcre instead
    20 | ERROR | Function eregi() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_match() instead

    Full Line of Corresponding Code in template-contact.php(this is the only place “ereg” shows up):

    } else if (!eregi(“^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}$”, trim($_POST[’email’]))) {

    Thank you so much for all your help in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You should ask your theme author to update the theme for everyone. Ask in your theme’s support forum.

    Moderator James Huff

    (@macmanx)

    Since that is a commercial theme, we ask that you please go to their official support channel, so you can get support from the people who know it best: https://www.inkthemes.com/community/forums/andrina-wordpress-theme.17/

    Forum volunteers are not given access to commercial products, so they would not know why it is not working properly. Other community members who may have faced your issue might be able to help you but your best bet is your product’s developer. Keep in mind we encourage you to use the official support venues, as it allows the developers to be aware of issues with their code and gives back to the community in a more robust way.

    Thread Starter officelvpc

    (@officelvpc)

    Oh great! Thanks for the info, I’ll try to follow up in their official support channel.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fixing PHP Compatibility Issues’ is closed to new replies.