Topic on Project:Support desk

[RESOLVED] Update.php Problem

3
Pocket lint (talkcontribs)

Hi, I'm having trouble downloading the CentralNotice extension, it seems that the tables aren't being generated in mysql. I suspect it's because I'm not running the update script properly. Since I used Apache on a local host setup for Windows, I've tried following the directions on http://www.mediawiki.org/wiki/Update#Run_the_update_script, but I'm not sure if I'm opening update.php with php.exe

I've been using a php file located in C:\MediaWiki\xampp\php, but when I right click and look at the file properties, it says the type of file is Application (is that the same as .exe?) and the description is CLI. Whenever I use this, it opens a new tab in firefox and I download a new update.php file, which i use to replace the old update.php file. And yet, when I test the CentralNotice extension by going to Special:NoticeTemplate to try to create a new banner, I get the following error:

A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:

   (SQL query hidden)

from within function "IndexPager::reallyDoQuery (TemplatePager)". Database returned error "1146: Table 'testwiki.cn_templates' doesn't exist (localhost)".

Can anyone help me? This problem's been frustrating me for the longest :/

MediaWiki 1.17.0 PHP 5.3.5 (apache2handler) Mysql 5.5.8 Windows XP

--Pocket lint (talk) 15:52, 1 November 2012 (UTC)

Fereal (talkcontribs)

To use update.php, go to the command line of Windows [run > cmd] if XP, or type cmd in search in 7.

On the command line, enter something similar to this, without quotes: "C:\MediaWiki\xampp\php\php.exe C:\MediaWiki\xampp\htdocs\[pathofyourwiki]\maintenance\update.php"

The command line will tell you if the update was a success or not.

Reply to "[RESOLVED] Update.php Problem"