Title: Loader issue with plugin
Last modified: January 30, 2023

---

# Loader issue with plugin

 *  Resolved [SimonRWaters](https://wordpress.org/support/users/simonrwaters/)
 * (@simonrwaters)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/loader-issue-with-plugin/)
 * The last autoupdate took down site with:
   PHP Fatal error:  Uncaught TypeError:
   Return value of Composer\\Autoload\\ClassLoader::initializeIncludeClosure() must
   be an instance of Composer\\Autoload\\void, none returned in …/wp-content/plugins/
   wordpress-beta-tester/vendor/composer/ClassLoader.php:580\nStack trace:\n#0 …/
   wp-content/plugins/wordpress-beta-tester/vendor/composer/ClassLoader.php(112):
   Composer\\Autoload\\ClassLoader::initializeIncludeClosure()\n#1 …/wp-content/
   plugins/wordpress-beta-tester/vendor/composer/autoload_real.php(28): Composer\\
   Autoload\\ClassLoader->__construct(‘……’)\n#2 …/wp-content/plugins/wordpress-beta-
   tester/vendor/autoload.php(25): ComposerAutoloaderInit248763277659ec81f8c4ff690d89804d::
   getLoader()\n#3 …/wp-content/plugins/wordpress-beta-tester/wp-beta-tester.php(
   33): require_once(‘……’)\n#4 …/wp-settings.php(447): include_once(‘…..’)\n#5 …/
   wp-config.php(76) in …/wp-content/plugins/wordpress-beta-tester/vendor/composer/
   ClassLoader.php on line 580Not immediately obvious to me why. Moving the WordPress-
   beta=-tester plugin out the way got the site back, but no time to troubleshoot
   today.php 7.0.33

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

 *  Plugin Author [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * (@afragen)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/loader-issue-with-plugin/#post-16421752)
 * I’m sorry Simon. I’ll take a look today.
 *  Plugin Author [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * (@afragen)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/loader-issue-with-plugin/#post-16422286)
 * Can you re-download the plugin? I can’t replicate this and it seems to be from
   Composer.
 *  Thread Starter [SimonRWaters](https://wordpress.org/support/users/simonrwaters/)
 * (@simonrwaters)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/loader-issue-with-plugin/#post-16423058)
 * Okay I have version 3.2.5, it matches the development version in all files.
   Quick
   Google of error took me to: [https://github.com/composer/composer/issues/11245](https://github.com/composer/composer/issues/11245)
   Which suggests it is PHP version and returning void (I am overdue upgrading this
   box, so not especially surprised I eventually hit PHP support issue, but the 
   plugin is reporting 5.6 and up, when I assume it is at least 7.1 and up now).
   My PHP foo is feeling dated, both on server and in my head.
 *  Plugin Author [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * (@afragen)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/loader-issue-with-plugin/#post-16423275)
 * Only requires PHP 5.6 or higher.
 * [https://github.com/afragen/wordpress-beta-tester/blob/554250518a7f517c87020ac913b3e50f9f5f5fdb/composer.json#L41](https://github.com/afragen/wordpress-beta-tester/blob/554250518a7f517c87020ac913b3e50f9f5f5fdb/composer.json#L41)
 *  Thread Starter [SimonRWaters](https://wordpress.org/support/users/simonrwaters/)
 * (@simonrwaters)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/loader-issue-with-plugin/#post-16423612)
 * Not quite sure what you are saying there, the composer ClassLoader.php in the
   plugin was updated with 7.1 only “void” return type in 3.2.5 from 3.2.4 just 
   like the example from Composer 2.5 I linked in the bug report, the composer.json
   file wasn’t updated at the same time.
   initializeIncludeClosure() replaced includeFile()
 *  Plugin Author [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * (@afragen)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/loader-issue-with-plugin/#post-16423673)
 * What I’m saying is the requirement is the same as for WordPress, PHP 5.6+
 *  Plugin Author [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * (@afragen)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/loader-issue-with-plugin/#post-16423694)
 * I’ve reinstalled Composer 2.5.0, which doesn’t suffer from this bug. Should be
   fixed in next version of Composer.
 * Update to this plugin available soon.

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

The topic ‘Loader issue with plugin’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-beta-tester/assets/icon-256x256.png?rev=2562317)
 * [WordPress Beta Tester](https://wordpress.org/plugins/wordpress-beta-tester/)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-beta-tester/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-beta-tester/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-beta-tester/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-beta-tester/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/loader-issue-with-plugin/#post-16423694)
 * Status: resolved