Closed (fixed)
Project:
Display Suite
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jan 2010 at 23:46 UTC
Updated:
26 Feb 2010 at 17:40 UTC
Fatal error: Class name must be a valid object or a string in/sites/all/modules/ds/includes/ds.display.inc on line 236
Fatal error: require_once() [function.require]: Failed opening required './sites/all/modules/cck/theme/theme.inc' (include_path='.:/usr/share/php:/usr/share/pear') in /sites/all/modules/cck/content.module on line 177
Comments
Comment #1
swentel commentedmake sure you upgrade, nd and nd_contrib as well - you'll also need to go to the plugins screen and resave that screen since we made a small API chance there.
Comment #2
ManyNancy commentedThanks, but after I upgrade, and saved the plugins screen, all my custom fields, block and code, have disappeared. None of my 50 custom fields work anymore???
Comment #3
swentel commentedyou have 50 custom fields already ? damn, that might pose a problem indeed since properties of the custom fields have indeed changed (instead of a code key that changed to a properties key) - mmm are these fields in code or in your database ? If it's in your database, I'll write a small conversion script which you can put temporarily in ds.install to upgrade. If it's in code, you'll need to change 'code' to 'properties', ie
Comment #4
ManyNancy commentedTo be honest, since I've restored a backup I'm really leery of trying this, especially if a release is coming soon. Please put a migrate path in the beta.
Do you think that's a reasonable choice? Thanks for making this great great module. I'm having lots of fun with it. Thanks!
Edit: I have about 15 block fields and 35 code fields.
Comment #5
swentel commentedWell, to be honest, we haven't had an official alpha, beta or 1.0 release yet, so including an upgrade path is something that shouldn't be done. However, it was our fault to introduce such an API change pretty late in the process and I don't want to waste all the effort you have done so far. I'm going to post an update function here which you can use to update your code and block fields (there are still in the database right ?). I'll post this code probably today or tomorrow!
Comment #6
swentel commentedOk here goes. Paste this code in ds.install file and run the database updates. Of course, make sure to create a backup first :)
There is one thing I can't track though. Since the latest commit, it is necessary to toggle a checkbox if you are using tokens in custom fields. You'll need to re-update those if you have used tokens. Function underneath is untested, but should work normally, let me know of course if something went wrong.
Comment #7
swentel commentedOk please wait a bit with running this - we're probably doing another API update, I'll let you know when you can run!
Comment #8
ManyNancy commentedThanks for all your help!
Comment #9
swentel commentedOk, you may update. Make sure you have the latest version of DS, ND & ND_contrib.
After running the update should be back. It's likely you'll just have to resave some displays. Let me know if things went wrong. Marking as fixed for now.
Comment #10
ManyNancy commentedHi, I don't think it worked.
All of my fields are still empty.
During the update I got this:
Thanks!
Comment #11
swentel commentedCan you give me a dump of your variables table ? (not everything, I dont need all the rest). If I have your data, it 'll probably be easier to see what goes wrong on my screen.
Comment #12
ManyNancy commentedHi, I'm not sure how to give you only the relevant selection of my data. I sent you an email through d.o contact with a link to my variables table though.
Comment #13
swentel commentedOk, fixing this offline than.
Comment #14
ManyNancy commentedThanks, it worked.
But I'm still getting these errors every time I update:
* warning: Invalid argument supplied for foreach() in /vol/www/pressflow/sites/all/modules/ds/includes/ds.registry.inc on line 296.
* warning: Invalid argument supplied for foreach() in /vol/www/pressflow/sites/all/modules/ds/includes/ds.registry.inc on line 296.
* warning: asort() expects parameter 1 to be array, null given in /vol/www/pressflow/sites/all/modules/ds/includes/ds.registry.inc on line 326.
* warning: key() [function.key]: Passed variable is not an array or object in /vol/www/pressflow/sites/all/modules/ds/includes/ds.registry.inc on line 142.
Thank you so much once again!
Comment #15
swentel commentedOk ,that problems is related with build modes. So either a module defining hook_content_build_modes isn't up to date (if you coded your own hook, you'll need to update that function) or resave any custom buildmodes from the UI. Can't do much more than that.
Comment #16
ManyNancy commentedGotcha, I think it's from heartbeat status. Thanks!