Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Class MySQLQuery error on Installation..

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 2491 Views
  • Zombie_lover
    Avatar
    Community Member
    3 Posts

    Class MySQLQuery error on Installation.. Link to this post

    I am using Omnis web hosting. I uploaded silverstripe to a folder in my root called sscms.

    This is what I keep getting when I try to install:

    Installing SilverStripe...

    I am now running through the installation steps (this should take about 30 seconds)

    If you receive a fatal error, refresh this page to continue the installation
    # Creating 'mysite/_config.php'...
    # Creating '.htaccess' file...
    # Building database schema...

    Fatal error: Class MySQLQuery cannot extend from interface Query in /webroot/s/t/studi034/www/sscms/sapphire/core/model/MySQLDatabase.php on line 448

    Here are some stats on what I'm using:
    Unix Hosting
    Web Server: Apache/2.0.59
    MySQL Version: 5.0.46-enterprise-gpl
    PHP Version: 5.2.x

    Requirements
    PHP Configuration
    PHP5 installed OK (PHP version 5.2.5-p20080206-pl3-gentoo)
    GD2 support OK
    XML support OK
    MySQL support OK
    Memory allocated (PHP config option 'memory_limit') OK (128M)
    Check that the php.ini setting allow_call_time_pass_reference is on OK

    File permissions
    Does the webserver know where files are stored? OK (/webroot/s/t/studi034/www/sscms/)
    mysite/ folder exists OK
    sapphire/ folder exists OK
    cms/ folder exists OK
    jsparty/ folder exists OK
    Is the .htaccess file writeable? OK
    Is the mysite/ folder writeable? OK
    Is the tutorial/ folder writeable? OK
    Is the assets/ folder writeable? OK
    Is the temporary folder writeable? OK

    Webserver Configuration

    Server software I can't tell what webserver you are running. Without Apache I can't tell if mod_rewrite is enabled.
    mod_rewrite enabled I can't tell whether mod_rewrite is running. You may need to configure a rewriting rule yourself.

    Every time its the same message. I would sincerely appreciate any help someone would be able to offer. Thanks for your time!

  • Zombie_lover
    Avatar
    Community Member
    3 Posts

    Re: Class MySQLQuery error on Installation.. Link to this post

    I talked to the guys in IRC here and they said check w/my Hosting Provider b/c it sounds like a problem between MySQL and the webserver....here is their response:
    _________________________________________________________________________
    Dear Customer:

    There's no correlation between this error and trouble with the
    database or web server. This error is something procedural in PHP
    where one class can not extend another.

    The page you sent says "If you receive a fatal error, refresh this
    page to continue the installation" What happens if you refresh the
    page?

    Thank you
    ______________________________________

    When I refresh, it just loads the same thing, I have even tried deleting everything and starting fresh to no avail....

    Can ANYONE shed some light on this?

  • wifiman
    Avatar
    Community Member
    20 Posts

    Re: Class MySQLQuery error on Installation.. Link to this post

    I also use Omnis as my web hosting provider. I really want to use Silverstripe, but am having the exact same problem as described on this thread. Has anyone figured out what the issue is? It must be easily solved... please advise.

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: Class MySQLQuery error on Installation.. Link to this post

    Solution found, see thread here:

    You have a PHP extension "onPHP" that contains an interface called Query. Unforunately, Query is supposed to be an abstract class defined by SilverStripe, but the onPHP interface is getting in the way.

    A couple of options:

    1. get your host to disable onPHP

    2. modify your SilverStripe installation - change the word "Query" in line 398 of MySQLDatabase.php and 483 of Database.php (both found in sapphire/core/model) to a name of your choice (eg "SS_Query").

    2491 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.