Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

GSP doesn't work with Umbraco
majikjohnson@hotmail.com
#1 Posted : Friday, 13 May 2011 4:53:26 AM(UTC)
Rank: Member

Joined: 12/05/2011(UTC)
Posts: 5
Location: UK

Hi,

I have been trying to get GSP working in my Umbraco environment.

I am working on my local machine. I installed Umbraco 4.7.0 using WebMatrix, and then downloaded the v2.4.8 binary distribution of GSP. I am using .NET 4.0.

I have managed to successfully get GSP installed. I painstakingly merged the Umbraco and GSP web.config files, created a Umbraco macro using the GalleryServerPro.Web.Gallery control and added the macro to my page. When I load a page containing the macro/GSP control, the Gallery appears on the page correctly. So everything is good up until this point.

However, when I click the log in link, nothing seems to happen. This is true if I try to add the GSP macro to the Umbraco 'Basic' starter kit template, or my own Umbraco site template.

Actually, to say 'nothing seems to happen' is not strictly true... When I open Firebug, I can see that the dgLogin div is getting toggled from 'visibility: hidden' to 'visibility: visible', but the login box is not showing up on the page. Here is a screenshot from Firebug:

Firebug Console Output

As I can see that the dgLogin div is getting toggled, I don't think this is the 'dgLogin is undefined' issue. The dgLogin_HeaderSpan, dgLogin_InnerSpan and dgLogin_FooterSpan divs are all empty. Is this normal?

I can't see any JavaScript errors in the Firebug console.

Any ideas what might be causing this?

Many thanks,

Matt
Roger Martin
#2 Posted : Friday, 13 May 2011 7:24:58 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

I am 90% sure you are experiencing either a network error (e.g. missing javascript file, etc) or a javascript error. Since you don't think there is a javascript error, do you see any network errors (use the Net tab in Firebug)? Look for 404 errors, which can usually be traced to misconfigured HTTP handlers and/or modules in web.config.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
majikjohnson@hotmail.com
#3 Posted : Saturday, 14 May 2011 8:36:15 AM(UTC)
Rank: Member

Joined: 12/05/2011(UTC)
Posts: 5
Location: UK

Hi Roger,

Thanks for your reply.

I have been through my web.config file again, and I can't see anything wrong with it. I have attached a copy for reference.

I checked the network panel when requesting the page containing the GSP control, and all of the resources were downloaded correctly and got HTTP 200s.

Can you confirm that the dgLogin_HeaderSpan/InnerSpan/FooterSpan divs should be empty?

Thanks again,

Matt
File Attachment(s):
web.config.txt (22kb) downloaded 3 time(s).
majikjohnson@hotmail.com
#4 Posted : Saturday, 14 May 2011 12:59:20 PM(UTC)
Rank: Member

Joined: 12/05/2011(UTC)
Posts: 5
Location: UK

I wanted to make sure that it was not my own site's CSS or JavaScript that was conflicting with GSP and causing the issue I am seeing. So in an attempt to do this, I carried out these steps:

1. Installed a new instance of Umbraco 4.7.0 using Web Matrix. It was a clean install, without any starter packs.
2. Created a new .NET 4.0 website in Visual Studio, and copied in the files from the GSP 2.4.8 binary distribution. I used the 4.0 version of web.config that came with the distribution.
3. Ran 'default.aspx' in the GSP website, and performed the installation/configuration steps.
4. Confirmed that the default media gallery works correctly (Log in link worked fine).
5. Copied the files/folders from my GSP project to my Umbraco project (App_Data, App_GlobalResources, bin, gs)
6. Replaced the web.config file in my Umbraco project with the web.config attached to my previous post.
7. In Umbraco, added a new Document Type and corresponding template, without any properties
8. Added the contents of the 'default.aspx' page from my GSP website to the Umbraco template
9. Created a content page in Umbraco based on the template
10. Loaded the content page in a web browser.

I found that the log in link still did not work. Therefore there is either an issue in the web.config file, or GSP 2.4.8 is not compatible with Umbraco 4.7.0 out of the box.

Can you confirm that my web.config file looks okay?
Roger Martin
#5 Posted : Saturday, 14 May 2011 2:15:44 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Unfortunately, I don't have the time to help everyone with integration issues. Can you look at the demo site to see how it behaves? You can also install a stand-alone version to use as a reference.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
majikjohnson@hotmail.com
#6 Posted : Saturday, 14 May 2011 3:10:51 PM(UTC)
Rank: Member

Joined: 12/05/2011(UTC)
Posts: 5
Location: UK

I you look at my previous post, you will see that I did install the standalone version and it works fine.

then I tried to install vanilla GSP within vanilla Umbraco.

I wouldn't be so quick to write this off as 'my integration issue'. At this stage, it is looking more like there is an interoperability issue with Umbraco and GSP.

The issue seems to be that for some reason, dgLogin_InnerSpan is not getting populated. I assume that this is done server side, so there is a fair chance that this is a GSP issue.
Roger Martin
#7 Posted : Saturday, 14 May 2011 8:57:54 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

If you are able to get a stand alone version working, can you use that to get the answer to your question about whether the divs should be empty? That dialog is rendered by the ComponentArt Dialog control, and unfortunately I don't know the inner workings of it.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
jhkings
#8 Posted : Wednesday, 19 October 2011 12:25:26 AM(UTC)
Rank: Member

Joined: 11/11/2009(UTC)
Posts: 7

Hi Matt,

Did you take a look at my post?
http://forum.galleryserv...928_GSP-in-Umbraco.aspx

I believe your issue has to do with the providers. After that, make sure your groups are aligned between Umbraco and GSP. To test, set one of your Umbraco account as admin and add to the admin group. On GSP side, make sure you have an admin group. As I remember, it was a bit tricky to get it to work at first.

john
majikjohnson@hotmail.com
#9 Posted : Wednesday, 19 October 2011 4:31:48 AM(UTC)
Rank: Member

Joined: 12/05/2011(UTC)
Posts: 5
Location: UK

Thanks John.

It has been a long time since I looked at this as I got stuck and wasn't able to find any help.

I will give it another go and have a look at the providers.

Matt
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.