Title: Error when activated
Last modified: August 20, 2016

---

# Error when activated

 *  Resolved [Andrew Ledwith](https://wordpress.org/support/users/jaledwith/)
 * (@jaledwith)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/error-when-activated-1/)
 * 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/](http://wordpress.org/extend/plugins/wp-admin-icons/)

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

 *  Plugin Author [Devin Walker](https://wordpress.org/support/users/dlocc/)
 * (@dlocc)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/error-when-activated-1/#post-3353346)
 * Thanks for bringing this up – I’m going to check it out and report back!
 *  [Leia Scofield](https://wordpress.org/support/users/leiascofield/)
 * (@leiascofield)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-when-activated-1/#post-3353364)
 * 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'");
       ```
   
 *  Plugin Author [Devin Walker](https://wordpress.org/support/users/dlocc/)
 * (@dlocc)
 * [13 years ago](https://wordpress.org/support/topic/error-when-activated-1/#post-3353397)
 * 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](https://wordpress.org/support/users/lei/) Scofield for posting 
   your solution!

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

The topic ‘Error when activated’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-admin-icons_5c5d5d.svg)
 * [WP-Admin Icons](https://wordpress.org/plugins/wp-admin-icons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-admin-icons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-admin-icons/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-admin-icons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-admin-icons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-admin-icons/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Devin Walker](https://wordpress.org/support/users/dlocc/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/error-when-activated-1/#post-3353397)
 * Status: resolved