Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

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

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

Class MySQLQuery error on Installation..


Reply

4 Posts   2507 Views

Avatar
Zombie_lover

14 April 2008 at 3:36pm (Last edited: 17 April 2008 2:51am), Community Member, 3 Posts

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!

Avatar
Zombie_lover

14 April 2008 at 3:55pm (Last edited: 17 April 2008 2:53am), Community Member, 3 Posts

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?

Avatar
wifiman

7 September 2008 at 1:54pm Community Member, 20 Posts

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.

Avatar
Hamish

15 September 2008 at 8:54pm (Last edited: 15 September 2008 8:56pm), Community Member, 712 Posts

Solution found, see thread [url=http://silverstripe.com/site-builders-forum/flat/169752?showPost=171344#post171344]here[/url]:

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").