Project:Support desk/Sections/PHP

__NEWSECTIONLINK__

= PHP Error Support =

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

Web service Login error

 * MediaWiki version: MediaWiki 1.15.3
 * PHP version:  5.2.9
 * MySQL version: 5
 * URL:

I am currently using webservice but cannot login in your AddPageService.php file. How to solve the this kind of issues.

—Gopi 06:53, 9 June 2010 (UTC) Gopi P

500 Internal Server Error on clicking at red links
500 Internal Server Error on clicking at red links I am getting internal server error in case i am not logged into my wiki site on clicking at links like create/edit/discussion etc, however, after loggingin system works fine.
 * MediaWiki version: 1.15.3
 * PHP version: 5.2.9
 * MySQL version: 5
 * URL:
 * See how to debug. Max Semenik 14:39, 15 June 2010 (UTC)


 * MediaWiki version:
 * PHP version: php 5.2
 * MySQL version: 4.3
 * URL:

Mediawiki update is unable to find the php5? It is pointed to old version php4. How can I resolve this?

—128.164.214.230 19:44, 15 June 2010 (UTC)

PHP T_NAMESPACE error at installation

 * MediaWiki version: 1.11.2-12.1
 * PHP version: 5.3.2
 * MySQL version: 5.1.36-6.8.8
 * URL: http://node36.susestudio.com:16080/mediawiki/config/index.php5

Hi,

At installation time, I get

Parse error: syntax error, unexpected T_NAMESPACE, expecting T_STRING in /srv/www/htdocs/mediawiki/includes/Namespace.php on line 44

According to FAQs, this is due to old (<5.3) PHP, but I'm running 5.3.2

Thanks, J.

—66.41.120.209 03:22, 17 July 2010 (UTC)
 * Older versions of MediaWiki don't support PHP 5.3. Because they are also out of support and lack numerous security fixes, you are encouraged to update to 1.15.4 ASAP. Max Semenik 05:54, 17 July 2010 (UTC)

PHP5.3_2 "parameter expected to be a reference" issue, Downgrading to PHP 5.2,
Compiled from the FreeBSD 8 port tree 1.15.4 5.3_2 PostgreSQL 8.2.17_1
 * MediaWiki version:
 * PHP version:
 * MySQL version:

localhost for testing.
 * URL:

Unable to make DLP running on the mediawiki ( nginx ) architecture described above. Any call to a extension function fails on the following error: Warning: Parameter 3 to ExtDynamicPageList::dplTag expected to be a reference, value given in /usr/local/www/mediawiki/includes/parser/Parser.php on line 3243

Downgrading to lang/PHP52 solve the issue.

as far as i understand, the bug here: http://bugs.php.net/bug.php?id=50394 has not been fixed.

—77.199.136.200 23:32, 22 July 2010 (UTC)
 * Mediawiki should have refused to run the installer if the issue was present... Bawolff 07:19, 23 July 2010 (UTC)


 * What may be the reason to refuse the installation ? it sounds like DPL only is concerned by the issue. Because of the use of arrays as references in  functions args ( LanguageGetMagic) ? see http://bugs.php.net/bug.php?id=51174.--77.199.136.200 11:48, 23 July 2010 (UTC)