WordPress.org

Forums

WP-Admin Icons
[resolved] Error when activated (4 posts)

  1. Andrew Ledwith
    Member
    Posted 2 years ago #

    When I activate this plugin I receive the following error:

    Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/flnavs/public_html/wp-content/plugins/wp-admin-icons/wp-admin-icons-init.php on line 52

    Any thoughts on the cause?

    http://wordpress.org/extend/plugins/wp-admin-icons/

  2. Devin Walker
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for bringing this up - I'm going to check it out and report back!

  3. Leia Scofield
    Member
    Posted 2 years ago #

    I ran into a similar issue because my database tables have a different table prefix. I was able to clear the errors by modifying line 50 of wp-admin-icons-init.php.

    FROM:

    $result = mysql_query("SELECT option_value FROM wp_options WHERE option_name = 'siteurl'");

    TO:

    global $wpdb;
    $result = mysql_query("SELECT option_value FROM $wpdb->options WHERE option_name = 'siteurl'");
  4. Devin Walker
    Member
    Plugin Author

    Posted 2 years ago #

    In version 1.3 I replaced the function all together so now there's no mysql_query - it's using a better method at all the settings link to the plugins page.

    Thanks @Lei Scofield for posting your solution!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.