SilverCart Forum

We moderate this Forum and we're here to help. Have you already run a forum search to check if your problem has already been solved?

You can help us helping you by providing detailed error messages, screenshots and logfile entries.

SebastianRamon

Page: 1
Topic Where am i going wrong on this installation? 2390 Views

Where am i going wrong on this installation?

8 March 2011 at 4:58pm

Its been about 20 attempts at an install eand on each and every occasion im getting this error

An error occured!
Required configuration for "" is missing. Please log in and choose "SilverCart Configuration -> general configuration" to edit the missing field.

I cant get to login to correct the error (like it hints that i should be able to) as it does not resolve my localhost path folder, project folder is: C:\wamp\www\newcart but it is resolving to C:\wamp\www\

Its driving me slowly insane, i have followed the documentation regarding installation to the letter as i read and understand it, but this error just persists.

Thanks

Re: Where am i going wrong on this installation?

8 March 2011 at 6:04pm

Hello MrFixer,

You discovered an awful bug, I am really sorry. Silvercart demands an Email address of the shop admin which is not set by default yet. There is a fix. The class "SilvercartRequireDefaultRecords" creates a "new SilvercartConfig()" somewhere around line 87. Overwrite this with the following code:

// create a SilvercartConfig if not exist
if (!DataObject::get_one('SilvercartConfig')) {
$silvercartConfig = new SilvercartConfig();
$silvercartConfig->DefaultCurrency = 'EUR';
$email = Email::getAdminEmail();
if ($email != '') {
$silvercartConfig->EmailSender = $email;
$silvercartConfig->GlobalEmailRecipient = $email;
}
$silvercartConfig->write();
}


Now the Admin email which You where asked to set in one of the installation steps will be filled in at the right point.
Please tell me if it worked.
We are fixing some other bugs and are about to release a new version.

Re: Where am i going wrong on this installation?

8 March 2011 at 9:41pm

Hi Roland.

Many thanks for the quick reply, i did the overwrite to the class as suggested and the issue still remains, but if theres an update iminent then i shall just put it to bed and wait for that, cant wait to see it working though,

Regards
Martin

Re: Where am i going wrong on this installation?

9 March 2011 at 10:07am

Hi Martin,

try to disable the configuration check in /code/pages/SilvercartPage.php.
Set the variable $checkConfiguration to 'false' on line 111 in SilvercartPage_Controller::init() or disable line 118:

SilvercartConfig::Check();

In fact, this is a little hacky but this should resolve your issue until we publish the fixed version.

Regards
Sebastian

Re: Where am i going wrong on this installation?

9 March 2011 at 10:45am

Thanks Sebastian, that works ok and im finally in (can sweep my hair up off the floor and glue it back in now)..

looks like you guys have been quite busy theres a lot more to SilverCart than i was expecting, for an early version its pretty comprehensive.

Regards
martin