Just happened on uploading the module only, not even activated... Nothing worked anymore on the site; everywhere same message.

So had to delete the module (rename with "." in front) to get site back.

 1  <?php
 2  // $Id: sweaver_plugin.inc,v 1.1.2.22 2010/09/18 18:23:09 swentel Exp $
 3 
 4  /**
 5   * @file
 6   * Base class for a sweaver plugin.
 7   */
 8   class sweaver_plugin {
 9 
10   /**
11   * Sweaver dependencies.
12   */
13    function sweaver_dependencies() {
14    return array();
15   }

Comments

swentel’s picture

Status: Active » Closed (fixed)

That's normal yeah - the release notes of beta 3 had a notice of that. You need to clear the cache manually and delete the sweaver_plugin folder from the plugins folder. I've added those notes also on the frontpage of the project.

ClearXS’s picture

Status: Closed (fixed) » Active

I have no idea about PHP, but just adding a missing "}" seems to resolve the issue:

8_old    class sweaver_plugin {
8_new  class sweaver_plugin {}

Only no idea if I've put it on the right place?

swentel’s picture

in which file ?

ClearXS’s picture

Status: Active » Fixed

cross-posts... anyway, the old files will be overwritten next time, I suppose... No errors returned yet... Status flipped back automatically, so corrected wit this post

file: sweaver_plugin.inc

But got the error back after some time; re-loading the modules list seems to trigger it.

So 'll follow your advice!

karens’s picture

FYI for anyone else who runs into problems with the update. After updating the codebase and removing the old plugins folder, the changes create fatal errors until the cache is cleared, which ironically makes it impossible to run drush cc all to clear the cache. Instead I had to do drush sql-query "TRUNCATE {cache}", THEN I could do drush cc all, then things started working again.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.