"An error has occurred" within a multisite installation using checkout

themanwithnoshoes

Joined: 2007-03-20
Posts: 7
Posted: Tue, 2007-03-20 07:08

All,

I have two installs of G2 (both running great, thank you!) but have stumbled across a weird error. When using 'checkout' if I perform certain actions (ie continue shopping) from within the SECOND installation, I get the message "an error has occurred" and G2 returns me to the home page of the FIRST! I have worked out that if I replace the domain name that then appears, with the domain name of the second install (without deleting the rest of the URL) everything seems fine. Is this a 'feature' ;-). Is there a way around it?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2007-03-20 13:30

FAQ: What information is required when I ask for help in the forums?
What 3rd party module are you using?

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
themanwithnoshoes

Joined: 2007-03-20
Posts: 7
Posted: Tue, 2007-03-20 19:56

I've downloaded the 'checkout' module (which consists of cart, checkout by email and checkout by paypal) from the 3rd party modules page. I also have the (official?) cart module.

FYI:

Gallery version = 2.1.2 core 1.1.0.2
PHP version = 5.2.0 apache2handler
Webserver = Apache/2.0.59 (Win32) PHP/5.2.0
Database = mysql 5.0.27-community-nt, lock.system=database
Toolkits = ImageMagick
Acceleration = none/900, none
Operating system = Windows NT BLUEHAZE-WEB 5.1 build 2600
Default theme = PGtheme
Locale = en_GB
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2007-03-20 22:30

http://codex.gallery2.org/Gallery2:Modules:checkout

Quote:
This module now no longer needs to plug into Gallery's included 'Cart' module, so you can de-activate and uninstall the 'Cart'. I'd recommend doing that for the moment to save confusion of having two 'add to cart' links for each item. I do plan to deal with this issue in future versions.

@multisite: No feedback since I submitted the bug report;
http://sourceforge.net/tracker/index.php?func=detail&aid=1532949&group_id=152877&atid=785735

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
themanwithnoshoes

Joined: 2007-03-20
Posts: 7
Posted: Wed, 2007-03-21 17:24

I have tried it both with and without the 'official' cart module. Without it I have some issues with other parts of the checkout process. The problem I have here specifically relates to returning to the second website after viewing cart contents. Essentially if I continue the checkout process the procedure works fine, it is when I click on 'continue shopping' that the problem occurs. As mentioned before, simply transposing the second domain name into the URL string makes it all work properly. I am no programmer but it appears as though the code returns the name of the core installation site, hence the problem. Possible?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2007-03-21 22:34

Follow the thread mentioned in the bug report. I think a solution was found.

 
themanwithnoshoes

Joined: 2007-03-20
Posts: 7
Posted: Thu, 2007-03-22 17:57

Spot on! Thanks for this Dave - much appreciated. The only issue (that I am not overly concerned about really) is that when using this patch after returning to the previous page, the cart indicates that it is empty. When viewing however it contains the correct items. Not sure if you/your team were aware of this.

Anyways - many thanks once again for your help on this one.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2007-03-23 03:34

This is a 3rd party module and the gallery "team" have no control over it.
Try to update the bug report and see in the author/developer can assist.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team