close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

I have missing arguments errors that I can't fix

Thread began 5/29/2015 3:17 pm by marsha431457 | Last modified 6/11/2015 3:32 pm by Ray Borduin | 1306 views | 25 replies |

marsha431457

I have missing arguments errors that I can't fix

I know this has happened before but I have looked thru my posts and can't find how to solve it. Makes me crazy when things go wrong on Friday afternoon. I had added fields to Button on tags_double_rbtest (a test page) and to the cart object and also into the cart_static columns (all attached). I even tried restoring files to before I made changes but still getting the errors:

Warning: Missing argument 25 for boh_Definition::AddToCart(), called in /home/content/04/8238804/html/bracelets_aluminum.php on line 60 and defined in /home/content/04/8238804/html/WA_eCart/boh_PHP.php on line 28

Warning: Missing argument 26 for boh_Definition::AddToCart(), called in /home/content/04/8238804/html/bracelets_aluminum.php on line 60 and defined in /home/content/04/8238804/html/WA_eCart/boh_PHP.php on line 28

Warning: Missing argument 27 for boh_Definition::AddToCart(), called in /home/content/04/8238804/html/bracelets_aluminum.php on line 60 and defined in /home/content/04/8238804/html/WA_eCart/boh_PHP.php on line 28

Warning: Missing argument 28 for boh_Definition::AddToCart(), called in /home/content/04/8238804/html/bracelets_aluminum.php on line 60 and defined in /home/content/04/8238804/html/WA_eCart/boh_PHP.php on line 28

Warning: Missing argument 29 for boh_Definition::AddToCart(), called in /home/content/04/8238804/html/bracelets_aluminum.php on line 60 and defined in /home/content/04/8238804/html/WA_eCart/boh_PHP.php on line 28

Warning: Missing argument 30 for boh_Definition::AddToCart(), called in /home/content/04/8238804/html/bracelets_aluminum.php on line 60 and defined in /home/content/04/8238804/html/WA_eCart/boh_PHP.php on line 28

Warning: Missing argument 31 for boh_Definition::AddToCart(), called in /home/content/04/8238804/html/bracelets_aluminum.php on line 60 and defined in /home/content/04/8238804/html/WA_eCart/boh_PHP.php on line 28

Warning: Missing argument 32 for boh_Definition::AddToCart(), called in /home/content/04/8238804/html/bracelets_aluminum.php on line 60 and defined in /home/content/04/8238804/html/WA_eCart/boh_PHP.php on line 28

Warning: Missing argument 33 for boh_Definition::AddToCart(), called in /home/content/04/8238804/html/bracelets_aluminum.php on line 60 and defined in /home/content/04/8238804/html/WA_eCart/boh_PHP.php on line 28

Warning: Missing argument 34 for boh_Definition::AddToCart(), called in /home/content/04/8238804/html/bracelets_aluminum.php on line 60 and defined in /home/content/04/8238804/html/WA_eCart/boh_PHP.php on line 28

Warning: Cannot modify header information - headers already sent by (output started at /home/content/04/8238804/html/WA_eCart/boh_PHP.php:28) in /home/content/04/8238804/html/bracelets_aluminum.php on line 77

Attached Files
boh_PHP.php
bracelets_aluminum.php
tags_double_rbtest.php
Sign in to reply to this post

Ray BorduinWebAssist

1) Make sure you upload the latest version of the WA_ecart/boh_PHP.php file.

2) Then open up the bracelets_aluminum.php page and edit the Add to Cart server behavior. You don't have to change any settings, just click "ok" in the server behavior once opened and it should reset the code to match the current cart.

Then upload that file and the problem should be resolved.

You will likely have to do this second step for any page that has an Add to Cart button on it. The issue is that the cart object has been updated and a column has been added or removed leaving the add to cart buttons out of sync. This process will get the code updated to work together again.

Sign in to reply to this post

marsha431457

Thanks for your quick response.

I was working on the tags_double_rbtest.php into which I had added many new fields. After that error happened I restored back to the old cart object and cart_static. So now I have uploaded all the other pages with cart buttons but the tags_double_rbtest.php page came up with a message (screenshot attached) when i opened it and would not let me do the procedure with the cart button. That is where i am right now...

That tags_double_rbtest.php page is screwed up but at least it is a test page so I will probably want help figuring that out on Monday. I know the cart object & cart_atatic are no longer correct (since I restored old one). But I'm sure there are other messes in there as well!

Attached Files
tags_double_rbtest.php
Sign in to reply to this post

Ray BorduinWebAssist

When do you get that error? It sounds like maybe code was edited manually on that page and it can't find the button associated with the code and that is causing the error. If you send me a copy of the page I might be able to suggest how to fix it.

Sign in to reply to this post

Ray BorduinWebAssist

It actually opens up fine for me.

Try closing Dreamweaver and restarting and see if you still have the problem.

If you do, I may need to look into this with you in a screen sharing session.

Sign in to reply to this post

marsha431457

You are right, closed DW down and it opened no problem. But I did do some hand editing and the page isn't working correctly. It was only after i uploaded cart_static that I got the missing argument errors, that's when i restored to previous cart and cart object. So now those don't have the correct stuff in them anymore. Part of what's not working about the tags_double_rbtest is the cart columns, so I know I need to go back and fix that. The color is in the logo column and the date is in the inscription column...

I think possible the screen sharing session would be a good idea, but would prefer to do that on Monday with a fresh head. Late in the day here for starting that!

Sign in to reply to this post

Ray BorduinWebAssist

Post back with a good phone number and time to reach you in the private area and I'll contact you on Monday.

Sign in to reply to this post

marsha431457

Will do that, thanks!

Before I do that though, I tested the page in question, and it did work, but I have not put the new fields in the cart columns, so none of that info came through. Updating the cart columns is when I got in trouble on Friday, so I am a bit scared to do that! But I think I need to do it before we do a screen sharing session. I am going to do a backup of the page and try it, then get back to you.

Sign in to reply to this post

Ray BorduinWebAssist

You should add the columns to the cart. Then go to every page that has an Add To Cart button and edit and update each of the server behaviors for the add to cart.

That should get the add to cart code in sync with the new cart columns and prevent errors.

Sign in to reply to this post

marsha431457

I have added the columns to the cart. But I did notice as i did that there is a difference in the code for the new fields I added.

The code already in there looked like this:
<p id="boh_JSON_Display_Inscription2_<?php echo $boh->DisplayInfo("WAUID"); ?>" class="eC_ItemInscription2"><?php echo $boh->DisplayInfo("Inscription2"); ?></p>
<p id="boh_JSON_Display_Inscription3_<?php echo $boh->DisplayInfo("WAUID"); ?>" class="eC_ItemInscription3"><?php echo $boh->DisplayInfo("Inscription3"); ?></p>

The code I added looks like this:
<?php echo $boh->DisplayInfo("Tag1TextS1"); ?><br />
<?php echo $boh->DisplayInfo("Tag1TextS2"); ?><br />
<?php echo $boh->DisplayInfo("Tag2TextS1"); ?><br />
<?php echo $boh->DisplayInfo("Tag2TextS2"); ?></p

It is that way for all the new fields I added. I have not yet gone back to the ATC buttons to update/sync them, wanted to ask this question first.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...