• Resolved *B.V.RammannaRaau*

    (@reviewkeys)


    WP v4.2.2
    iThemes Security v4.6.13

    Issue:
    PHP Fatal error: Call to undefined function mysql_get_client_info() in /document_root/wp-content/plugins/better-wp-security/core/content/system.php on line 70

    For each visit to the iThemes Security Dashboard at https://example.tld/wp-admin/admin.php?page=itsec return 404 error in the following:

    1. Dashboard >> System Information >> Database Information
    2. wp-admin/error_log

    And other observations:

    1. iThemes Security Dashboard blocks toggle (minimize or maximize) not working.
    2. Security Status block in Dashboard appearing twice

    Temporarily removed the list item

    <?php echo mysql_get_client_info(); ?>
    from wp-content/plugins/better-wp-security/core/content/system.php line 70

    After removing the above list item or function from system.php, no 404 errors found, and Security Status appearing only one time and returning all server configuration details on the dashboard except mySQL client info.

    https://www.ads-software.com/plugins/better-wp-security/

Viewing 7 replies - 1 through 7 (of 7 total)
  • This issue was also reported in topic:

    https://www.ads-software.com/support/topic/unlock-host

    The improved fix for line 70 in the system.php file is:

    <li><?php _e( 'MySQL Client Version', 'it-l10n-ithemes-security-pro' ); ?>: <strong><?php echo $wpdb->use_mysqli?mysqli_get_client_info():mysql_get_client_info(); ?></strong></li>

    dwinden

    Another smart search example using Google:

    site:www.ads-software.com/support/ “ithemes security” mysql_get_client_info

    Guess what is the first search result returned ? ??

    dwinden

    Thread Starter *B.V.RammannaRaau*

    (@reviewkeys)

    This issue was also reported in topic:
    https://www.ads-software.com/support/topic/unlock-host

    The above thread discussion was for another issue. But My concern issue was discussed within several discussions made in that thread. That’s why I could not find that this issue was discussed earlier. As per discussion made in that thread I have conducted several tests on WP fresh installs.

    Observations as follows:

    • Issue found where MySQL version is 5.6.23 and PHP version is 5.4.39 in the server, but not found in MySQL version 5.5.40 and PHP version is 5.4.35.
    • Also changing mysql to mysqli not returning any PHP fatal errors
    • Need to contact hosting service provider where MySQL version is higher than 5.5.40

    I really appreciate dwinden for finding root cause of the issue concern.

    Thread Starter *B.V.RammannaRaau*

    (@reviewkeys)

    Dear dwinden!
    I really appreciate your contribution and the way your educating others like me. I do understand that you have been working hard to assist our wordpress community.

    I knew how to search in google using search operators. But we don’t expect every wordpress user have technical writing skills to open threads in our forum. Self expression varies from person to person.

    site:www.ads-software.com/support/ “ithemes security” mysql_get_client_info

    In the above search query using search operators, we need to figure out exact KeyWords, here it is mysql_get_client_info, which is sometimes a puzzle. I have made several searches but with some other keywords. Thats why I could not reached the existing thread.

    Keep on posting such valuable info so that it can, atleast, reduce new threads. I really appreciate as you are answering straight to the point.

    PHP 7.0 – WP 4.4

    visiting

    https://www.domain.com/wp-admin/admin.php?page=itsec

    results in

    Error thrown
    Call to undefined function mysql_get_client_info()

    Help? Did anyone find a solution?
    I dont want to mess with the core plugin files

    Thread Starter *B.V.RammannaRaau*

    (@reviewkeys)

    Thread Starter *B.V.RammannaRaau*

    (@reviewkeys)

    Seems to be issue resolved after the latest version v5.2.1

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP Fatal error: Call to undefined function mysql_get_client_info()’ is closed to new replies.