Page MenuHomePhabricator

SelectCategoryTagCloud doesn't work after system upgrade
Closed, DeclinedPublic

Description

Author: barnacle

Description:
I upgraded openSuse from 11.1/64 to 11.2/64 and after restoring my wikimedia software I noticed that it wasn't working due to a problem caused by this extension. After disabling it (with # in the settings file), wikimedia started again working.
Adding the string "$wgShowExceptionDetails = true;" to localsettings.php, the message that appears is:

Start

Errore interno (internal error in english)

Detected bug in an extension! Hook fnSelectCategoryOutputHook failed to return a value; should return true to continue hook processing or false to abort.

Backtrace:

#0 /srv/www/htdocs/wiki2/includes/OutputPage.php(565): wfRunHooks('OutputPageParse...', Array)
#1 /srv/www/htdocs/wiki2/includes/OutputPage.php(573): OutputPage->addParserOutputNoText(Object(ParserOutput))
#2 /srv/www/htdocs/wiki2/includes/Article.php(3615): OutputPage->addParserOutput(Object(ParserOutput))
#3 /srv/www/htdocs/wiki2/includes/Article.php(979): Article->outputWikiText('==Todo==?[[:cat...')
#4 /srv/www/htdocs/wiki2/includes/Wiki.php(450): Article->view()
#5 /srv/www/htdocs/wiki2/includes/Wiki.php(63): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
#6 /srv/www/htdocs/wiki2/index.php(116): MediaWiki->initialize(Object(Title), Object(Article), Object(OutputPage), Object(User), Object(WebRequest))
#7 /srv/www/htdocs/wiki2/index.php5(1): require('/srv/www/htdocs...')
#8 {main}

end

My system is:
opensuse: 11.2/64 (final release)
apache: 2.2.14-2.1
php: 5.3.1_git200911032107-29.1
mysql: 5.1.36-59.1

The wikimedia software is original (I mean I have not changed by myself the code) and I have only an other one extension (CategoryTree).


Version: unspecified
Severity: critical
OS: Linux
Platform: Other

Details

Reference
bz21468

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:53 PM
bzimport set Reference to bz21468.

You should use a version Select Category that is compatible with your MediaWiki version.

barnacle wrote:

I don't know if is a version problem. I used it for some time without any problem.
My wikimedia is 1.15.1 and category cloud is 1.4 (2008-08-11).
I only want to indicate this problem, but I'm not a programmer, so it could be my fault.
In this case, I can only say sorry for the inconvenient.
Bye

Make sure you're running the latest version, just to make sure

barnacle wrote:

I think it is. The dates of the files are 11/08/2008 06:54 (It means 11 July for English), so I think it is the 1.4

matthewpallotta wrote:

We have same problems on our site. It surfaced on our upgrade to php-5.3.1, we did see the problem while on php-5.2.10, php-5.2.11, php-5.2.12.

We were originally running 1.13.3 with SelectCategoryTagCloud (version 1.3). We upgraded to php-5.3.1 and say the problem. We downgraded php-5.2.12 and it started working again.

Then we upgraded mediawiki to 1.15.1 SelectCategoryTagCloud (version 1.3) and php-5.3.1. Problem surfaced.

Next we upgrade SelectCategoryTagCloud (version 1.4). Problem still exists.

Also my installed OS is a bit different

Solaris: amd64
Apache: 2.2.14
php: 5.3.1
mysql: 5.1.34sp1-enterprise-gpl-pro-log

matthewpallotta wrote:

I would like to update this. First sentence should read with "*not see"

We have same problems on our site. It surfaced on our upgrade to php-5.3.1, we
did not see the problem while on php-5.2.10, php-5.2.11, php-5.2.12.

stonepound wrote:

I am also having the same issue. I run a few other products on the same machine so I don't want to backrev php. Does anyone have a work around?

crushking wrote:

For me it didn't work on a fresh installation of mediawiki the newest version.

crushking wrote:

Found some sort of a workaround (Don't know if it can be called a solution [it's up to the developers team] but it did the trick).

What I did was:

  1. open the body file.
  2. go to all the hook functions and remove the & from the second parameter.
  3. and it worked.

The extension is broken and unmaintained - keeping this bug open to please bugzilla.

[Fixing the "Component" field - SelectCategoryTagCloud != SelectCategory]