YahnisElsts / plugin-update-checker

A custom update checker for WordPress plugins. Useful if you don't want to host your project in the official WP repository, but would still like it to support automatic updates. Despite the name, it also works with themes.
MIT License
2.22k stars 403 forks source link

Error: Class 'Puc_v4_Factory' not found #477

Closed sgiles77 closed 2 years ago

sgiles77 commented 2 years ago

I just released a plugin update that upgrades the update checker code to version 4.11. Testing went fine on my server, but two different sites in the field reported the Class 'Puc_v4_Factory' not found error when attempting to execute the update. I noticed you already addressed this error (#321) in 4.8.1, but it appears to have resurfaced. The two sites are running WP 5.8.3 and PHP 7.3 or higher. I am struggling to debug the issue since I can't reproduce it locally.

Code in the main plugin file looks like this:

require 'plugin-update-checker/plugin-update-checker.php'; $MyUpdateChecker = Puc_v4_Factory::buildUpdateChecker( 'http://sgcustomwebsolutions.com/path-to-json-file/dynamic-user-directory-exclude-user-filter.json', FILE, 'dynamic-user-directory-exclude-user-filter' );

YahnisElsts commented 2 years ago

Closing this because it's a duplicate of #476.