Title: Fatal Error when activating plugin
Last modified: February 4, 2019

---

# Fatal Error when activating plugin

 *  Resolved [toxiso](https://wordpress.org/support/users/toxiso/)
 * (@toxiso)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-plugin-52/)
 * Hi all,
 * After updating to latest version I’m getting the a Fatal error when trying to
   activate the plugin as per below:
 *     ```
       Fatal error: Uncaught Error: Call to undefined function token_get_all() in /home/site/wwwroot/wp-content/plugins/insert-php/libs/factory/core/includes/plugin.class.php:751 
       Stack trace: #0 /home/site/wwwroot/wp-content/plugins/insert-php/libs/factory/core/includes/plugin.class.php(647): Wbcr_Factory410_Plugin->getClasses('/home/site/wwwr...') 
       #1 /home/site/wwwroot/wp-content/plugins/insert-php/libs/factory/core/includes/plugin.class.php(523): Wbcr_Factory410_Plugin->updateHook('2.0.6', '2.1.91') 
       #2 /home/site/wwwroot/wp-content/plugins/insert-php/libs/factory/core/includes/plugin.class.php(482): Wbcr_Factory410_Plugin->activationOrUpdateHook(true) 
       #3 /home/site/wwwroot/wp-includes/class-wp-hook.php(286): Wbcr_Factory410_Plugin->forceActivationHook('') 
       #4 /home/site/wwwroot/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array) 
       #5 /home/site/wwwroot/wp-includes/plugin.php(453): WP_Hook->do_action(Array) 
       #6 /home/site/wwwroot/wp-admin/plugins.php(174): do_action('activate_insert...') 
       #7 {main} thrown in /home/site/wwwroot/wp-content/plugins/insert-php/libs/factory/core/includes/plugin.class.php on line 751
       ```
   
    -  This topic was modified 7 years, 4 months ago by [toxiso](https://wordpress.org/support/users/toxiso/).

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

 *  Plugin Author [webcraftic](https://wordpress.org/support/users/webcraftic/)
 * (@webcraftic)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-plugin-52/#post-11167300)
 * Hi,
 * If you are the owner of server, enable php tokenizer extension. If you use hosting,
   ask hosting administrator to enable php tokenizer extension.
 * Best regards, Alex
 *  Thread Starter [toxiso](https://wordpress.org/support/users/toxiso/)
 * (@toxiso)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-plugin-52/#post-11174027)
 * Seems that the tokenizer extension is already enabled.
    ‘–enable-tokenizer=shared’
   is present in my phpinfo file
 *  Plugin Author [webcraftic](https://wordpress.org/support/users/webcraftic/)
 * (@webcraftic)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-plugin-52/#post-11187160)
 * Hi,
 * This bug is related with your server, and not with our plugin. You can search
   for additional information for example here:
 * [https://www.phphelp.com/t/fatal-error-call-to-undefined-function-token-get-all-drupal-8/25474](https://www.phphelp.com/t/fatal-error-call-to-undefined-function-token-get-all-drupal-8/25474)
 * On link, users discuss a similar problem, perhaps this will help you.
 * Best regards, Alex

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

The topic ‘Fatal Error when activating plugin’ is closed to new replies.

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3523853)
 * [Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts](https://wordpress.org/plugins/insert-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [webcraftic](https://wordpress.org/support/users/webcraftic/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-plugin-52/#post-11187160)
 * Status: resolved