Title: 500 Error on Plugin Activate
Last modified: January 22, 2018

---

# 500 Error on Plugin Activate

 *  [ustechninja](https://wordpress.org/support/users/ustechninja/)
 * (@ustechninja)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/500-error-on-plugin-activate/)
 * Using PHP 7 (though I’ve tried 5.6) I get a 500 error and unable to work at all
   on changing settings in the plugin. I’ve even deleted and reinstalled, and upon
   activation, the site hits a 500 error.
 *     ```
       [07-Oct-2017 23:33:56 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function ILAB\MediaCloud\Utilities\wp_get_current_user() in /home/username/spyonaz.com/wp-content/plugins/ilab-media-tools/classes/Utilities/Prefixer.php:124
       Stack trace:
       #0 /home/username/spyonaz.com/wp-content/plugins/ilab-media-tools/classes/Utilities/Prefixer.php(163): ILAB\MediaCloud\Utilities\Prefixer->parsePrefix('spy_', NULL)
       #1 /home/username/spyonaz.com/wp-content/plugins/ilab-media-tools/classes/Cloud/Storage/StorageSettings.php(122): ILAB\MediaCloud\Utilities\Prefixer::Parse('spy_', NULL)
       #2 /home/username/spyonaz.com/wp-content/plugins/ilab-media-tools/classes/Tools/Storage/StorageTool.php(371): ILAB\MediaCloud\Cloud\Storage\StorageSettings::prefix(NULL)
       #3 /home/username/spyonaz.com/wp-includes/class-wp-hook.php(298): ILAB\MediaCloud\Tools\Storage\StorageTool->getUploadDir(Array)
       #4 /home/username/spyonaz.com/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array)
       #5 /home/username/spyonaz.com/wp-includes/functions.php(1880): apply_filters('upload_dir' in /home/username/spyonaz.com/wp-content/plugins/ilab-media-tools/classes/Utilities/Prefixer.php on line 124
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2F500-error-on-plugin-activate%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [interfacelab](https://wordpress.org/support/users/interfacelab/)
 * (@interfacelab)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/500-error-on-plugin-activate/#post-9568834)
 * I would disable all of your other plugins, then enable Media Cloud and still 
   see if you get the 500 error.
 * The fatal error you are reporting doesn’t make any sense since the function it
   is saying is undefined is defined in WordPress. This means that something is 
   triggering the `upload_dir` filter before WordPress is completely loaded. So 
   it has to be another plugin or your WordPress install is messed up somehow.
 *  Plugin Author [interfacelab](https://wordpress.org/support/users/interfacelab/)
 * (@interfacelab)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/500-error-on-plugin-activate/#post-9576086)
 * Did you get this working?
 * Can you share the list of plugins you are using?

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

The topic ‘500 Error on Plugin Activate’ is closed to new replies.

 * ![](https://ps.w.org/ilab-media-tools/assets/icon.svg?rev=2795439)
 * [Media Cloud for Bunny CDN, Amazon S3, Cloudflare R2, Google Cloud Storage, DigitalOcean and more](https://wordpress.org/plugins/ilab-media-tools/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ilab-media-tools/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ilab-media-tools/)
 * [Active Topics](https://wordpress.org/support/plugin/ilab-media-tools/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ilab-media-tools/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ilab-media-tools/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [interfacelab](https://wordpress.org/support/users/interfacelab/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/500-error-on-plugin-activate/#post-9576086)
 * Status: not resolved