Cannot create new customer in Zen Cart module - zcg2_create_account.php results in blank page

cel0202

Joined: 2009-04-26
Posts: 16
Posted: Mon, 2010-04-05 10:08

Hi all,

I have recently set up the Zen Cart module for Gallery and it is working wonderfully so far, except for one important function... I cannot register a new user.

After submitting the new customer information, it results in a blank page with the address of mydomain.com/store/index.php?main_page=zcg2_create_account. I get the following information in the DEBUG.log:

[05-Apr-2010 01:33:18] PHP Warning: main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/Applications/MAMP/htdocs/g2/Embed.php) is not within the allowed path(s): (/home/ME:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in /home/ME/public_html/MYDOMAIN/store/includes/modules/zcg2_create_account.php on line 247
[05-Apr-2010 01:33:18] PHP Warning: main(/Applications/MAMP/htdocs/g2/Embed.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/ME/public_html/MYDOMAIN/store/includes/modules/zcg2_create_account.php on line 247
[05-Apr-2010 01:33:18] PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required '/Applications/MAMP/htdocs/g2/Embed.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ME/public_html/MYDOMAIN/store/includes/modules/zcg2_create_account.php on line 247

Any help would be greatly appreciated...


Gallery version (not just "2"): 2.3.1
Module / Theme name & version: ZenCart Integration Module 3.2.4 with Zen Cart 1.3.8a
PHP version (e.g. 5.1.6): 4.4.4
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33): 1.3.37
Database (e.g. MySql 5.0.32): 4.1.22-standard-log
Activated toolkits (e.g. NetPbm, GD): GD
Operating system (e.g. Linux): Linux
Browser (e.g. Firefox 2.0): Firefox 3.6.3

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Mon, 2010-04-05 16:48

Hi

Version 3.2.4 of the module contains some experimental stuff to automatically register users in G2 when they register in ZC that shouldn't have made it to the release.

To deactivate it, go to /store/includes/auto_loaders/config.zcg2.php and comment out the auto load config lines as so:

//$autoLoadConfig[10][] = array('autoType'=>'class',
//			'loadFile'=>'observers/class.zcg2.php');
//
//$autoLoadConfig[180][] = array('autoType'=>'classInstantiate',
//			'className'=>'zcg2',
//			'objectName'=>'zcg2');

I will get round to completing this feature at some point in future.

--
dakanji.com

 
cel0202

Joined: 2009-04-26
Posts: 16
Posted: Mon, 2010-04-05 18:41

Dayo,

Wow, thanks for the quick response. That worked perfectly, except I am getting the following mail delivery failure (which probably has nothing to do with the module but maybe you'll be able to help):

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

Mail sent by user nobody being discarded due to sender restrictions in WHM->Tweak Settings

I've tried two different emails to test for registration purposes and both bounce back. I've done some quick research and it seems it's a webhost issue?

Regarding the integration of Zen Cart with Gallery... for me, I will be using Gallery as the main front-end with ZenCart as a back-end, only showing purchasing options and checkout. I've hidden all the links/navigations within ZenCart and will always "force" the user to Return to the Gallery via the banner or the Return to Gallery link for their main viewing.

Also, I will be hiding Gallery's login link so that customers will not get confused between that and Zen Cart's login. So far so good, but I still have a long way to go. I still have to set up PayPal, etc.

Thank you for a great module.

 
cel0202

Joined: 2009-04-26
Posts: 16
Posted: Mon, 2010-04-05 18:47

Disregard the mail issue above... I changed the email tranport method within Zen Cart admin from PHP to SMTPAUTH and it worked perfectly!

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Tue, 2010-04-06 15:49
cel0202 wrote:
Regarding the integration of Zen Cart with Gallery... for me, I will be using Gallery as the main front-end with ZenCart as a back-end, only showing purchasing options and checkout. I've hidden all the links/navigations within ZenCart and will always "force" the user to Return to the Gallery via the banner or the Return to Gallery link for their main viewing.

This is exactly how it is supposed to be used and why there are four ways to return to Gallery2 on each product page and at least three on other pages.

Quote:
I will be hiding Gallery's login link so that customers will not get confused between that and Zen Cart's login.

I was working on making linking the logins and registrations between both applications to make this unnecessary for v4.0.0 of the module which depending on my motivation levels and other commitments, will get done at some point.

--
dakanji.com

 
cel0202

Joined: 2009-04-26
Posts: 16
Posted: Sun, 2010-04-11 01:48

v4? Wow... sounds exciting yet scary. Still about a month away getting my website up and running and hopefully the process is painless when it's time to upgrade to v4 of the module. :)

Thanks again for the help.

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Sun, 2010-04-11 18:48

Don't worry ... v4 is a long way away if at all.
--
dakanji.com

 
cel0202

Joined: 2009-04-26
Posts: 16
Posted: Sat, 2010-05-08 08:38

A bit of bad news...

I had to redo my Gallery PLUS the ZenCart module. I modified config.zcg2.php by adding the comment-out as you originally posted and when I create a user, it is still showing the blank page as if the php file was never modified. Am I missing something?

I am so confused.

 
cel0202

Joined: 2009-04-26
Posts: 16
Posted: Sat, 2010-05-08 08:47

I am no longer confused :) ... I had an error in my create_account.php file. I am now able to create new customers...

 
gaurav10feb

Joined: 2010-08-24
Posts: 31
Posted: Fri, 2010-10-08 01:59

Hello I have a same problem but i am unable to find config.zcg2.php file in said folder. I used 3.2.4 but there is no such file...please help

When i disable the zen cart module it does let me create account..