Page 1 of 2

The address you specified for "cart" is invalid - ORDERS MODULE

Posted: Thu Nov 12, 2009 11:35 am
by lemonaid
I have a problem with the Orders Module.

I've set up a shopping cart that includes Calguys suite including:

CGExtensions
FrontEndUsers
CGSimpleSmarty
Products
Cart
Orders

As well as:

PaypalGateway
SelfRegistration

Everything is working well except the invoices.

The user receives a good copy of the invoice via email.
BUT the copy of the invoice received by the site owner has this error:

$string(40) "Smarty error: math: parameter y is empty" 249.00

Where a subtotal (the $249) of an item x quantity should show.  The overall total on the invoice is correct.

FURTHER   In the Orders module of the Admin, when calling for an invoice to be printed or created, this error appears:  public_html/modules/Orders/action.admin_createinvoice.php on line 86

CMS Made Simple 1.6.6
Orders  1.6.1

Thanks in advance for any assistance.

Re: Error in Invoices - Orders Module

Posted: Thu Nov 12, 2009 2:07 pm
by Sonya
lemonaid wrote:
CMS Made Simple 1.6.6
Orders  1.6.1
I could not replicate the problem with the module version 1.6.7. Any reason for using elder version of the module? Upgrade?

Re: Error in Invoices - Orders Module

Posted: Thu Nov 12, 2009 3:24 pm
by lemonaid
Because during the few weeks I've been working on the site (on and off) we seem to have progressed from version 1.6.1 to 1.6.7

So, I upgraded to 1.6.7 and now the whole site is broken.

This is the error message:

Fatal error: Call to undefined method encrypted_store::set_timeout() in /home/mysite/public_html/modules/Orders/Orders.module.php on line 228

2am here -  what a disaster.

Update - I've uninstalled the Orders Module and the front end of the site is back but the Admin has no styles.

Re: Error in Invoices - Orders Module

Posted: Thu Nov 12, 2009 3:44 pm
by Sonya
You should upgrade all your modules. The fatal error applies to the module CGExtensions. Upgrade all used modules and post here the versions you use.

Re: Error in Invoices - Orders Module

Posted: Thu Nov 12, 2009 3:56 pm
by lemonaid
I've sorted the CGExtensions issue.

But now I can't get the Orders module to pass the initial Order Processing stage.

It doesn't like the address:    The address you specified for "cart" is invalid. Please ensure that all required fields are completed.

I have to go and get some sleep.  Will check all the modules in the morning.

Thanks very much for your help Sonya.

Re: Error in Invoices - Orders Module # became Fault after upgrade to ORDERS MODUL

Posted: Thu Nov 12, 2009 10:06 pm
by lemonaid
I'm receiving this message when attempting to checkout:

The address you specified for "cart" is invalid. Please ensure that all required fields are completed.

I'm completing all the fields.


These are the modules I have installed:

CMS Version
1.6.6

Installed ModulesCMSMailer
1.73.14
FileManager
1.0.1
MenuManager
1.6.2
ModuleManager
1.3.1
News
2.10.3
nuSOAP
1.0.1
Printing
1.0.4
Search
1.6.1
ThemeManager
1.1.1
TinyMCE
2.5.0beta3
CGExtensions
1.17.5
CGSimpleSmarty
1.4.3
CGBlog
1.3.1
FrontEndUsers
1.6.10
Captcha
0.4
CGPaymentGatewayBase
1.0.3
Products
2.4.3
PaypalGateway
2.1.3
Cart
1.4.2
SelfRegistration
1.2.5
Orders
1.6.7
NMS
2.2.3
EditArea
0.2.9

Re: Error in Invoices - Orders Module # became Fault after upgrade to ORDERS MODUL

Posted: Fri Nov 13, 2009 12:16 am
by lemonaid
I believe this could possibly have something to do with changing the 'states' in the database from US states to Australian states.

Somebody has had a similar issue after removing the states from the template.

http://forum.cmsmadesimple.org/index.ph ... 842.0.html

I can't however, find where I remove 'validation' for states in the updated module.

I really need some urgent assistance here.  How do I get it?

Re: The address you specified for "cart" is invalid - ORDERS MODULE

Posted: Fri Nov 13, 2009 3:20 am
by lemonaid
I now see Sonya has left a message in the Bug Tracker for Orders stating that this error is caused by:

There is error in template, look for {input_address1 and close the missing  bracket.


But I can't find the missing bracket.  Perhaps I'm looking in the wrong template?  Which template is it?

I also see there are a number of bugs reported for this latest release.  I wish I had never updated it.

Re: Error in Invoices - Orders Module # became Fault after upgrade to ORDERS MODUL

Posted: Fri Nov 13, 2009 6:44 am
by Sonya
lemonaid wrote: I'm receiving this message when attempting to checkout:

The address you specified for "cart" is invalid. Please ensure that all required fields are completed.

I'm completing all the fields.
You should fill the shipping address as well or correct the bug described here http://dev.cmsmadesimple.org/bug/view/4299

Re: The address you specified for "cart" is invalid - ORDERS MODULE

Posted: Fri Nov 13, 2009 6:51 am
by lemonaid
Thanks Sonya.

What about the other bug  -  regarding the missing bracket.

Re: The address you specified for "cart" is invalid - ORDERS MODULE

Posted: Fri Nov 13, 2009 7:08 am
by Sonya
lemonaid wrote: Thanks Sonya.

What about the other bug  -  regarding the missing bracket.
Do you a missing bracket in the sample billing template? If not, do not care about it.

Re: The address you specified for "cart" is invalid - ORDERS MODULE

Posted: Fri Nov 13, 2009 7:35 am
by lemonaid
No Sonya, I couldn't find any missing brackets


You said in the Forge Bug Tracker:

----------------------------
Line 168:
---------------------------------------

$dest_name = strtolower($destination->get_name());
        ....
        if( $params['shipping_'.$i.'_firstname'] == '' &&
($destname == '__myself__' || $destname == 'cart' || $destname ==
'myself'))

--------------------------------------
$dest_name is defined
$destname is checked



This is what I have:

$dest_name = strtolower($destination->get_name());
        $addr = '';
        if( $params['shipping_'.$i.'_firstname'] == '' &&
    ($destname == '__myself__' || $destname == 'cart' || $destname == 'myself'))



What am I supposed to change please.

Re: The address you specified for "cart" is invalid - ORDERS MODULE

Posted: Fri Nov 13, 2009 11:02 am
by Sonya
lemonaid wrote: No Sonya, I couldn't find any missing brackets


You said in the Forge Bug Tracker:


$dest_name is defined
$destname is checked



What am I supposed to change please.

Replace $dest_name by $destname.

Re: The address you specified for "cart" is invalid - ORDERS MODULE

Posted: Thu Nov 26, 2009 10:21 pm
by merder99
hello - i am using Orders 1.6.12 -

$dest_name has already been swapped to $destname

i removed shipping as selling electronic goods and still get the same error message:

The address you specified for "cart" is invalid. Please ensure that all required fields are completed.

can anyone help please???

Re: The address you specified for "cart" is invalid - ORDERS MODULE

Posted: Thu Nov 26, 2009 10:49 pm
by lemonaid
Try removing the 'requirement' from the shipping address fields in the billing template.

This is what finally worked for me after much searching and fiddling about.

It was a fix suggested for the issue reoccurring when the customer returns to make additional purchases.