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

Linker.php xml error

 * MediaWiki version: 1.51.1
 * PHP version: 5.2
 * MySQL version: 5.0.51-community
 * URL: http://preim.hostzi.com/mediawiki/index.php/Main_Page

Just after installation i cannot access the wiki because i get this error.

Fatal error: Class 'Xml' not found in /home/a8814660/public_html/mediawiki/includes/Linker.php on line 1042

That line contains: $attribsText .= Xml::expandAttributes( $attribs );

—122.57.201.107 22:26, 12 September 2009 (UTC)

(RESOLVED) Warning: mkdir [function.mkdir]: Permission denied
Sorry, I already mentioned my problem at MediaWiki Users, but I'm really going nuts here. I checked like every mkdir permission problem known to Google and I just don't know what to do anymore.

Background
I just moved my wiki family (5 installations: 4 language versions (MediaWiki 1.14) and one pool wiki (MediaWiki 1.13) for files) to a new server. On the old server everything worked fine.

On the old server I exported the MySQL databases via phpMyAdmin (with complete inserts).

I downloaded all files from the old wiki installations via ftp and uploaded everything to the new server and imported the databases via

Environment
Each wiki has a subdomain like wikipedia.org does (I'm using the same IP for each subdomain and  in the httpd.conf)
 * OpenBSD 4.5
 * Apache 1.3
 * PHP 5.2.8 (with enabled GD support, safe_mode	is off)
 * MySQL 5.0.77

Permissions

 * Every wiki directory including files is owned by the Apache user and group (www:www)
 * The images directory (including subdirectories) of the pool wiki is 777, the files are 644

Configuration
The LocalSettings.php of the pool wiki looks like this:

The LocalSettings.php of each language version looks like this:

Pool wiki

 * If I go to Special:UncategorizedFiles every thumbnail shows up 95 pixels width (95px-file.jpg)
 * If I resize an image to 123px, it creates the 123px-file.jpg so everything works fine here

Language versions
Warning: mkdir [function.mkdir]: Permission denied in /path/to/wiki/includes/GlobalFunctions.php on line 2012
 * If I load an article with an image thumb that has not been accessed before on the pool wiki, I get a blue link showing File:name.jpg
 * If the file has been loaded on the pool wiki before, I can see the image in thumbnail size, but it's actually the original size (just resized via HTML) and I get the following error:
 * If I press reload the error is gone (the thumbnail is still not really resized, just via HTML).
 * If I load the same site in a different browser, the error is back again.

I upgraded every wiki to 1.15.1, so there isn't even a difference between the wikis like it was before. Still no success.

Cheers, --Till Kraemer 09:35, 26 September 2009 (UTC)


 * Ok, it works now! :) I changed the actual path in LocalSettings.php




 * to


 * Thanks + cheers, --Till Kraemer 09:31, 27 September 2009 (UTC)
 * Thanks + cheers, --Till Kraemer 09:31, 27 September 2009 (UTC)

Hi

I have installed the media wiki on Tomcat 5.5 MySQL is installed and running. MediaWiki 1.15.1 is installed on Tomcat

When I ran the config script, I got the following error

javax.servlet.ServletException: PHP Warning: require(/languages/Language.php): failed to open stream: No such file or directory in C:\tom55\webapps\wiki\includes\AutoLoader.php on line 582 PHP Fatal error: require: Failed opening required '/languages/Language.php' (include_path='.;C:\php5\pear') in C:\tom55\webapps\wiki\includes\AutoLoader.php on line 582

Appreciate your help on this

Ravi

Internal Server Error only when submitting certain text.

 * MediaWiki version: 1.15.1
 * PHP version: PHP 5.2.11
 * MySQL version: 5.0.81
 * URL: http://orosso.net/wiki/index.php?title=Selecting_the_Site_Template&action=edit

When writing the following sentence and clicking "Save page" we receive an error "Internal Server Error" All other text that we have tried seems to work fine.

here is the sentence: In order to start selecting the site template, choose "Select Site Template" from the "Design Options" menu.

—76.8.73.99 19:45, 7 October 2009 (UTC)


 * Do you have mod_security running? If so, disable it or configure it not to interfere with MediaWiki. —Emufarmers(T 00:15, 8 October 2009 (UTC)

Configuring sendmail for mediawiki

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.10 (apache2handler)
 * MySQL version: 5.1.37-community
 * URL:

I have set up a wiki for our organization and is up and running smoothly. I now have a challenge to configure emails for wiki. I have installed our wiki on RHEL 4. I have sendmail installed on the Red HAT machine and trying to configure wiki for sendmail. I saw in one of the articles which says "wiki by default uses sendmail to send emails". But in my case it is not doing so, having a hard luck in configuring it. In my case wiki is using PEAR mail to send emails. Can anyone please let me know how to configure sendmail for wiki.

—202.142.4.253 02:29, 15 October 2009 (UTC)