Zencart causing me problemo's

argonaught

Joined: 2006-04-06
Posts: 13
Posted: Thu, 2006-04-06 22:04

Im using gallery 2.0.4 with zencart 1.3.0, and intergrating it using a module i downloaded from this site called zcg2-0.8.3.zip.
I have installed zencart and can access it fine under localhost, when i configure the module under gallery i enter the path to the zencart dir, (which is in the same public dir as gallery2) and it comes up with a white page with illegal access.
I admit i know nothing about these aplications and so it is probably a basic error on my part but any help would be massivley appreciated.

Thanks
Argonaught

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2006-04-07 19:49

there is a README included with the zcg2 download that has instructions.. do those help?

 
giventofly76

Joined: 2005-01-01
Posts: 23
Posted: Tue, 2006-04-11 23:39

I'm having the same problem. Any help would be awesome. And no, I read the READMEs and there is no mention of "illegal access". I even searched the forums on the zencart website.

Currently using:
gallery 2.1
zencart 1.3.0
zencart for G2 0.9.0

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2006-04-11 23:50

hard to help without more information..

 
giventofly76

Joined: 2005-01-01
Posts: 23
Posted: Wed, 2006-04-12 00:10

Gallery version:2.1
PHP version: 4.1.14-standard
PHPInfo Link:
Webserver: Apache/1.3.34 (Unix)
Database:MYSQL 4.1.14-standard
Activated toolkits: GD and NETPBM
Operating system: XP
Browser: Firefox 1.0.7

I installed the zencart and it's currently sharing databases with g2. The zencart has a prefix of zen_

Thanks for you help and let me know if you need more info.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2006-04-12 00:17

what did you click, what did you enter, what happened, exact error message?

 
giventofly76

Joined: 2005-01-01
Posts: 23
Posted: Wed, 2006-04-12 01:19

After a fresh instal of G2 I uploaded the zencart module into the appropriate folders. I then installed zencart and it's currently sharing a database with G2 but it's using a table prefix of zen_. I then installed the G2 zencart module which in turn asks to configure it. The cart asks for the path which I enter /home/clrfocus/public_html/zencart/ . After this step, it acts as if it's processing something as if it's going to work but then just goes to a white page with a small error message in the upper left corner: illegal access.

It's probably something small that I'm overlooking. Thanks for you help.

edit: illegal access not illegal operation.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2006-04-12 14:09

maybe try again with G2 in 'immediate' debug mode in config.php and attach the output here (or post a link).

 
Raven69
Raven69's picture

Joined: 2004-01-16
Posts: 24
Posted: Wed, 2006-04-12 17:54

having the same problem, i did a debug and found out that there has to be defined 'IS_ADMIN_FLAG' in the configure.php files of zencart.

But then I got:
Fatal error: Class 'base' not found in /home/.../.../ZENCART_DIR/includes/classes/db/mysql/query_factory.php on line 19

