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

I've nearly had enough...


Reply


3 Posts   1697 Views

Avatar
phptek

Community Member, 15 Posts

4 April 2008 at 2:08pm

Edited: 04/04/2008 2:10pm

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.

Avatar
simon_w

Forum Moderator, 474 Posts

4 April 2008 at 5:36pm

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.

Avatar
phptek

Community Member, 15 Posts

7 April 2008 at 9:26am

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

Cheers...