I want to create a video from the images in my FTP.
I am using php and wordpress. I have created a custom plugin for this. I can access the class now by changing the name of the namespace from Cloudinary to Cloudinarysdk. But I am getting error now on the class name as ClassUtils.
Fatal error: Uncaught Error: Class "Cloudinarysdk\ClassUtils" not found in /home/httpd/vhosts/air-production.ch/new.air-labs.ch/wp-content/plugins/timelapse/lib/cloudinarysdk/src/Configuration/BaseConfigSection.php:208 Stack trace: #0 /home/httpd/vhosts/air-production.ch/new.air-labs.ch/wp-content/plugins/timelapse/lib/cloudinarysdk/src/Configuration/BaseConfigSection.php(156):
Comments
-
Thanks for the information Loic I will share over there.
0 -
The error indicates that WordPress is unable to locate the
ClassUtils
class under theCloudinarysdk
namespace. Here are a few troubleshooting steps:- Confirm Namespace Consistency: Make sure that all occurrences of
Cloudinary
in the original code are changed toCloudinarysdk
, not only inBaseConfigSection.php
but also in any file that referencesClassUtils
orBaseConfigSection
. - Autoloading: Ensure that the autoloader is configured to include the new namespace (
Cloudinarysdk
). Check your plugin'scomposer.json
(if using Composer) or the autoload file to verify that it’s mappingCloudinarysdk
correctly. - Class Location: Verify that the
ClassUtils
file is located in the expected path within your project, under the correct namespace. If it's missing or misnamed, you’ll need to adjust it accordingly. - Check File Permissions: Make sure that WordPress has read access to the files in your custom plugin directory, as restricted permissions can sometimes cause issues.
0 - Confirm Namespace Consistency: Make sure that all occurrences of