Closed (won't fix)
Project:
Views data export
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Mar 2013 at 09:31 UTC
Updated:
28 May 2013 at 20:22 UTC
Error: __clone method called on non-object in /home/umwarsza/public_html/includes/common.inc, line 1780
Comments
Comment #1
rolfmeijer commentedSame here, using drush 5.8, Drupal 6.28 and Views 2.16. And PHP 5.2.6-1+lenny16, as it seems to have somehing to do with a clone function for PHP 4. Lines 1776-1781 in common.inc are:
Comment #2
rolfmeijer commentedDigging a little bit further I found this on line 243 from views_data_export.drush.inc:
If that is done without the drupal_clone function everything seems to work fine:
I’m not sure what happens to PHP 4.0 or if there are any other caveats.
Comment #3
rolfmeijer commentedOK, I think I’ve found it.
What went wrong on my part was that I didn’t include the proper display_id in the drush command. I wrote:
drush views-data-export Beschikbaarheid_Gids data_export_1 filename.csvWhere I should have written:
drush views-data-export Beschikbaarheid_Gids views_data_export_1 filename.csvmind the “views_” prefix for the display_id.
Comment #4
Mołot commentedSame here. With proper display id it works. That makes it a bug in command's input validation. It should output a readable "wrong parameter, avaliable displays are:" for us, and do NOT try to proceed with what it got from us if we make mistake.
Comment #5
steven jones commentedSorry, but the 6.x-3.x branch isn't supported, I think this was fixed in the other branches though.