Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# rich_clark1 3/18/2009 5:27 PM
Hi,

I am having issues with installing cuyahoga to a mssql db (im using vs08), i checked out the latest version from the trunk and changed the connection string and created an empty db and when trying to run for the first time I recieve this error:

could not execute query
[ select site0_.siteid as siteid5_, site0_.updatetimestamp as updateti2_5_, site0_.name as name5_, site0_.homeurl as homeurl5_, site0_.defaultculture as defaultc5_5_, site0_.defaultplaceholder as defaultp6_5_, site0_.webmasteremail as webmaste7_5_, site0_.usefriendlyurls as usefrien8_5_, site0_.metakeywords as metakeyw9_5_, site0_.metadescription as metades10_5_, site0_.templateid as templateid5_, site0_.roleid as roleid5_ from cuyahoga_site site0_ where (lower(site0_.homeurl)=? )or(lower(site0_.homeurl)=? ) ]
Name:siteUrl2 - Value:http://localhost:8080/ Name:siteUrl1 - Value:http://localhost:8080
[SQL: select site0_.siteid as siteid5_, site0_.updatetimestamp as updateti2_5_, site0_.name as name5_, site0_.homeurl as homeurl5_, site0_.defaultculture as defaultc5_5_, site0_.defaultplaceholder as defaultp6_5_, site0_.webmasteremail as webmaste7_5_, site0_.usefriendlyurls as usefrien8_5_, site0_.metakeywords as metakeyw9_5_, site0_.metadescription as metades10_5_, site0_.templateid as templateid5_, site0_.roleid as roleid5_ from cuyahoga_site site0_ where (lower(site0_.homeurl)=? )or(lower(site0_.homeurl)=? )]

The Inner exception says: {"Invalid object name 'cuyahoga_site'."}


After this error I can continue to run the site and go through the installation fine.

When I'm in the admin area and I attempt to add a new section I get the following error when I try to save it (happens with every type of module selected):

could not insert: [Cuyahoga.Core.Domain.Section][SQL: INSERT INTO cuyahoga_section (updatetimestamp, title, placeholder, position, cacheduration, showtitle, siteid, nodeid, moduletypeid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); select SCOPE_IDENTITY()]

Any info on this error would be very helpful as I cant seem to get anything to work without getting passed this.

Thanks,

Rich Clark
# Constructor 3/19/2009 11:10 AM
I have the same when checking the trunk versions.

The first error seems to be when Cuyahoga looks for a 'site' and finds none. Then proceeeds to installation?

The second is when installing a default site. I just bypass this. I am sure they know about it.

You can still get to the admin and check the management area to see what has been done so far. They have stated that 2.0 is not yet ready for use on live jobs so I am sure they are aware of these.
# martijnb 3/19/2009 11:31 AM
Yes, this is one of the reasons why it's not ready for production.

The first problem is caused by the filter that sets the CurrentSite for the ICuyahogaContext and indeed that crashes before the redirect to the installer takes place.

The second issue might be caused beacuse a section now also always has a relation to a site and maybe something is missing here (database, mapping, we'll have a look).