Page MenuHomePhabricator

Attempts to login result in "Fatal error: Cannot redeclare class mediawiki_i18n"
Closed, DeclinedPublic

Description

Author: chris.moran

Description:
System is AIX running php 4.x
Install went ok, though had to use LocalSettings.php from olderinstall as the
install script wouldn't create it's own LocalSettings.php file and the one it
gave the "it would have created this content" did not work.

When trying to log in:

Fatal error: Cannot redeclare class mediawiki_i18n in
/machinepathtoaccountwithheld/public_html/wiki/includes/SkinTemplate.php on line 43

Wiki is set to allow open editing right now, so editing does work, but user
wants "user" edit access only.


Version: 1.6.x
Severity: major
OS: other
Platform: Other
URL: http://www.uvm.edu/~usernamewitheld/wiki/index.php?title=Special:Userlogin&returnto=Main_Page

Details

Reference
bz6623

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 9:16 PM
bzimport set Reference to bz6623.
bzimport added a subscriber: Unknown Object (MLST).
  1. Provided URL does not work
  1. Please include the exact error message with the failing

LocalSettings.php

  1. Please provide copies of the old and new LocalSettings.php
  1. Please confirm that you have uploaded all the new files, complete and

uncorrupted, and that paths in LocalSettings.php point to the correct
files.

  1. If a custom skin is in use, please check it for correctness and

insure it is not including SkinTemplate.php extra times.

chris.moran wrote:

Copied older LocalSettings.php file

Version that originally came from a 1.5.x install.

Attached:

chris.moran wrote:

http://www.uvm.edu/~merhart/wiki/index.php?title=Special:Userlogin&returnto=Main_Page

2)Exact error message (as already given)
Fatal error: Cannot redeclare class mediawiki_i18n in
/.../uvm.edu/fs/rack1b/u/ugrads/merhart/public_html/wiki/includes/SkinTemplate.php
on
line 43

3)version attached that was what was copied over. I'm not sure I have access to
te content of what was attempted to be created (the one that did not work)

  1. Package was untarred in public_html directory and renamed to "wiki". Nothing

else was moved or changed. Except for the specific user information,
LocalSettings.php is set up eactly the same was as on a 1.6.7 version currently
running.

  1. no custom skin is being used at this time. The install itself is fresh. There

is a reference in the LocalSettings.php file that referes to a different image
that was used, but it has only the effect of not showing the image (logo image).

chris.moran wrote:

Problem solved.
mediawiki installer gave proper text to put in LocalSettings.php but when it was
copied using pico, the w switch wasn't used to it cause a couple lines to wrap.

pico -w LocalSettings.php and pasting would have worked fine. I just edited the
file.

Still don't know why it was't able to create the file on it's own originally,
but I'm guessing it was a perms issue in the folder.