Project:Support desk/Sections/PHP

__NEWSECTIONLINK__

= PHP Error Support =

Move wiki to new server with current MW, Fatal PHP error

 * MediaWiki version: 1.13.3
 * PHP version: 5.1.6-20
 * MySQL version: 5.0.45-7
 * URL: Classified (very literally, not a joke! ;-) )
 * OS: RHEL5

I need to move a wiki (1.10.0) from one machine to another, and at the same time upgrade MW to 1.13.3 After untarring MediaWiki, copying the contants of /images and restoring the database, attempting to access the wiki results in an error:

[Tue Jan 20 19:48:14 2009] [error] [client 192.168.1.2] PHP Fatal error: require_once [function.require]: Failed opening required '/var/www/html2/wiki/ LocalSettings.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html2/wiki/ includes/WebStart.php on line 97
 * Copy this file from previous installation if it's absent, otherwise adjust its perissions to make it readable (most likely, 644). Max Semenik 09:06, 6 November 2009 (UTC)

Simple error in .php file

 * MediaWiki version: 1.14.0
 * PHP version: 5.2.4-2ubuntu5.5 (apache2handler)
 * MySQL version: 5.0.51a-3ubuntu5.4
 * URL: none

I'm trying out TurnKey MediaWiki (turnkey-mediawiki-2009.04-hardy-x86.iso). I changed my account (admin) language settings to Swedish, and got a PHP error from the file /usr/local/share/mediawiki/extensions/FCKeditor/FCKeditor.il8n.sv.php. I opened the file and found the error; whoever wrote the file must have copy-pasted everything, so that there was twice as much text as it should have been. I removed excess text, and the PHP error disappeared.

—81.226.252.221 17:00, 18 October 2009 (UTC)

Resetting a User Login Password

 * MediaWiki version:
 * PHP version:
 * MySQL version:
 * URL:

DONT KNOW HOW TO FIND THE VERSION NUMBERS

TRING TO CAHNGE A USERS FORGOTTEN PASSWORD USING THE FOLLOWING COMMAND

E:\www\wiki\maintenance>php changePassword.php --user=butch --password=melbournecup

AND GET THIS MESSAGE

PHP Warning: date: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone _set function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ' Australia/Melbourne' for '11.0/DST' instead in E:\www\wiki\LocalSettings.php on line 151 PHP Parse error: parse error, expecting `T_STRING' in E:\www\wiki\includes\Name space.php on line 49

ANY IDEAS WHATS WRONG?

—Forsg 01:00, 23 October 2009 (UTC)

SourceForge - loss of session data

 * MediaWiki version: 1.15.1
 * PHP version: SourceForge version (unknown)
 * MySQL version: SourceForge version (unknown)
 * URL: http://show-down.sourceforge.net/wiki

I've followed the directions as found here: http://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Sourceforge.net but have been unable to have MediaWiki successfuly run on my SourceForge project web space. When I try to edit any settings I always get the error:

"Sorry! We could not process your edit due to a loss of session data. Please try again. If it still does not work, try logging out and logging back in."

In the above mentioned link for setting up MediaWiki on SourceForge I was unable to do the exact steps for creating a symbolic for the sessions or the images directory. I am using Putty on a Windows OS and it didn't have the 'symlink' command so I had to use instead "ln -s" which appeared to do the same thing. Other than that, I believe I followed the steps exactly. Well, I didn't create new database users, I just set the password for the ones which already existed.

I also did the optional configurations except for the SourceForge logo (which I will also do once the wiki is working.)

Any help is greatly appreciated!

—99.225.181.21 13:34, 6 November 2009 (UTC)

Internal Error

 * MediaWiki version: upgraded to 1.15.1
 * PHP version: 5.2.3
 * MySQL version: 5.0.27

I get the following error when I click on certain links on my page in wiki.

''Internal error ''From Electronic Resources Wiki ''Jump to: navigation, search

''Expected attribute array, got something else in Xml::expandAttributes

''Backtrace:

''#0 D:\websites\Intranet_Lib\erwiki\includes\Linker.php(1042): Xml::expandAttributes(14) #1 D:\websites\Intranet_Lib\erwiki\includes\Parser.php(1403): Linker->makeExternalLink('http://libintra...', 'search the rela...', false, 'text', 14) #2 D:\websites\Intranet_Lib\erwiki\includes\Parser.php(1053): Parser->replaceExternalLinks('internalParse('parse('outputWikiText('view #7 D:\websites\Intranet_Lib\erwiki\includes\Wiki.php(450): CategoryPage->view #8 D:\websites\Intranet_Lib\erwiki\includes\Wiki.php(63): MediaWiki->performAction(Object(OutputPage), Object(CategoryPage), Object(Title), Object(User), Object(WebRequest)) #9 D:\websites\Intranet_Lib\erwiki\index.php(116): MediaWiki->initialize(Object(Title), Object(CategoryPage), Object(OutputPage), ''Object(User), Object(WebRequest)) #10 {main} ''

I did not have this problem when using MediaWiki 1.11

UPDATE: - I noticed a link between this error and my FCKEditor. If the editor is enabled then I get this error on some of the pages. If it's disabled then the pages work fine, but I can't use the editor. Any idea what I can do?

—Srutsam 18:43, 6 November 2009 (UTC)

Blank page after saving a new Page or edited

 * MediaWiki version: 1.15.1
 * PHP version: 5
 * Postgresql version: 8.4
 * URL: private
 * installed extensions: Discussion, QPoll, WikEd, Gadgets

Just installed wiki for the first time it seems to be running OK. Except when creating or editing a page click save button and wiki returns a blank page, so no redirect ????

Yet the new page is created or it has the modifications.

thanks —JustinG 14:14, 13 November 2009 (UTC)
 * See blank page. Max Semenik 15:24, 13 November 2009 (UTC)