Topic on Project:Support desk

(RESOLVED (by upgrading)) Value for $wgStatsMethod setting is not in permitted (given: , permitted: Cache, UDP, None)

10
174.30.139.243 (talkcontribs)

Whenever I try to update settings for my wiki, whether I'm actually changing something or not, I get the subject of this post as an error. The full error is as follows:

Value for $wgStatsMethod setting is not in permitted (given: , permitted: Cache, UDP, None)

Backtrace:

  1. 0 /var/lib/mediawiki1.7/extensions/Configure/Configure.page.php(108): ConfigurationPage->importFromRequest()
  2. 1 /usr/share/mediawiki1.7/includes/SpecialPage.php(372): ConfigurationPage->execute(NULL)
  3. 2 /usr/share/mediawiki1.7/includes/Wiki.php(156): SpecialPage->executePath(Object(Title))
  4. 3 /usr/share/mediawiki1.7/includes/Wiki.php(47): MediaWiki->initializeSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest))
  5. 4 /usr/share/mediawiki1.7/index.php(123): MediaWiki->initialize(Object(Title), Object(OutputPage), Object(User), Object(WebRequest))
  6. 5 {main}

Also, in the top frame of every page is the following error:

Warning: fopen(/messages-terriswikidb) [function.fopen]: failed to open stream: Permission denied in /usr/share/mediawiki1.7/includes/MessageCache.php on line 99

I have a feeling the two are connected. The $wgStatsMethod is not available in the version of MediaWiki I am using. It appears as though the wiki is trying to perform the option anyway, and thereby returning a cache error. Mind you, I am not a PHP coder. So please try to keep this in mind when responding.

Reach Out to the Truth (talkcontribs)

Which version of Configure are you using? The versions section of the extension page recommends a specific version for MediaWiki 1.7, but it's possible that you're using a newer version of Configure that is incompatible with that version of MediaWiki.

174.30.139.243 (talkcontribs)

MediaWiki: 1.7.1 PHP: 5.2.0-8 (apache2handler) MySQL: 5.0.32-Debian_3-log Extensions: Special pages: Configure (version 0.6.3), Allow authorised users to configure the wiki by a web-based interface, by Alexandre Emsenhuber Parser extension tags:

Hooks:
LanguageGetSpecialPageAliases: efConfigureLoadAliases
LangugeGetSpecialPageAliases: efConfigureLoadAliases
LoadAllMessages: efConfigureLoadMessages
174.30.139.243 (talkcontribs)

MediaWiki: 1.7.1 PHP: 5.2.0-8 (apache2handler) MySQL: 5.0.32-Debian_3-log Extensions: Special pages: Configure (version 0.6.3), Allow authorised users to configure the wiki by a web-based interface, by Alexandre Emsenhuber Parser extension tags:

Hooks:
LanguageGetSpecialPageAliases: efConfigureLoadAliases
LangugeGetSpecialPageAliases: efConfigureLoadAliases
LoadAllMessages: efConfigureLoadMessages
174.30.139.243 (talkcontribs)

Oops! Sorry for the repeat. That's the version number and everything.

174.30.139.243 (talkcontribs)

Can someone please offer some advice on how to fix the problem?

Reach Out to the Truth (talkcontribs)

As far as I can tell you're using the correct version, but I'm not too familiar with Configure. You're not likely to get better responses from others though, since you're using an old unsupported version of MediaWiki. Upgrading is recommended if possible.

64.15.156.209 (talkcontribs)

i get this problem when i write $val = "mysql"; at configuration page so this variable is not just for $wgDBtype please if you solve this problem could you help me

Reply to "(RESOLVED (by upgrading)) Value for $wgStatsMethod setting is not in permitted (given: , permitted: Cache, UDP, None)"