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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Installing, up against a wall (mod_rewrite)


Go to End


2 Posts   3585 Views

Avatar
willwrk4u

Community Member, 2 Posts

27 May 2007 at 6:47pm

Edited: 27/05/2007 6:49pm

Hi All,

I'm new to the silverstripe CMS and trying to get it installed to give it a test but having some issues.

I am running on a clean install of OpenBSD 4.1(chrooted and not) with php5-core-5.1.6p0, apache 1.29, mysql-client-5.0.33 and silverstripe 2.0.1. My sql server is on running on a different machine with a version of mysql-server-4.1.22.

I'm running virtual hosts on the machine, here is the silverstripe virtual host info from httpd.conf:

<VirtualHost 192.168.3.110>
ServerAdmin hostmaster@example.com
DocumentRoot /var/www/sites/g/test.com/silverstripe-v2.0
ServerName www.test.com
<Directory /var/www/sites/g/test.com/>
Options All
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

I set permissions on /var/www/sites/g/test.com/silverstripe-v2.0 with the following commands: (just to make it sure it wasn't a permission problems)

chown -R www.www /var/www/sites/g/test.com/silverstripe-v2.0
chmod -R 777 /var/www/sites/g/test.com/silverstripe-v2.0

I edited my /etc/hosts pointing www.test.com to my local machine for the install.

Upon visiting http://www.test.com i see the initial install screen with red trouble signs about the database, I put in the correct connection settings, recheck and the database section is all green but i'm left with an error as follows:
"There are some issues that we recommend you look at before installing, however, you are still able to install the software. Please see below for details"
futher below the two sections in yellow read:

Memory allocated (PHP config option 'memory_limit') SilverStripe needs a minimum of 20M allocated to PHP, but recommends 32M. We can't determine how much memory you have allocated. Install only if you're sure you've allocated at least 20 MB.
Check that the php.ini setting allow_call_time_pass_reference is on allow_call_time_pass_reference is set to '' in php.ini. You can install with allow_call_time_pass_reference not set, but some warnings may get displayed. For best results, turn it on.

I have verified in my php.ini (/var/www/conf/php.ini) (yes apache is reading this php.ini) that these two setting are correct:
memory_limit = 32M
allow_call_time_pass_reference = On

Since the error seems to not be fatal i continue with installation.

During this step i see a page full of errors flash as follows:

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 'assets' folder...
# Creating 'mysite/_config.php'...
# Creating '.htaccess' file...
# Building database schema...

Notice: Undefined index: hastable in /sites/g/test.com/silverstripe-v2.0/sapphire/core/ClassInfo.php on line 13

Notice: Undefined index: hastable in /sites/g/test.com/silverstripe-v2.0/sapphire/core/ClassInfo.php on line 13

Notice: Use of undefined constant Datetime - assumed 'Datetime' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Datetime - assumed 'Datetime' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant HTMLText - assumed 'HTMLText' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Datetime - assumed 'Datetime' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Undefined variable: indexType in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/MySQLDatabase.php on line 168

Notice: Undefined variable: indexType in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/MySQLDatabase.php on line 168

Notice: Use of undefined constant Datetime - assumed 'Datetime' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Datetime - assumed 'Datetime' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Undefined variable: indexType in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/MySQLDatabase.php on line 168

Notice: Undefined variable: indexType in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/MySQLDatabase.php on line 168

Notice: Use of undefined constant Datetime - assumed 'Datetime' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Datetime - assumed 'Datetime' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Varchar - assumed 'Varchar' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Datetime - assumed 'Datetime' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Varchar - assumed 'Varchar' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Undefined variable: indexType in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/MySQLDatabase.php on line 168

Notice: Undefined variable: indexType in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/MySQLDatabase.php on line 168

Notice: Use of undefined constant Datetime - assumed 'Datetime' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Datetime - assumed 'Datetime' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Varchar - assumed 'Varchar' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Undefined variable: indexType in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/MySQLDatabase.php on line 168

Notice: Undefined variable: indexType in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/MySQLDatabase.php on line 168

Notice: Use of undefined constant Datetime - assumed 'Datetime' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Datetime - assumed 'Datetime' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Varchar - assumed 'Varchar' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Varchar - assumed 'Varchar' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Varchar - assumed 'Varchar' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Datetime - assumed 'Datetime' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Undefined variable: indexType in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/MySQLDatabase.php on line 168

Notice: Undefined variable: indexType in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/MySQLDatabase.php on line 168

Notice: Undefined variable: indexType in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/MySQLDatabase.php on line 168

Notice: Use of undefined constant Datetime - assumed 'Datetime' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Datetime - assumed 'Datetime' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant HTMLText - assumed 'HTMLText' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Varchar - assumed 'Varchar' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Varchar - assumed 'Varchar' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Undefined variable: indexType in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/MySQLDatabase.php on line 168

Notice: Undefined variable: indexType in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/MySQLDatabase.php on line 168

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Varchar - assumed 'Varchar' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Undefined variable: indexType in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/MySQLDatabase.php on line 168

Notice: Undefined variable: indexType in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/MySQLDatabase.php on line 168

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Varchar - assumed 'Varchar' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Undefined variable: indexType in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/MySQLDatabase.php on line 168

Notice: Undefined variable: indexType in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/MySQLDatabase.php on line 168

Notice: Use of undefined constant Datetime - assumed 'Datetime' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Datetime - assumed 'Datetime' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant HTMLText - assumed 'HTMLText' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Varchar - assumed 'Varchar' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Varchar - assumed 'Varchar' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Undefined variable: indexType in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/MySQLDatabase.php on line 168

Notice: Undefined variable: indexType in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/MySQLDatabase.php on line 168

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Datetime - assumed 'Datetime' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Datetime - assumed 'Datetime' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant HTMLText - assumed 'HTMLText' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Varchar - assumed 'Varchar' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Varchar - assumed 'Varchar' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Varchar - assumed 'Varchar' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Varchar - assumed 'Varchar' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant HTMLText - assumed 'HTMLText' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Varchar - assumed 'Varchar' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Varchar - assumed 'Varchar' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant HTMLText - assumed 'HTMLText' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Varchar - assumed 'Varchar' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Varchar - assumed 'Varchar' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant HTMLText - assumed 'HTMLText' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Varchar - assumed 'Varchar' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Varchar - assumed 'Varchar' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Int - assumed 'Int' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Boolean - assumed 'Boolean' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Varchar - assumed 'Varchar' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

Notice: Use of undefined constant Datetime - assumed 'Datetime' in /sites/g/test.com/silverstripe-v2.0/sapphire/core/model/Database.php(67) : eval()'d code on line 1

After that brief page of errors I am at the 'rewritetest.php' page notifying me of the following:

mod_rewrite doesn't appear to be working. Make sure:

* mod_rewrite is enabled in your httpd.conf
* AllowOverride is enabled for the current path.

Please check these options, then refresh this page.If you believe that your configuration is correct, click here to proceed anyway.

I have however verified that mod_rewrite IS working using a small test that someone on an earlier post listed from http://www.workingwith.me.uk/articles/scripting/mod_rewrite. The test works as instructed which leads me to believe that the rewrite module is working.

Any ideas???

I went on and cliced on the "click here to proceed anyway" link which takes me to the the final page of my failed installation. The error displayed on this page are as follows:

XML Parsing Error: junk after document element
Location: http://www.test.com/home/successfullyinstalled
Line Number 2, Column 1:<b>Notice</b>: Undefined index: trace in <b>/sites/g/test.com/silverstripe-v2.0/sapphire/main.php</b> on line <b>19</b><br />
^

I am really stuck here and would love to give silverstripe a run. I have tried fresh installs about 4 times to verify that the errors were constant.

Please let me know if additional information is needed, sorry for the long post.

Thanks,

Aaron

Avatar
willwrk4u

Community Member, 2 Posts

28 May 2007 at 4:08pm

Thanks for the reply Andy, after a couple 'gotchas' the install completed. I do have a couple questions though.

I made the recommended changes to the php.ini and was was ultimately brought to the same rewitetest.php page. The only difference changing the the error reporting did was eliminate all of the php errors that i had listed previously. (why did all of those errors come up.. i was especially wondering about the ones similar to the followring as there were so many of them:

Notice: Use of undefined constant Datetime - assumed 'Datetime'

I did manage to catch the "installing silverstripe" page as it flashed up before taking me to the rewritetest.php page, it's pasted below.

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 'assets' folder...
# Creating 'mysite/_config.php'...
# Creating '.htaccess' file...
# Building database schema...
# Checking mod_rewrite works
# ERROR: mod_rewrite not working, redirecting to mod_rewrite test page
I will now try and direct you to rewritetest to troubleshoot mod_rewrite

I went ahead and clicked "click here to continue anyway" and it took me to the congratulations page. Things seem to be working now, but I'm still wondering why silverstripe thinks that mod_rewrite doesn't work.

Thanks again,

Aaron