I was importing a view created in 6.x-2.0-rc4 when it received the following:
Fatal error: Call to undefined method stdClass::init_display() in modules/views/includes/admin.inc on line 767
Since it's a fatal error, it doesn't load any other part of the file, but I can tell you that the link it keeps breaking on is:
admin/build/views/import
Comments
Comment #1
dkleehammer commentedI would've edited the first one, but I couldn't. I'm using Drupal 6.5.
Comment #2
dkleehammer commentedUser error, when I exported the views, I missed the leading '$'. Maybe a different error could be displayed?
Comment #3
merlinofchaos commentedUnfortunately, since what you're doing is actually running a piece of PHP code, if the code is malformed due to cut & paste errors, fatal errors happen and I'm not sure it's possible to catch them. It may be, but it would be significant work to do it, I think.