Last modified: 2013-10-30 11:30:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T40612, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38612 - Can't view Special:ListFiles page: Call to a member function transform() on a non-object
Can't view Special:ListFiles page: Call to a member function transform() on a...
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.19
PC Windows 7
: Unprioritized major (vote)
: ---
Assigned To: Nobody - You can work on this!
aklapper-moreinfo
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-23 21:06 UTC by diana.ramirez
Modified: 2013-10-30 11:30 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description diana.ramirez 2012-07-23 21:06:21 UTC
Every time I try to see my image list, by clicking on the  list of uploaded files button, either from upload a single file page or from upload multiple files page, I get the following error: 

Fatal error: Call to a member function transform() on a non-object in /home/tnbzpdrr/public_html/wiki/includes/specials/SpecialListfiles.php on line 198

I'm not sure if someone else is getting the same error, because no solution is found on the internet.
Comment 1 matanya 2012-07-23 21:08:53 UTC
is this on a wikimedia site or on a private installation? 

if it is on a site of wikimedia, can you please mention it?
Comment 2 Platonides 2012-07-23 21:10:18 UTC
The path shows that it's in a private install.
Comment 3 diana.ramirez 2012-07-23 21:11:14 UTC
It´s on a private installation.
Comment 4 Platonides 2012-07-23 21:17:17 UTC
Hola Diana,

http://www.arandatraining.com/wiki/index.php?title=Special:ListFiles/Diana.ramirez
loads fine for me.

What's the url you're following?

I saw a few issues, though:
I see several of your scripts spitting out failures to connect to the db
ara0904209331347.db.3880901.hostedresource.com

You should consider enabling pretty urls:
http://www.arandatraining.com/wiki/index.php?title=Bienvenidos_a_Aranda_WIKI!! 

MediaWiki is translated into Spanish. You'd want to use $wgLanguageCode='es';
in LocalSettings.php
Comment 5 diana.ramirez 2012-07-23 21:22:45 UTC
Hola Platonides,

I'm following this url: http://www.arandatraining.com/wiki/index.php?title=Special:ListFiles

Can you please tell me how I should enable to connect to the database???
Comment 6 Platonides 2012-07-23 21:52:19 UTC
I see an error at http://www.arandatraining.com/wiki/index.php?title=Archivo:Profile_OrdenLogico4BR.png (the file is not on the filesystem) but it doesn't seem to be the source of this error.

Given that http://www.arandatraining.com/wiki/index.php?title=Especial:ListaIm%C3%A1genes&&limit=32& works but http://www.arandatraining.com/wiki/index.php?title=Especial:ListaIm%C3%A1genes&&limit=33 fails I suspect the error lies in http://www.arandatraining.com/wiki/index.php?title=Archivo:ServiceDesk_CWindowsV8_BuscarCompa%C3%B1ia.png
perhaps some prblem with the presence of the letter ñ.
However, http://www.arandatraining.com/wiki/thumb.php?f=ServiceDesk_CWindowsV8_BuscarCompa%C3%B1ia.png&w=500 loads fine, which given Special:Listfiles error I would have expected to also fail if that was the faulty image.
You'll need to investigate why wfLocalFile() is returning false.
Comment 7 Platonides 2012-07-23 22:46:58 UTC
The db errors are at the elearning dir. And I don't know if your config is correct and your db server is down or it's the config what needs to be changed. It's not my db server...
Comment 8 Bawolff (Brian Wolff) 2012-07-24 11:57:41 UTC
>perhaps some prblem with the presence of the letter ñ.

Notice how the ñ is encoded is iso8859-1 form ( %F1 in the url instead of %C3%B1), and that on the file page it lists itself as a duplicate of that file (or actually it seems to list the %F1 variant, and when you actually go to it you view the %C3%B1 form).

I imagine this might have something to do with the issue. Did you upload the file in some special way (not the normal special:upload, maybe a maintinance script was used instead or something).
Comment 9 diana.ramirez 2012-07-24 21:11:24 UTC
I uploaded in the normal way, but when i did the upgrade to 1.19.1 I had some problems with the articles that contains some special characters on its name, and I had to change the db collation for some tables, including the images and imagelinks tables.

May this be the problem?
Comment 10 Bawolff (Brian Wolff) 2012-07-24 21:57:57 UTC
(In reply to comment #9)
> I uploaded in the normal way, but when i did the upgrade to 1.19.1 I had some
> problems with the articles that contains some special characters on its name,
> and I had to change the db collation for some tables, including the images and
> imagelinks tables.
> 
> May this be the problem?

Quite possibly. I think you might have accidentally changed the encoding from utf-8 to iso8859-1
Comment 11 diana.ramirez 2012-07-25 12:56:00 UTC
New collation is latin1_bin. Should I change it to UTF without having problems with images containing special characters???
Comment 12 Andre Klapper 2012-10-24 16:38:42 UTC
Diana: Did you in the end solve the problems? 
If not, which problems still exist?


(In reply to comment #10)
> you might have accidentally changed the encoding from utf-8 to iso8859-1

Sounds very similar to bug 29731.
Comment 13 Platonides 2012-10-28 18:54:57 UTC
Diana, you should have all the tables in the same collation, and let mediawiki know if you are using utf-8 inside latin1_bin or inside utf8 table ($wgDBmysql5 = false / true).
Comment 14 Andre Klapper 2013-01-04 15:25:11 UTC
Unfortunately closing this report as no further information has been provided.

Diana: Please feel free to reopen this report if you can provide the information asked for in comment 12. Thanks!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links