which says:
class queryFactory extends base {
...

so I checked and searched and .... found:

include the following line to 'G2_DIR'/modules/zencart/classes/ZenCartAbstraction.class:
$this->_path . 'includes/classes/class.base.php',
somewhere between line 109 and 111

and it should work (and don't forget to define 'IS_ADMIN_FLAG', 'true')

greetz from Vienna, Austria EUROPE

RaVen

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2006-04-12 18:10

maybe try the latest 1.2.x version of zencart.

 
giventofly76

Joined: 2005-01-01
Posts: 23
Posted: Wed, 2006-04-12 19:59
 
giventofly76

Joined: 2005-01-01
Posts: 23
Posted: Wed, 2006-04-12 21:08

1.2.7d works. Thanks for the awesome suggestion.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2006-04-12 21:37

Thanks for the confirmation.. I've noted that only 1.2.x works on the zcg2 codex page.

 
toastmaster

Joined: 2003-05-01
Posts: 219
Posted: Thu, 2006-04-13 10:44

Does anyone actually have this integrated and working in a site I can look at?
I *think* ZCG2 does what I want it to (ie: embeds G2 into Zen Cart in the same way that WPG2 embeds Gallery 2 into Wordpress) however, before I start messing and upgrading my gallery, I'd like to see it in action! Thanks.

 
Raven69
Raven69's picture

Joined: 2004-01-16
Posts: 24
Posted: Thu, 2006-04-13 13:12

I'm starting with integration of zencart (v. 1.3) and gallery2 (v. 2.1).
So you can have a look on http://www.volgger.com/photoshop/
pls. be aware that this site is sometimes not available because of maintenance.

greetz from Vienna, Austria EUROPE

RaVen

 
kvenator

Joined: 2005-12-09
Posts: 11
Posted: Sat, 2006-04-15 06:14

I have also tried the module with Zen Cart 1.3 and received the illegal access error. If you get it to work with 1.3, please post back. The module works with Gallery 2.1 and Zen Cart 1.2.6 & 1.2.7

 
toastmaster

Joined: 2003-05-01
Posts: 219
Posted: Sat, 2006-04-15 13:53

Hmm, not entirely sure this is what I am looking for - it appears to just show the gallery items as purchasable items. What I want is a gallery "wrapped" Zen Cart. We have a costume hire side-business, and we want people to stay within the one window, for their sake and ours!

 
kvenator

Joined: 2005-12-09
Posts: 11
Posted: Sat, 2006-04-15 17:48

let me know if you find anything like that. The option that I'm considering which is not quite ready is:
xoops cms plus zen cart module for xoops (zen cart v1.2.7 until the gallery zen module works with zen cart 1.3), gallery zen cart module (as discussed here) and xoopsgallery.org (an embedded gallery for xoops not yet updated for gallery 2.1; but close).

 
ekitel

Joined: 2005-08-17
Posts: 30
Posted: Mon, 2006-05-01 20:37

using Zen 1.3 I get this error when I try to click on an item

Warning: main(includes/modules/pages/product_info/main_template_vars_attributes.php): failed to open stream: No such file or directory in /www/t/traditionpho/htdocs/cart/includes/modules/pages/product_gallery_info/main_template_vars.php on line 94

and indeed that file does not exist there! is there any way around this? or should I just use 1.2.7?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2006-05-01 22:40

as mentioned in the docs, and just a few posts up, use 1.2.x
i've asked the zcg2 author to update it for zc 1.3, but if anyone submits a patch before he gets to it, we can apply that too.

 
jcan

Joined: 2006-05-07
Posts: 2
Posted: Tue, 2006-05-09 04:47

Well, after configruration of zen cart integration modules
- path
- category
I've got
"Successfully configured module zencart"
But, is no activation option on the right site.

Gallery 2.1
zencart 12.5d
g21.zencart.inegr..zcg2-0.9.0.tar.gz

any suggestion realy appreciate
Jul

ps:
[with zencart 1.3.0.1 ERR Illegal Access after setup od path to zencart}

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2006-05-09 22:07

did you go back to site admin / modules? what DO you see for zencart?

 
jwashburn

Joined: 2006-05-24
Posts: 5
Posted: Fri, 2006-06-16 01:48

Hey Raven , do you have 1.3 working with 2 of Gallery? Is that what we are seeing on your site. I kept hetting illegal access when I tried it

 
jesphoto
jesphoto's picture

Joined: 2006-02-27
Posts: 46
Posted: Fri, 2006-06-16 10:11

I asked the author of that module about the "illega accsess" what I am having and he said the this module it is not compatible with zencart 1.3.
That means I have to remove 1.3 and install 1.2

looking trought the glass of a lenses

 
jesphoto
jesphoto's picture

Joined: 2006-02-27
Posts: 46
Posted: Fri, 2006-06-16 14:14

Remove 1.3 and installed 1.27.Works, butr I have no tumbnails. Images do not show. My images in G2 are 800X600.
Does the ZC can handle that size of images?

looking trought the glass of a lenses

 
cc5henry

Joined: 2006-06-15
Posts: 12
Posted: Fri, 2006-06-16 22:14
jesphoto wrote:
Remove 1.3 and installed 1.27.Works, butr I have no tumbnails. Images do not show. My images in G2 are 800X600.
Does the ZC can handle that size of images?

looking trought the glass of a lenses

Hmm really weird.. Dunno if the ZC can handle that size but it should have worked in the beginning.

 
kvenator

Joined: 2005-12-09
Posts: 11
Posted: Fri, 2006-06-16 22:50

Try turning on the long url option in the Gallery module admin settings... may require deactivating and reactivating.

Also, there are a couple of thumbnail related settings within Zen cart that may affect the presentation of the thumbnails (e.g. if they are distorted). Keep in mind that you may need to manually select the top level category image in ZC; but I believe the module will generate subsequent sub-category thumbnails.

 
hareslade

Joined: 2006-07-16
Posts: 20
Posted: Mon, 2006-07-17 00:44

I'm just taking faltering steps to attempt modification of the zencart add on for 1.3, in file
$RCSfile: ZenCartAbstraction.class,v $ in the add on fileset for 1.2.xx

Around line 125, ABOVE this code line:
/* Load Zen Cart's database abstraction. Done after includes because of the constant. */
ADD this code block:

$zenBaseClassAbstraction = $this->_path . 'includes/classes/class.base.php';
	if (!$platform->is_file($zenBaseClassAbstraction)) {
	    return GalleryCoreApi::error(ERROR_BAD_PATH, __FILE__, __LINE__);
	}
	require_once($zenBaseClassAbstraction);
	//defeat the zc1.3 illegal access notes
	if (!defined('IS_ADMIN_FLAG')) define('IS_ADMIN_FLAG', true);

I'm slowly trying to sort the thing out for zc1.3,

And if anyone else has done the zencart add-on update for 1.3 already, let me know, it saves my effort ...

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Wed, 2006-07-19 06:32

Would also like to see how others have accomplished this integration.... please speak up. It will help the rest of us as we work this...

 
hareslade

Joined: 2006-07-16
Posts: 20
Posted: Sun, 2006-07-30 00:23

Hi
I have an integration of g2 working in zencart 1.3
the ordinary mode works, that is

- zencart 1.3
- using the version I modified of the original 1.2.xx zencart module for gallery2
- this setup produces a zencart product for each gallery picture that you make
- as with the old module, the links from the zencart products to the gallery2 main picture, cause a new window to open, running the gallery on that new page.
-and the links from the gallery pics point back to the correct zencart product(s)

Check it out at http://hareslade.com/zc_1_3_0_test1/index.php?main_page=index&cPath=67

The 4 products in that category 'gallery' were created in gallery2 only by adding gallery2 pics.

I need someone to load the add on files, check if what I have here works on someone else's zencart 1.3 test cart with gallery2 using a shared database.

If it all seems ok, I'll contact the author & he can formally upgrade the gallery2/zencart add on if he thinks its ok.

Don't all rush at once... anyone want the beta add-on files to test out, feed back to me if it works ok?

Ideally you need to know roughly what any error messages approximately mean :) if things go a bit weird.

============sob story...
I had hoped to embed the gallery page totally within in zencart as well, but it won't have it!

The gallery page itself works fine while embedded in zencart, but the url 'purchase' links (created by the g2 zencart add on) that point back to the zencart products are 'corrupted' by the added base url string that gallery2 insists on adding to all url's, because it thinks it's running in a gallery2 page of its own making.

I have no answer for this, but I understand exactly why its failing, purely because there is no way to remove the gallery2 'base url correction' on just the purchase link url. The embedded mode gallery2 alters ALL links on its embedded page, to suit its own return address.

But of course, we now need purchase links to the zencart (folder) products, NOT links back into the embedded gallery2 (folder) page.

Its easy enough to get a url that 'should' work, using the zencart add on abstraction layer, (and NOT using the url created by PurchaseOptions.inc) - but there's no way of presenting the required link url in gallery 2.

If anyone really expert at gallery2 methods wants to help out, I did put a post up here about it, but no-one's answered in 5 days...

it may need a small add on to create a new callback (gizmo?) to specifically place a link on the gallery main picture page, a link that can be loaded with the correct url for it's specific zencart product page, a url created by the zencart abstraction class etc.

I just don't know how to avoid having the gallery2 embed base path correction added in.

=================

 
hareslade

Joined: 2006-07-16
Posts: 20
Posted: Mon, 2006-07-31 21:28

My beta Gallery2 module-add-on for linking into zencart 1.3.0
is at:
http://www.hareslade.com/zc125/download/BETA_GALLERY2_ZENCART1_3_INTEGRATION.zip

I need your expert beta-testing feedback ... does this fileset work OK?

I can't offer it to the original author for release officially, unless its been tested a bit, as he's not got time to look at it much

It seems to work ok for me

Please test it out, others with less knowledge may want to use it

For functional details, please refer to the official info that comes with the older zencart 1.2.xx version module, available on this site in the modules listings..

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Tue, 2006-08-01 22:36

I will drill down into it this eve. Will work on it with much interest and report back. This is an important element!