Fatal error: require_once() [function.require]: Failed opening required '/' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/sites/all/modules/draggableviews/draggableviews.inc on line 203

CommentFileSizeAuthor
#12 draggableviews.inc_.patch995 bytessevi

Comments

sevi’s picture

If this happened when accessing a view that still used the old configuration (from 6--3-1), I would not worry.
Otherwise this could be very interesting :)

junro’s picture

This resolve the problem:

admin/build/views

and go to your draggable views et save configuration of all of them. And it's working. :)

junro’s picture

You have to update the draggable settings before to save draggable views (of course).

junro’s picture

This works for me with a very simple draggable views, but with another one much complicate, I have this:

user warning: Table 'xxx.draggableviews_structure' doesn't exist query: DELETE FROM draggableviews_structure WHERE vid=81 AND nid=128 AND delta=0 in /home/xxx/www/sites/all/modules/draggableviews/implementations/draggableviews_handler_native.inc on line 23.

I've got a lot of lines like this with differents vid=81 AND nid=128 & ......_native.inc on line 24 too.

junro’s picture

I said "This works for me with a very simple draggable views" ----> False same user warning when I want to drag and save (this little draggable views was directly in a panel).

junro’s picture

I tried to create a new draggable views but same problem:

user warning: Table 'xxx.draggableviews_structure' doesn't exist query: DELETE FROM draggableviews_structure WHERE vid=81 AND nid=128 AND delta=0 in /home/xxx/www/sites/all/modules/draggableviews/implementations/draggableviews_handler_native.inc on line 23.

I've got a lot of lines like this with differents vid=81 AND nid=128 & ......_native.inc on line 24 too.

sevi’s picture

Hm.. and did you run update.php?..

I'll cover this issue tomorrow.

greetings,
sevi

junro’s picture

Hi, sure I run update.php but I think the update doesn't work, no files was uploaded.
And as you ask me this question, I suppose the tables have changed so...

sevi’s picture

Ok, now I've implemented hook_update. Now the new table should be created.
I also added some error-checking for non-existing handlers. In the worst-case there should be displayed a drupal-error-message (No fatal errors any more).
I tried both updating from 6.x-3.1 and installing a new drupal from scratch. For me it works.

Always make sure you have the correct handler defined. Unfortunately I still don't know how compatibility-checks of chosen handlers should be done. So be careful :)
Change are already commited to Drupal-6--3 branch.

..please try and let me now,
greetings, sevi

junro’s picture

ok, but no new version is available. I suppose I have to wait :)

junro’s picture

ok, just tried the last version, one draggable view works, just put the header on CCK.

Others draggable views:

warning: require_once(/) [function.require-once]: failed to open stream: Success in /www/sites/all/modules/draggableviews/draggableviews.inc on line 218.

sevi’s picture

StatusFileSize
new995 bytes

Ok. This patch should prevent PHP-Fatal-Errors.

But with just updating the style-plugin-settings you could have bypassed this problem - I suppose.

Now you should see a drupal-error-message "Handler not found" instead of the PHP-Fatal-Error.

cheers,
sevi

sevi’s picture

Status: Active » Fixed

seems to be fixed

junro’s picture

Hello Sevi,

These last days, I didn't have time to work with my draggable views.

I'm going to work the next days only on this ^^.

I will report all problems as usualy :)

Thanks

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.