Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » I've nearly had enough...

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: 1563 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.

  • simon_w
    Avatar
    Forum Moderator
    467 Posts

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

    1563 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.