close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Error Ecart with argument

Thread began 6/12/2011 9:38 am by minhtandoan421310 | Last modified 3/02/2012 2:26 pm by Jason Byrnes | 2923 views | 7 replies |

minhtandoan421310

Error Ecart with argument

Project is 3 page.

1.index.php (show quick-cart)
2.chitiet.php?idSP=...(insert add to cart button)
3.cartdetail.php(updateable cart)


run---> chitiet.php?idSP...---> add to cart button---->cartdetail ----oki
---->cartdetail-----error (Warning: Missing argument 3 for eCart1_ItemDefinition::eCart1_ItemDefinition(), called in D:\AppServ\www\testEC\WA_eCart\WA_eCart_Definition_PHP.php(491) : eval()'d code on line 1 and defined in D:\AppServ\www\testEC\WA_eCart\eCart1_PHP.php on line 236

Warning: Missing argument 4 for eCart1_ItemDefinition::eCart1_ItemDefinition(), called in D:\AppServ\www\testEC\WA_eCart\WA_eCart_Definition_PHP.php(491) : eval()'d code on line 1 and defined in D:\AppServ\www\testEC\WA_eCart\eCart1_PHP.php on line 236

Warning: Missing argument 5 for eCart1_ItemDefinition::eCart1_ItemDefinition(), called in D:\AppServ\www\testEC\WA_eCart\WA_eCart_Definition_PHP.php(491) : eval()'d code on line 1 and defined in D:\AppServ\www\testEC\WA_eCart\eCart1_PHP.php on line 236

Warning: Missing argument 6 for eCart1_ItemDefinition::eCart1_ItemDefinition(), called in D:\AppServ\www\testEC\WA_eCart\WA_eCart_Definition_PHP.php(491) : eval()'d code on line 1 and defined in D:\AppServ\www\testEC\WA_eCart\eCart1_PHP.php on line 236)

Help me, please!

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of your 3 pages and the WA_eCart\eCart1_PHP.php in a zip archive and a URL where i can test them please.

Sign in to reply to this post

minhtandoan421310

Please, help me. I post (site+noithat.sql) Thanks!

Attached Files
EC.zip
Sign in to reply to this post

Jason ByrnesWebAssist

I am not able to reproduce the issue with the files you provided, but looking at the screen shot again, I can see that you have a number of items in the cart before you start to see this error.

This makes me think the error is caused by the data being added to the cart fpr either the name or description.


to trouble shoot the problem, look at the database for the item that causes the error to occur and change the name or description to something else.

Sign in to reply to this post

minhtandoan421310

I figured out this problem. Because I used type UTF8( code Vietnamese). Encoding 2 file eCart_PHP.php and WA_eCart_Definition_PHP.php is utf-8. It's Oki :)).Thanks for hints to help me find this bug.

Sign in to reply to this post

Jason ByrnesWebAssist

ok, glad to hear it is working.

Sign in to reply to this post

morganbeat297916

How to encode utf8 file. i has same issue

Sign in to reply to this post

Jason ByrnesWebAssist

open the file in dreamweaver, then go to Modify -> Page Properties, on the Title / Encoding tab you can change the pages encoding to utf-8 and make sure the Include Unicode signature option is not checked.

Sign in to reply to this post

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