Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
With drupal-7.0 and video_upload-7.x-1.x-dev installed:
Notice: Use of undefined constant VIDEO_UPLOAD_STATUS_UPLOAD_PENDING - assumed 'VIDEO_UPLOAD_STATUS_UPLOAD_PENDING' in video_upload_field_schema() (line 42 of
/video_upload/video_upload.install).
Basically the constant is defined in the module but not the install file (where it is also used). Fixed by adding the following to video_upload.install (I put it at line 10):
define('VIDEO_UPLOAD_STATUS_UPLOAD_PENDING', 'upload_pending');
Comments
Comment #1
Carlos Miranda Levy CreditAttribution: Carlos Miranda Levy commentedI get the same error with version 7.x-1.0-beta2
The warning even shows after clearing the caches.
Adding it manually on line 10, causes the following errors when enabling the module:
However, the error remains, even when disabling the module. Upon disabling the module, the following error is shown on every cache clear run from the performance page until the module is fully uninstalled by going to admin/modules/uninstall: