Closed (fixed)
Project:
SpamSpan filter
Version:
7.x-1.1-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
29 Oct 2014 at 11:33 UTC
Updated:
5 Feb 2015 at 14:00 UTC
Jump to comment: Most recent
On drush up error in console:
Fatal error: Class 'spamspan_admin' not found in /sites/all/modules/spamspan/spamspan.module on line 42
Comments
Comment #1
umberto. commentedSame error for me too.
Comment #2
Martin.Schwenke commentedMe too. I use spamspan on a couple of Drupal instances. One upgraded fine, the other has this error. Not sure what the relevant difference is. :-(
Comment #3
peterx commentedClasses are defined in the .info file in
files[] =. The .info file is read when you enable a module. Disable/enable the module to make Drupal read the .info file.I have not tested
update.phpwith a .info file change. If the error still occurs on one of your sites, please testupdate.phpand report the result. If update.php does not work, disable then enable.The move to a class is to get the infrequently used code out of the standard page load and into memory only when needed. this should b standard practice for all Drupal 7 modules.
Comment #4
Martin.Schwenke commentedOK, I retried the one that was failing by having it ready to load update.php. That worked. The failure probably had something to do with loading a page with the admin overlay, and the underlying page possibly causing the failure.
My standard practice is always to link in the new version of the module, refresh the "Available updates" report to see if all is good, and then run update.php. I should probably reverse the last 2 steps...
Thanks!
Comment #5
peterx commented@Martin, when changing stuff in the .info file, I find disable then enable to be the most reliable way to make Drupal reprocess the .info file.
Comment #6
rwilson0429 commentedI ran into the same problem after upgrading to the 7.x-1.1-beta4 version. Disabling and then re-enabling the module as peterx stated resolved the issue for me. Thanks peterx.
Comment #7
peterx commentedComment #8
rooby commentedA
drush cc allshould do the trick.