I have chosen the private filesystem for the video node. Thumbnails directory is created in the public directory instead of the private directory.

And I get the following error message:

Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 178 of D7/includes/entity.inc)

Comments

anglo’s picture

The array_flip() error comes up both for private and public filesystem. But in the public filesystem videos play just fine, but not in private.

anglo’s picture

Version: 7.x-1.0-unstable2 » master
Priority: Major » Critical

Videos with the private filesystem are not played in the master version either (but they do get encoded).

This is what I see in the logs:
page not found 03/22/2011 - 18:19 system/files/videos/converted/81/SDC11277.mp4

anglo’s picture

Version: master » 7.x-1.0-alpha1

Same for the version 7.x-1.0-alpha1. Videos are not playing (for private filesystem) though they get encoded.

JayKayAu’s picture

Version: 7.x-1.0-alpha1 » master

(Resetting to Master as it affects all versions)

Subscribe.

hypertext200’s picture

yes, it seems I'm using Drupal's file system not the Field settings. I will fix that, or patches are welcome.

dawehner’s picture

The problem in general is that no module want's to take over the ownership of the .flv files/The converted files in the filefolder.

So video.module has to implement hook_file_download and check access there.
There it has to act like the filefield variant of this hook but use another path: the converted file.

So i think from the flv file the original cck filefield entry has to be loaded, and there the access has to be checked.

(Optional) it would make sense to add the converted video into the fielfield table.

This problem is existant for 6.x-4.x as well.

dawehner’s picture

Status: Active » Needs review
StatusFileSize
new1.27 KB

So here is a patch.

At the end it makes sense and works fine.

dawehner’s picture

By the way this is against 6.x-4.x, but the port shouldn't be too hard, once the initial problem could be figured out.

J0keR’s picture

subscibe

z3cka’s picture

subscibe

Randall Shelley’s picture

subscribe

anglo’s picture

Does anyone have a patch for 7.x-1.x ?

hypertext200’s picture

StatusFileSize
new1.37 KB
dawehner’s picture

Priority: Critical » Major

Are you sure you posted the patch against the right version?

Update priority

hypertext200’s picture

Version: master » 7.x-1.x-dev

Changing to 7.x-1.x

hypertext200’s picture

StatusFileSize
new2.88 KB

That was a wrong patch. Attaching the correct one

anglo’s picture

Just used the 7.x-1.x-dev dated April 22, 2011 - 16:20. Same thing. Videos get converted. Stream not found.

dawehner’s picture

You have to use the patch uploaded above.

anglo’s picture

It is already integrated into the 7.x-1.x-dev dated April 22, 2011 - 16:20 that I used.

hypertext200’s picture

Closed #1020444: private filesystem not supported as duplicate. As far as I identified we have couple of issues in private file system.
1. Converted videos not passing through private file system.
2. Field settings for file system not using inside a field. That lead the thumbnail generation in public.

any more issues?

hypertext200’s picture

We have fixed both of those issues in 7.x-2.x, so upgrade to the latest version will solve the problem.

hypertext200’s picture

Status: Needs review » Closed (fixed)