[Done v1.3.7] account creation bug when displaying create-account-success page
Earlier today I installed zencart on my server. I used wget unzip changed the ownership and group on the files to be used by my apache user. Install went smoothly. I go to create a test user and I get the following error.
Code:
Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/eastmedent.com/httpdocs/store/includes/templates/template_default/templates/tpl_create_account_success_default.php on line 26
I did a little research on the forums, thinking that this was a common problem, oddly I found that it only happened when upgrading or using a mod by NotGoddess. Both of which I haven't done, as this is a default install, completely fresh.
A little about my server:
Apache on Red Hat
PHP 4.3.2
MYSQL 3.23.58
I gave it a shot at debugging what's going on and I'm feeling it has to do with line 41 of the the create_account_success header_php.php. But today is one of those days where I just can't think.
PHP Code:
$addressArray[] = array('firstname'=>$addresses->fields['firstname'],
'lastname'=>$addresses->fields['lastname'],
'address_book_id'=>$addresses->fields['address_book_id'],
'format_id'=>$format_id,
'address'=>$addresses->fields);
Any help would be greatly appreciated.
Thanks,
David
Re: account creation bug when displaying create-account-success page
Your two client sites wouldn't be sharing the same database would they?
Re: account creation bug when displaying create-account-success page
I'd like to jump in on this one.......same thing just happened to me. I did a fresh install, new database, everything. Everything was working fine (much smoother than the site I just got done upgrading) but when I went to create a new account I got that same error mentioned above. Also, my page displays funny. The text runs way off to the right side of the page, with the continue button almost off the cart page entirely. All my other pages are fine. I did reload the original file just in case it had become corrupt or something but the error continued. Also reloaded the file that is working now in my live store to see if that helped but the error continues as well. I'm open to any solutions as well. If you would like to test my page go here:
http://www.astudiojdesign.com/new_st...ain_page=login
Re: account creation bug when displaying create-account-success page
Did you apply the fix I mentioned earlier?
http://www.zen-cart.com/forum/showth...487#post287867
(Sorry, that's a rhetorical question, since I can see the error on your site if I force the main_page setting. Please apply the fix and then advise if there's still a problem.)
Re: account creation bug when displaying create-account-success page
Yes, that helped with the error and formatting problem except it's still not working right. Everything appears to look correct but I have a box under my "success" congratulations message and in the box it says "primary address" in blue but nothing else. I clicked the continue button but it takes me back to the home page. I should mention that I received the email confirmation stating I have successfully created my account. I refreshed my page and tried logging in again but all that happens is the create account page keeps repeating itself. I never am able to log in or check out.
Re: account creation bug when displaying create-account-success page
You're saying that:
1. this is a fresh v1.3.6 install with NO addons ?
2. switching to "classic" template has the same effect?
3. you can create an account, but *always* get the indicated error?
4. you can see the account in the admin?
5. the address info as seen in the admin is correct?
6. you cannot log in using this account ?
7. you cannot access My Account to review the information ?
What version of PHP?
What version of MySQL?
What operating system is your server running?