Active
Project:
Video Upload
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2011 at 00:23 UTC
Updated:
22 Feb 2011 at 01:22 UTC
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 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: