Title: Plugin Activation Error
Last modified: December 5, 2016

---

# Plugin Activation Error

 *  [mktumbi](https://wordpress.org/support/users/mktumbi/)
 * (@mktumbi)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/plugin-activation-error-16/)
 * Hi.
    I used your plugin for my other site but when I am instlling on my new website
   it is not getting activated and showing following error.
 * Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /var/
   www/html/wp-content/plugins/tablemaster/admin/class-tablemaster-admin.php:84 
   Stack trace: #0 /var/www/html/wp-content/plugins/tablemaster/tablemaster.php(
   143): TableMaster_Admin->activate() #1 /var/www/html/wp-includes/plugin.php(524):
   TableMaster->activate(”) #2 /var/www/html/wp-admin/plugins.php(166): do_action(‘
   activate_tablem…’) #3 {main} thrown in /var/www/html/wp-content/plugins/tablemaster/
   admin/class-tablemaster-admin.php on line 84
 * Please reply soon.

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

 *  Plugin Author [vmallder](https://wordpress.org/support/users/vmallder/)
 * (@vmallder)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/plugin-activation-error-16/#post-8515748)
 * Hello,
 * I’m sorry you are experiencing this problem.
 * To start, let’s have you try a couple of things, see if they work, and then tell
   me what the results are.
 * First, deactivate all of your plugins except tablemaster and see if the problem
   still occurs.
 * Second, if the problem still occurs, switch your theme to the 2016 theme and 
   leave all plugins deactivated except for tablemaster.
 * Third, please check to see what version of PHP your host server is running. And
   then check which version of PHP the other server (the server where the activate
   error does not occur) is running and let me know what you find.
 * Is there a way that I could access your site and see the error? Can you send 
   me a link to it?
 * And lastly, is there a way that I could download your site and test it myself?
   For example, if I gave you access to my google drive, could you zip up your site
   and copy it to my google drive?
 * All of this information will be very helpful to me. Please keep in mind though,
   this is a regular work day for me, so I will not be able to do any real investigation
   until I get home later this evening. But hopefully your answers to these questions
   will help to pin point the problem.
 *  Thread Starter [mktumbi](https://wordpress.org/support/users/mktumbi/)
 * (@mktumbi)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/plugin-activation-error-16/#post-8515877)
 * [@vmallder](https://wordpress.org/support/users/vmallder/)
    Thanks for your reply.
   I found out that the problem was due to PHP version. The code is written for 
   PHP5 and I was using PHP7. As in the activation part, you use mysql_connect and
   now you have to use mysqli_connect and same apply at other place. By the way 
   thanks for your help. 5/5 Regards.
 *  [Bogus Exception](https://wordpress.org/support/users/bogus-exception/)
 * (@bogus-exception)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-activation-error-16/#post-8628080)
 * [@vmallder](https://wordpress.org/support/users/vmallder/),
 * PHP7 does reqiure msqli_connect()… if you can test for PHP version, or function
   availability, and offer the correct connect command, it would probably work, 
   right?
 * Should we edit your code if using PHP7? Can you release a PHP7 version?
 * I’m multi-site, too, if that matters (activate at network or site level)…
 * Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /usr/
   share/wordpress/wp-content/plugins/tablemaster/admin/class-tablemaster-admin.
   php:84 Stack trace: #0 /usr/share/wordpress/wp-content/plugins/tablemaster/tablemaster.
   php(143): TableMaster_Admin->activate() #1 /usr/share/wordpress/wp-includes/class-
   wp-hook.php(298): TableMaster->activate(”) #2 /usr/share/wordpress/wp-includes/
   class-wp-hook.php(323): WP_Hook->apply_filters(”, Array) #3 /usr/share/wordpress/
   wp-includes/plugin.php(453): WP_Hook->do_action(Array) #4 /usr/share/wordpress/
   wp-admin/plugins.php(166): do_action(‘activate_tablem…’) #5 {main} thrown in /
   usr/share/wordpress/wp-content/plugins/tablemaster/admin/class-tablemaster-admin.
   php on line 84
 * thanks!

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

The topic ‘Plugin Activation Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/tablemaster_d1d7db.svg)
 * [TableMaster](https://wordpress.org/plugins/tablemaster/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablemaster/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablemaster/)
 * [Active Topics](https://wordpress.org/support/plugin/tablemaster/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablemaster/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablemaster/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 3 replies
 * 3 participants
 * Last reply from: [Bogus Exception](https://wordpress.org/support/users/bogus-exception/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-activation-error-16/#post-8628080)
 * Status: not resolved