Open picard102 opened 1 month ago
I am uploading images to the media library using wp_insert_attachment. It would produce a fatal error saying Class 'ColorThief\ColorThief' not found.
My work around was to give the autoload a more specific directory, and the error went away.
require DIR . '/vendor/autoload.php';
I am uploading images to the media library using wp_insert_attachment. It would produce a fatal error saying Class 'ColorThief\ColorThief' not found.
My work around was to give the autoload a more specific directory, and the error went away.
require DIR . '/vendor/autoload.php';