Upgraded from 7.x-2.0 to 7.x-2.1 I got the error message below on any edit page of nodes:
-
Fatal error: Class name must be a valid object or a string in .../includes/common.inc on line 7484
and the edit form is disappeared.
What I can do is back to the old version.
Comments
Comment #1
twodI can only guess what's happened here. It would be interesting to know what class name it tried to use, but that might be difficult if you're not used to debugging PHP.
Did you update the module manually or via the GUI?
Have you re-downloaded/-extracted Wysiwyg 2.1 to make sure no files were corrupted?
If you're using FTP, have you tried changing the file transfer mode between ASCII/Auto/Binary and re-uploading the files?
Comment #2
astra commentedI updated this module via the GUI.
I uploaded the file wysiwyg-7.x-2.1.tar to sites/all/modules just by cPanel and extracted there. I think no files are corrupted by this way.
Any guidance?
Comment #3
twodI've had cPanel miss some files when extracting archives using it. If you haven't already, delete the wysiwyg folder and extract the wyswyg 7.x-2.1 archive again, clear caches and try again.
Are you able to find which Class name it's trying to use? You might have to insert a
try{...}catch(){}statement around the line in common.inc and print out any variable which might hold its name. (Don't forget to calldie()afterwards to prevent further execution in a broken state.Comment #4
geoffreyr commentedI've received the same error message under the same conditions, upgrading WYSIWYG 2.0 to 2.1. In my case, I was using drush to upgrade the module.
The class name that entity_get_controller is trying to use is wysiwyg_profile.
Comment #5
twodIf you use drush, you must clear the cache (
drush cc all) afterwards.It sounds like the class registry has not picked up that the class exists in wysiwyg.module. (If you can't see it on line 31 of wysiwyg.module, something's really gone wrong!)
Maybe Registry Rebuild can help here if things get really bad?
Just read the instructions carefully!
Comment #6
orces commentedI got same issue:
Fatal error: Class name must be a valid object or a string in .../includes/common.inc on line 7679
This happens when I go to links like:
/admin/config/content/wysiwyg
/node/add/..... (adding any new content type)
Comment #7
orces commenteduninstalling module and database and re-installing seems to solve the problem