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

Carlos Miranda Levy’s picture

I 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:

    * Notice: Constant VIDEO_UPLOAD_STATUS_UPLOAD_PENDING already defined in include_once() (line 25 of /home/webappz/drupal7/sites/all/modules/video_upload/video_upload.module).
    * Notice: Constant VIDEO_UPLOAD_STATUS_UPLOAD_PENDING already defined in require_once() (line 10 of /home/webappz/drupal7/sites/all/modules/video_upload/video_upload.install).</pre>

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:

Notice: Use of undefined constant VIDEO_UPLOAD_STATUS_UPLOAD_PENDING - assumed 'VIDEO_UPLOAD_STATUS_UPLOAD_PENDING' in video_upload_field_schema() (line 42 of /home/webappz/drupal7/sites/all/modules/video_upload/video_upload.install).</pre>