I'm getting this error when I go to edit a sharethis from the admin screen. I was also getting the same error taking down my entire site, but found that uninstalling the share and sharethis modules and the reinstalling them got rid of the complete failure. I get the following error (and that's it, just a blank screen) when I go to /admin/build/share/7/edit
Fatal error: Class 'sharethis' not found in /sites/all/modules/share/share.module on line 286
I couldn't figure out who that class was getting passed into the call to the function since the class is supposed to be share_sharethis. I did notice that when I installed the module I got the following error:
user warning: Unknown column 'module' in 'where clause' query: UPDATE system SET `weight` = 1 WHERE `name` = 'share_sharethis' AND `module` = 'module' in /includes/database.mysql.inc on line 174.
I'm guessing that the code in the second error (which is in the share_sharethis.install file) should actually read:
UPDATE system SET `weight` = 1 WHERE `name` = 'share_sharethis' AND `type` = 'module'
I'll mess around with this some more and then update
Comments
Comment #1
elgreg commentedOK. I think this mostly had to do with jumping straight from alpha 7 to alpha 9 - I ran the update.php script which should have changed the module name in the {share} table and therefor the class errors, but it wasn't picking up that the module was new and didn't run any queries. The code showed that the changes were in the update 5001 script and that seems to have fixed the problem (namely that the column name was pointing to the wrong class in the {share} table.
Marking as closed.
Comment #2
techczech commentedI'm having exactly the same problem when installing Alpha 9 directly.
Fatal error: Class 'sharethis' not found in /usr/local/apache/htdocs/dev/sites/all/modules/share/share.module on line 285
Tried running the 5001 update manually but it failed.
# Failed: ALTER TABLE {share} ADD `weight` int NOT NULL default '0'
# Failed: ALTER TABLE {share} CHANGE `type` `module` varchar(255) NOT NULL default 'share'
Comment #3
greenskin commentedFixed in latest 2.0-dev and 2.0-alpha10 releases.