Remember me? forgot password | register

SilverStripe Forum

7881 Posts in 2037 Topics by 1136 members

Jump to:

Site Builders

If this is your first visit, you will need to register before you can post. However, you can browse all messages below.

Community » SilverStripe Forum » Site Builders » I've nearly had enough...
Page: 1 go to end Reply
Author Topic: I've nearly had enough... 457 views
  • phptek
    avatar
    Community Member
    15 posts

    I've nearly had enough... Link to this post

    Ok, this is the 5th or 6th (I've lost count) attempt to do a fresh, clean SS install as I was getting funny errors and newly created folders within the "Files and Uploads" section weren't being stored.

    The issue is after install I get this error:

    Notice: Undefined offset: 0 in /var/www/htdocs/silverstripe/sapphire/core/SSViewer.php on line 144
    Notice: Undefined offset: 0 in /var/www/htdocs/silverstripe/sapphire/core/SSViewer.php on line 144
    Notice: Undefined offset: 0 in /var/www/htdocs/silverstripe/sapphire/core/SSViewer.php on line 144

    Here's what I did:

    Silverstripe 2.2.1 (stable)
    Linux (FC5)
    Firefox 2.0.0.13
    Apache 2.2.8
    PHP 5.2.5
    MySQL 4.1

    * Blew away previous SS installs.
    * Blew away previous SS database.
    * Installed freshly downloaded SS v2.2.1.tar.gz into docroot

    #> wget http://www.silverstripe.com/assets/downloads/PHPInstaller/silverstripe-v2.2.1.tar.gz
    #> tar -zxf silverstripe-v2.2.1.tar.gz
    #> mv silverstripe-v2.2.1 silverstripe ; cd silverstripe
    #> chmod o+w tutorial/ assets/ mysite/ .htaccess

    mysql> CREATE DATABASE silverstripe;
    Query OK, 1 row affected (0.00 sec)
    mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,ALTER ON silverstripe.* TO 'silverstripe'@'localhost' IDENTIFIED BY 'silverstripe';
    Query OK, 0 rows affected (0.00 sec)
    mysql> FLUSH PRIVILEGES;
    Query OK, 0 rows affected (0.00 sec)

    * Went to: http://my-domain.co.nz/silverstripe/
    * Entered MySQL connection details --> "Re-check requirements" --> These database details look all good!
    * Entered admin details under "SilverStripe Administration Account"
    * Selected: Empty template, ready to begin the tutorial.
    * Checked: Send information on my webserver to SilverStripe --> Selected: "Install Silverstripe" --> "Congratulations, SilverStripe has been successfully installed"
    * Deleted install files.

    Notice: Undefined offset: 0 in /var/www/htdocs/silverstripe/sapphire/core/SSViewer.php on line 144
    Notice: Undefined offset: 0 in /var/www/htdocs/silverstripe/sapphire/core/SSViewer.php on line 144
    Notice: Undefined offset: 0 in /var/www/htdocs/silverstripe/sapphire/core/SSViewer.php on line 144

    Any ideas what the matter could be? I *really* want to give SS a chance, but it seems I get so far and I get some annoying error when doing something really straightforward....

    Many thanks.

    Last edited: 4 April 2008 at 2:10pm

  • simon_w
    avatar
    Community Member
    141 posts
    2 SilverStripe Sites

    Re: I've nearly had enough... Link to this post

    Try disabling dev mode, by either editing _config.php and removing the domain you're using or adding ?isDev=0 to the URL.

    This should hide the notice level error messages.

  • phptek
    avatar
    Community Member
    15 posts

    Re: I've nearly had enough... Link to this post

    DUH! *slaps head* - turn off E_NOTICE...(I haven't coded in PHP in over2 years...does it show?...)

    Cheers...

    457 views
go to top Reply

Currently Online:

mocsa, fdqepd, bettsaj, Garrett

Welcome to our latest member: ekoka