MediaWiki - Fatal error: Cannot instantiate non-existent class: outputpage in ...

Posted on 2006-04-16
Last Modified: 2008-01-09
Could someone hook me up with an answer here? 500 easy points. I'm trying to install MediaWiki and get this error:

Checking environment...

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

    * PHP 4.3.11 installed
    * PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title)
    * Have XML / Latin1-UTF-8 conversion support.
    * PHP's memory_limit is 16777216. If this is too low, installation may fail! Attempting to raise limit to 20M... ok.
    * Have zlib support; enabling output compression.
    * Neither Turck MMCache nor eAccelerator are installed, can't use object caching functions
    * Found GNU diff3: /usr/bin/diff3.
    * Found ImageMagick: /usr/local/bin/convert; image thumbnailing will be enabled if you enable uploads.
    * Found GD graphics library built-in.
    * Installation directory: /home/killercu/
    * Script URI path: /mediawiki
    * Environment checked. You can install MediaWiki.

      Generating configuration file...
    * Database type: mysql

      Fatal error: Cannot instantiate non-existent class: outputpage in /home/killercu/ on line 291


Question by:rhinez0rz
    LVL 9

    Accepted Solution

    I have just downloaded and installed it on my server as well - but the main page looks completely different.
    There seems to be formatting issues with your installation.

    Line 53 of Setup.php is require_once( 'OutputPage.php' );
    OutputPage.php houses the class not being found on your server.  Check to see that the file exists mediawiki/config/OutputPage.php
    LVL 6

    Expert Comment

    If the file mediawiki/config/OutputPage.php did not exist, then the script would have failed at Line 53 of Setup.php.
    require_once( 'OutputPage.php' );

    What's on line 291 of Setup.php?
    LVL 9

    Expert Comment

    Line 291 of Setup.php:
    $wgOut = new OutputPage();

    Which is where it dies.  I've done a search through the file and the class is only declared there.
    I don't understand it either.  WilliamFrantz is right - if my Setup.php is the same as rhinez0rz, then the script should generate the error on line 53.  

    What happens to require_once() calls under different errorchecking settings?  Would it ever be ignored if the file does not exist if error reporting is set to NONE?

    Author Comment

    output.php doesn't exist on my server and it doesn't exist in the package I downloaded and uploaded to the server.
    LVL 6

    Expert Comment

    The file is called 'OutputPage.php' not 'output.php'.  I'm pretty sure you have it or the script would have died on line 53.  Although, this entire topic is making me question what require_once() actually does.

    Author Comment

    What version did you download? I'm using 1.6.3... maybe thats the problem?

    Author Comment

    I think it has something to do with my php version. It's below the reccomended versions mentioned in the install.
    LVL 9

    Expert Comment

    I downloaded MediaWiki 1.6.3
    I am running PHP Version 5.0.5 and MySQL 5.0.15-nt.
    Perhaps it is because your PHP is below specs.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Easy Project Management (No User Manual Required)

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
    A colleague recently asked me about how to give his client a small part of the web site that could be completely under the client's control.  Since I have done this sort of thing before to add emergency banners to a web site, I decided I would creat…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now