Jump to content

Extension talk:UserDailyContribs

Add topic
From mediawiki.org
Latest comment: 12 years ago by S Page (WMF) in topic Update Error


Update Error

[edit]

Hi I am trying to upgrade using the update.php and I get this error:


Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'UserDailyContribsHooks' not found in /public_html/includes/Hooks.php on line 216

An error occured: Detected bug in an extension! Hook UserDailyContribsHooks::loadExtensionSchemaUpdates failed to return a value; should return true to continue hook processing or false to abort. Backtrace:

  1. 0 /public_html/includes/GlobalFunctions.php(3847): Hooks::run('LoadExtensionSc...', Array)
  2. 1 /public_html/includes/installer/DatabaseUpdater.php(69): wfRunHooks('LoadExtensionSc...', Array)
  3. 2 /public_html/includes/installer/DatabaseUpdater.php(120): DatabaseUpdater->__construct(Object(DatabaseMysql), false, NULL)
  4. 3 /public_html/includes/installer/DatabaseInstaller.php(256): DatabaseUpdater::newForDB(Object(DatabaseMysql))
  5. 4 /public_html/includes/installer/WebInstallerPage.php(525): DatabaseInstaller->doUpgrade()
  6. 5 /public_html/includes/installer/WebInstaller.php(254): WebInstaller_Upgrade->execute()
  7. 6 /public_html/mw-config/index.php(50): WebInstaller->execute(Array)
  8. 7 /public_html/mw-config/index.php(18): wfInstallerMain()
  9. 8 {main}

Any idea what I should do? Thanks! 123.243.244.195 10:09, 6 December 2012 (UTC)Reply

Works for me. Somehow UserDailyContribs.php is loading so maintenance knows it should run 'UserDailyContribsHooks::loadExtensionSchemaUpdates', but it can't find the class. Somehow the line
$wgAutoloadClasses['UserDailyContribsHooks'] = dirname( __FILE__ ) . '/UserDailyContribs.hooks.php';
is failing. S Page (WMF) (talk) 22:15, 3 July 2013 (UTC)Reply