Zen Cart Logo
Forums / General Questions / FEC Create New Account in Login.php no longer working for me

FEC Create New Account in Login.php no longer working for me

Views: 5,465

Results 21 to 36 of 36
23 Mar 2013, 11:20 PM
#21
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

FEC Create New Account in Login.php no longer working for me

You said the error was: "Call to a member function RecordCount() on a non-object"
and that the line where the error was occurring contained:```
$zone->RecordCount()

That error means that $zone isn't a valid object at that point. And, since it's referencing RecordCount() it strongly suggests that $zone was expected to be a result of a DB query, such as $zone = $db->Execute($sql)

The error suggests that $zone is never being set, which suggests that your code is missing some important logic or has been sloppily copy-and-pasted from someplace else, or it's part of a logic loop that's not firing correctly or in the wrong order. 

You asked what it meant. That's what it means.
24 Mar 2013, 12:00 AM
#22
wildthyme avatar

wildthyme

New Zenner

Join Date:
May 2012
Posts:
18
Plugin Contributions:
0

Re: FEC Create New Account in Login.php no longer working for me

tcarden,

Yes, if the same billing and address button is checked - it works correctly.

I have FEC version 1.10.0. I noticed on the Numinix.com site they have newer versions (free downloads) but at this point I'm afraid to mess with anything. You might be able to find some help in the forum on that site. I haven't had the time to look at them yet.

24 Mar 2013, 12:10 AM
#23
wildthyme avatar

wildthyme

New Zenner

Join Date:
May 2012
Posts:
18
Plugin Contributions:
0

Re: FEC Create New Account in Login.php no longer working for me

The forum is not easy to find on their site : https://www.numinix.com/forum/

24 Mar 2013, 1:27 AM
#24
tcarden avatar

tcarden

Zen Follower

Join Date:
Oct 2012
Posts:
282
Plugin Contributions:
0

Re: FEC Create New Account in Login.php no longer working for me

that thread is closed but could still be useful to search, it is 81 pages long!

24 Mar 2013, 6:18 AM
#25
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: FEC Create New Account in Login.php no longer working for me

Do you have any zones defined in your database? I once had this problem, and had no zoes, because i did not us them, after adding a zone to a country it worked again. It didn't matter to which country, as long as one zone was defined

24 Mar 2013, 7:36 PM
#26
wildthyme avatar

wildthyme

New Zenner

Join Date:
May 2012
Posts:
18
Plugin Contributions:
0

Re: FEC Create New Account in Login.php no longer working for me

Thank you DrByte. The code is from the FEC module - create_account.php. I created a zone for the United States through admin when I first set up the site.

Don't know what to do at this point. Nothing seems to be working.

26 Mar 2013, 5:25 PM
#27
wildthyme avatar

wildthyme

New Zenner

Join Date:
May 2012
Posts:
18
Plugin Contributions:
0

Re: FEC Create New Account in Login.php no longer working for me

Today I had a breakthrough...don't know why or if it is permanent. From the admin panel I changed the FEC configuration : "Show shipping address on COWOA" from true to false.

Once I did that, the create an account feature worked smoothly without all the error messages.

26 Mar 2013, 6:06 PM
#28
tcarden avatar

tcarden

Zen Follower

Join Date:
Oct 2012
Posts:
282
Plugin Contributions:
0

Re: FEC Create New Account in Login.php no longer working for me

Dang! where is that control panel, what menu item is it under??

thank you for posting that WildThyme!

26 Mar 2013, 6:45 PM
#29
wildthyme avatar

wildthyme

New Zenner

Join Date:
May 2012
Posts:
18
Plugin Contributions:
0

Re: FEC Create New Account in Login.php no longer working for me

tcarden,

Sorry my last post was unclear. Go to the admin panel, click on configuration and scroll down to the FEC configurations. Once you have that page - It is listed as "Shipping Address" toward the bottom. Highlight it and click on edit then change true to false and hit update.

So far it is working!

26 Mar 2013, 7:58 PM
#30
tcarden avatar

tcarden

Zen Follower

Join Date:
Oct 2012
Posts:
282
Plugin Contributions:
0

Re: FEC Create New Account in Login.php no longer working for me

thanks WildThyme, a lot

that menu item was not invisible as the menu has gotten so long it was of view. didnt even know it was there! so i had to shrink the view to see.

well that's better than before that's for sure, not the best case scenario though i guess.

could also be helpful in troubleshooting the PHP..??

26 Mar 2013, 11:42 PM
#31
wildthyme avatar

wildthyme

New Zenner

Join Date:
May 2012
Posts:
18
Plugin Contributions:
0

Re: FEC Create New Account in Login.php no longer working for me

tcarden,

Did it fix your create account process on your site? I wish I knew what exactly was causing the problem but at least now I'm not losing customers because of it..

I'm going to keep an eye out for error messages in my cache file to make sure nothing else is off because of it. If I find anything, I'll post it here.

27 Mar 2013, 1:00 AM
#32
tcarden avatar

tcarden

Zen Follower

Join Date:
Oct 2012
Posts:
282
Plugin Contributions:
0

Re: FEC Create New Account in Login.php no longer working for me

i don't know if it's related, i suspect it is but when i go to My Account->View or Change...., and make some changes it won't save. i get an error stating that email address already exists (which doesn't make sense for an update of course).

and another error, when i got to My Account page there is suppose to be a link to view order history.
that link is missing. you might want to check those 2 items.

these absolutely have to get fixed so i will be sure and post here any followup info here.

27 Mar 2013, 1:48 AM
#33
wildthyme avatar

wildthyme

New Zenner

Join Date:
May 2012
Posts:
18
Plugin Contributions:
0

Re: FEC Create New Account in Login.php no longer working for me

tcarden:

I checked the two issues you mentioned. I was able to update my account info without a problem. I didn't have a "view order history button" so I went in and did a test order. The order showed up as a pending order, then turned into a Previous Order when I changed the status to shipped. There was a link to 'Show All Orders' at the top of the page.

It looks like if you don't have any orders, it doesn't show a link to view orders. Not sure about why you can't update account info.

Now I have to go find a thread on Dual Pricing - that's not working now :(

27 Mar 2013, 1:57 AM
#34
tcarden avatar

tcarden

Zen Follower

Join Date:
Oct 2012
Posts:
282
Plugin Contributions:
0

Re: FEC Create New Account in Login.php no longer working for me

thanks for letting me know.

6 Apr 2014, 5:25 PM
#35
danielle avatar

danielle

Totally Zenned

Join Date:
Oct 2004
Posts:
973
Plugin Contributions:
0

Re: FEC Create New Account in Login.php no longer working for me

Just a few notes on this, as I've encountered the same issue:

This issue happens when BOTH of the following things happen:

  1. Billing and shipping addresses are different
  2. Billing address is a country with no zones set up.

I have tested this across several websites using different versions of FEC, and it happens on all of them. If a customer tries to check out with a country with no zones (e.g. UK) as their billing address, with a different shipping address, the next page will be blank, with the following error in the log:

Call to a member function RecordCount() on a non-object in /home/***/public_html/includes/modules/fec_create_account.php on line 396

I have contacted Numinix in the hopes that they can provide some assistance, but if anyone has any thoughts I'd really like to get this fixed!

21 Apr 2014, 4:36 PM
#36
danielle avatar

danielle

Totally Zenned

Join Date:
Oct 2004
Posts:
973
Plugin Contributions:
0

Re: FEC Create New Account in Login.php no longer working for me

Numinix provided the following fix, and this bug has also been fixed in the latest version (1.14.6) of FEC.

In includes/modules/quick_checkout.php, the fix is on line 340, change it to:
$found_exact_iso_match_shipping = ($zone_shipping->RecordCount() == 1);

In includes/modules/fec_create_account.php, the fix is on line 396, change it to:
$found_exact_iso_match_shipping = ($zone_shipping->RecordCount() == 1);

Danielle:

Just a few notes on this, as I've encountered the same issue:

This issue happens when BOTH of the following things happen:

  1. Billing and shipping addresses are different
  2. Billing address is a country with no zones set up.

I have tested this across several websites using different versions of FEC, and it happens on all of them. If a customer tries to check out with a country with no zones (e.g. UK) as their billing address, with a different shipping address, the next page will be blank, with the following error in the log:

I have contacted Numinix in the hopes that they can provide some assistance, but if anyone has any thoughts I'd really like to get this fixed!