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

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
User avatar
lemonaid
Forum Members
Forum Members
Posts: 77
Joined: Mon Sep 22, 2008 7:44 am

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

Post 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.
Last edited by lemonaid on Fri Nov 13, 2009 1:01 am, edited 1 time in total.
Sonya

Re: Error in Invoices - Orders Module

Post 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?
User avatar
lemonaid
Forum Members
Forum Members
Posts: 77
Joined: Mon Sep 22, 2008 7:44 am

Re: Error in Invoices - Orders Module

Post 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.
Last edited by lemonaid on Thu Nov 12, 2009 3:28 pm, edited 1 time in total.
Sonya

Re: Error in Invoices - Orders Module

Post 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.
User avatar
lemonaid
Forum Members
Forum Members
Posts: 77
Joined: Mon Sep 22, 2008 7:44 am

Re: Error in Invoices - Orders Module

Post 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.
User avatar
lemonaid
Forum Members
Forum Members
Posts: 77
Joined: Mon Sep 22, 2008 7:44 am

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

Post 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
Attachments
modules.gif
Last edited by lemonaid on Fri Nov 13, 2009 12:18 am, edited 1 time in total.
User avatar
lemonaid
Forum Members
Forum Members
Posts: 77
Joined: Mon Sep 22, 2008 7:44 am

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

Post 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?
Last edited by lemonaid on Fri Nov 13, 2009 12:21 am, edited 1 time in total.
User avatar
lemonaid
Forum Members
Forum Members
Posts: 77
Joined: Mon Sep 22, 2008 7:44 am

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

Post 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.
Sonya

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

Post 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
User avatar
lemonaid
Forum Members
Forum Members
Posts: 77
Joined: Mon Sep 22, 2008 7:44 am

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

Post by lemonaid »

Thanks Sonya.

What about the other bug  -  regarding the missing bracket.
Sonya

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

Post 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.
User avatar
lemonaid
Forum Members
Forum Members
Posts: 77
Joined: Mon Sep 22, 2008 7:44 am

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

Post 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.
Sonya

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

Post 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.
merder99
Forum Members
Forum Members
Posts: 47
Joined: Wed Oct 29, 2008 3:14 am

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

Post 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???
User avatar
lemonaid
Forum Members
Forum Members
Posts: 77
Joined: Mon Sep 22, 2008 7:44 am

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

Post 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.
Post Reply

Return to “Modules/Add-Ons”