I followed the instructions for Blue Droplet and storage, etc. Created the new content type, added a BD video field, created content with a file to upload; everything seemed to work ok, but when I kicked off cron the ffmpeg transcoding failed (probably something I screwed up). So, I deleted the content and went back to the video content type to examine the field settings to see what I may have set incorrectly, and now I get these errors (repeated 5 times) when I try to edit the field:
# warning: Illegal offset type in /home/parkerchamber/drupal/sites/all/modules/storage_api/storage_api.module on line 297.
# warning: Illegal offset type in /home/parkerchamber/drupal/sites/all/modules/storage_api/storage_api.module on line 268.
I've tried deleting the field and re-adding it, but the errors persist. I set everything up for Drupal/Filesystem - the file which was uploaded still persists in /files/storage
What else do you need to know?
--Scott
Comments
Comment #1
ScottW commentedI noticed this morning that the file in /files/storage associated with the content I had deleted was no longer there - looking at the logs, it appears that the regular cron run triggered something in the storage_api to do cleanup: Object instance destroyed. Container: Local Storage, object_id: 1, size: 114.25 MB
And now I am no longer receiving the error when I try to configure the BDV video field.
Comment #2
bcobin commentedI got the exact same error, repeated five times. I then "fell back" to the previous versions of Storage API and BD Video and things seem to be working well, more or less. (There looks to be some incompatibility between BD video and later builds of FFMPEG, but that's another issue.)
Would you say that re-running cron has solved the problem? If so, I may try to upgrade to the latest and (presumably) greatest. Thanks much!
Comment #3
jbrown commentedThis is really weird. I think it might be a PHP bug. What PHP version are you guys using?
Comment #4
bcobin commentedPHP 5.2.5 and MySQL version 5.0.41 - thanks for looking into this!
Comment #5
jbrown commentedIs it happening with the latest snapshot?
If so, how do you trigger it and does it cause any problems?
Comment #6
bcobin commentedThanks for looking into this, Jon.
Here's what I just did (with two instances of working test content):
Upgraded working StorageAPI / BD Video combo to latest versions (release version of StorageAPI).
update.php threw the following error:
On re-entering site, following error message on all pages:
Cleared all caches - the same six error message lines persist.
Falling back to the earlier version, which seems to work, more or less, the following message (with a single error) is generated:
Site seems to be OK.
Hope this helps - thanks again for investigating - I'll check back!
Comment #7
jbrown commentedCan you set line 273 in storage_api.module to the following:
debug_print_backtrace();and post the output here?
It seems you are rerunning the db updates. Each update only needs to be run once per site, even if you downgrade then upgrade again. This probably isn't related though.
Comment #8
bcobin commentedI'm assuming this is with the release version of Storage API - currently, I'm back to a a working combo of earlier versions. The (older) installed version currently reads "return FALSE;" at line 273, whereas the release version has a blank line.
I'm happy to test - please advise me which version(s) you'd like me to check out for both Storage API and BD Video respectively and how you'd like me to proceed - thanks!
As to the update issue, aside from completely de-installing (which I suppose I'll do once all this is sorted and then re-install), I would assume users will run into this situation unless they remove the module while running update.php.
Comment #9
jbrown commentedUse 6.x-1.0 for both bd_video and storage_api with the line as described in #7
Is the site online?
Drupal knows not to run each update more than once. I don't understand why they are being re-run on your site.
Comment #10
jbrown commentedin field_file_load() in field_file.inc:
Comment #11
jbrown commentedhttp://drupal.org/cvs?commit=303316
Comment #12
robertdouglass commentedTagging with "namespaces" to highlight the problem of using zero namespacing in Drupal.