https://bugzilla.wikimedia.org/show_bug.cgi?id=31943
Web browser: ---
Bug #: 31943
Summary: Images are not showing when using ForeignDBRepo on MW
1.17
Product: MediaWiki
Version: 1.17.0
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Images and files
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
After update from 1.16 to 1.17, images are not showing and, I have 2 error
messages in apache error log:
PHP Warning: mysql_query() expects parameter 2 to be resource, null given in
.../w/includes/db/DatabaseMysql.php on line 23
PHP Warning: mysql_real_escape_string() expects parameter 2 to be resource,
null given in .../w/includes/db/DatabaseMysql.php on line 316
I am using ForeignDBRepo and, it seems to be related.
1) Images are showing on the images repository (1.17 version)
2) Images are showing if using an MW 1.16 version connected to the 1.17 repo.
3) Images are not showing on an 1.17 connected to the 1.17 repo.
My issue is probably the same as this one describe here:
http://www.mediawiki.org/wiki/Thread:Project:Support_desk/$wgUseSharedUploads_causes_trouble
Here is my ForeignDBRepo configuration:
$wgForeignFileRepos[] = array(
'class' => 'ForeignDBRepo',
'name' => 'base',
'url' => "http://base.ekopedia.org/w/images",
'directory' => '/var/www/base.ekopedia.org/w/images',
'hashLevels' => 2,
'dbType' => 'mysql',
'dbServer' => 'localhost',
'dbUser' => 'ekopedia',
'dbPassword' => 'xxxxxxxxxxxx',
'dbFlags' => DBO_DEFAULT,
'dbName' => 'ekobase',
'tablePrefix' => '',
'hasSharedCache' => false,
'descBaseUrl' => 'http://base.ekopedia.org/Image:',
'fetchDescription' => true
);
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l