Project:Support desk/Sections/PHP

__NEWSECTIONLINK__

= PHP Error Support =

PHP 5.3 Problem Still Exists
MW's problems with PHP 5.3 appear still not resolved, despite the fix that was reported as http://bugs.php.net/bug.php?id=50394. I'm still receiving similar error messages (eg Warning: Parameter 5 to fnHierarchySaveHook expected to be a reference, value given in ...includes/Hooks.php on line 117) as well as for the Language.php module.
 * This happens because because the function being called expects the parameter to be passed by reference, but the hook doesn't pass it by reference. If your function is called by ArticleSave, you can see that the $minor parameter is not passed by reference. You'll need to remove the "&" before that paramter and it should work again. i Alex  08:18, 30 January 2010 (UTC)


 * I had to add a "&" in 'includes/OutputPage.php (565)':


 * wfRunHooks( 'OutputPageParserOutput', array( &$this, &$parserOutput ) );


 * Maybe that helps someone. 79.216.100.116

When logging in users get Fatal error: Class 'SpecialResetpass' not found

 * MediaWiki version: 1.11.0
 * PHP version: 5.2.6
 * MySQL version: 5.0.45
 * URL: http://www.automaticsubconscious.com/wiki/index.php

When logging into the wiki with a known good username and password when the user clicks the login button the page clears and the following error appears:

"Fatal error: Class 'SpecialResetpass' not found in /home/mbreen/autosub/www/wiki/includes/SpecialUserlogin.php on line 591

—71.192.156.183 03:35, 30 January 2010 (UTC)
 * This part of code only exists since 1.14.0, so check that you have to correct file in includes/SpecialUserlogin.php (if not, you can take it from our subversion repo). 08:14, 30 January 2010 (UTC)

I need to re-index so the search will work.
I try to run the proper scripts and this is what I get. I have version 1.6.10 running on OS X.

ns1:maintenance root# php rebuildtextindex.php Theosebia has a problem Sorry! This site is experiencing technical difficulties. Try waiting a few minutes and reloading. (Can't contact the database server: Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2) (localhost)) ns1:maintenance root#

Thanks in advance! BJ

PHP has encountered an Access Violation at 01E6AC6A

 * MediaWiki version: 1.15.1
 * PHP version: php-5.2.12-Win32
 * MySQL version: 5.1
 * URL: http://localhost/index.php

I have just spend the last day installing PHP, MySQL and configuring IIS to allow me to run Mediawiki on a Windows 2003 server with IIS.

When I load the URL: http://localhost/index.php it take me to the

"MediaWiki 1.15.1 Please set up the wiki first. " page.

However when I try and configure Mediawiki for use and click "Install Mediawiki" I get the following error:

Please include all of the lines below when reporting installation problems.

PHP 5.2.12 installed Found database drivers for: MySQL PHP server API is isapi; using ugly URLs (index.php?title=Page_Title) Have XML / Latin1-UTF-8 conversion support. Warning: A value for session.save_path has not been set in PHP.ini. If the default value causes problems with saving session data, set it to a valid path which is read/write/execute for the user your web server is running under. PHP's memory_limit is 128M. Couldn't find Turck MMCache, eAccelerator, APC or XCache; cannot use these for object caching. GNU diff3 not found. Found GD graphics library built-in, image thumbnailing will be enabled if you enable uploads

PHP has encountered an Access Violation at 01E6AC6A

I have no idea what is causing this. I should add I am a SQL Server DBA who has been given the task of setting this up so php is not my area at all.

Please Help!

—Jkenne01 15:40, 22 February 2010 (UTC)

Hi, I had the same error and just found the solution on this website today: 

Basically the path to your PHP folder set in your Environment Variables needs to be listed before the path to your MySQL folder. Change the order of those paths, reboot, and try running the script again. It worked for me.

Parse Error on line 485 in RecentChange.php

 * MediaWiki version: 1.15.2
 * PHP version: 5.2.0-8+etch13
 * MySQL version: 5.0.32
 * URL: http://mitarbeiterforum.roteskreuz.at/wiki

Hi, The MediaWiki was installed properly without any error-message. It primarily looks good, but if you try to save any changes (anonymously or as registered user, you get a php-error-message: "Parse error: syntax error, unexpected $end in /home/oerk/htdocs/mitarbeiterforum.roteskreuz.at/wiki/includes/RecentChange.php on line 485"

I haven't found anything about this kind of error during my web-research.

—194.112.182.21 08:49, 26 March 2010 (UTC)


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

How can I download to my Sansa mP3 player? Krhales@aol.com

—173.65.229.130 20:11, 5 April 2010 (UTC)

Internal Error on "Upload File"

 * MediaWiki version: 1.12.0
 * PHP version: 5.2.6 (cgi-fcgi)
 * MySQL version: 5.0.45-community-nt
 * URL: http://www.indianlandtenure.org/wiki/index.php?title=Special:Upload

When attempting to Upload File, a message shows up on top of the screen: "Warning: mkdir [function.mkdir]: Permission denied in D:\www\indianlandtenure.org\httpdocs\wiki\includes\GlobalFunctions.php on line 1649".

The heading on the page is "Internal Error" and the text reads: Could not create directory "public/c/c9".

We previously uploaded an image to the site: http://www.indianlandtenure.org/wiki/index.php?title=Image:Example.jpg. We tried uploading pictures as admin and other users, from both on and off our server.

—ILTF 15:06, 8 April 2010 (UTC)