close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Undifined variable

Thread began 3/10/2015 2:20 pm by rgolfer | Last modified 3/11/2015 11:09 am by rgolfer | 1158 views | 6 replies |

rgolfer

Undifined variable

Hi there, I seem to be getting random Undefined variable errors when going to my shopping cart detail page. I mean random as sometimes I can go to the item and it works fine but most of the time it comes up with the error below. And it seems to matter which item it is as well. It was a couple specific items so I thought deleting them and setting them up again would work but that didn't help. All of the "missing" variables seem to be accounted so I'm a little perplexed as to why this is coming up. Do you have any ideas as to what is causeing this?


Warning: Missing argument 9 for toyocart1_ItemDefinition::toyocart1_ItemDefinition(), called in C:\wamp\www\support\WA_eCart\WA_eCart_Definition_PHP.php(556) : eval()'d code on line 1 and defined in C:\wamp\www\support\WA_eCart\toyocart1_PHP.php on line 161


Call Stack


#

Time

Memory

Function

Location

1 0.0002 363064 {main}( ) ..\Tcart.php:0
2 0.0076 416136 WA_eCartDefinition->GetContent( ) ..\Tcart.php:8
3 0.0076 416136 WA_eCartDefinition->Session_GetContent( ) ..\WA_eCart_Definition_PHP.php:72
4 0.0079 422968 eval( '$nextItem =new toyocart1_ItemDefinition("185", "BFAT2", "Open Country A/T II
Open Country A/T II", "BFAT2.jpg", "0", "1", "0", "Fran�");' ) ..\WA_eCart_Definition_PHP.php:556
5 0.0079 424280 toyocart1_ItemDefinition->toyocart1_ItemDefinition( ) ..\WA_eCart_Definition_PHP.php(556) : eval()'d code:1



( ! ) Notice: Undefined variable: itemCoop in C:\wamp\www\support\WA_eCart\toyocart1_PHP.php on line 171


Call Stack


#

Time

Memory

Function

Location

1 0.0002 363064 {main}( ) ..\Tcart.php:0
2 0.0076 416136 WA_eCartDefinition->GetContent( ) ..\Tcart.php:8
3 0.0076 416136 WA_eCartDefinition->Session_GetContent( ) ..\WA_eCart_Definition_PHP.php:72
4 0.0079 422968 eval( '$nextItem =new toyocart1_ItemDefinition("185", "BFAT2", "Open Country A/T II
Open Country A/T II", "BFAT2.jpg", "0", "1", "0", "Fran�");' ) ..\WA_eCart_Definition_PHP.php:556
5 0.0079 424280 toyocart1_ItemDefinition->toyocart1_ItemDefinition( ) ..\WA_eCart_Definition_PHP.php(556) : eval()'d code:1



( ! ) Warning: Missing argument 7 for toyocart1_ItemDefinition::toyocart1_ItemDefinition(), called in C:\wamp\www\support\WA_eCart\WA_eCart_Definition_PHP.php(556) : eval()'d code on line 1 and defined in C:\wamp\www\support\WA_eCart\toyocart1_PHP.php on line 161


Call Stack


#

Time

Memory

Function

Location

1 0.0002 363064 {main}( ) ..\Tcart.php:0
2 0.0076 416136 WA_eCartDefinition->GetContent( ) ..\Tcart.php:8
3 0.0076 416136 WA_eCartDefinition->Session_GetContent( ) ..\WA_eCart_Definition_PHP.php:72
4 0.0084 423976 eval( '$nextItem =new toyocart1_ItemDefinition("aise/French", "100", "14260216810213", "0", "0", "1 BFAT2 (185)");' ) ..\WA_eCart_Definition_PHP.php:556
5 0.0084 425168 toyocart1_ItemDefinition->toyocart1_ItemDefinition( ) ..\WA_eCart_Definition_PHP.php(556) : eval()'d code:1



( ! ) Warning: Missing argument 8 for toyocart1_ItemDefinition::toyocart1_ItemDefinition(), called in C:\wamp\www\support\WA_eCart\WA_eCart_Definition_PHP.php(556) : eval()'d code on line 1 and defined in C:\wamp\www\support\WA_eCart\toyocart1_PHP.php on line 161


Call Stack


#

Time

Memory

Function

Location

1 0.0002 363064 {main}( ) ..\Tcart.php:0
2 0.0076 416136 WA_eCartDefinition->GetContent( ) ..\Tcart.php:8
3 0.0076 416136 WA_eCartDefinition->Session_GetContent( ) ..\WA_eCart_Definition_PHP.php:72
4 0.0084 423976 eval( '$nextItem =new toyocart1_ItemDefinition("aise/French", "100", "14260216810213", "0", "0", "1 BFAT2 (185)");' ) ..\WA_eCart_Definition_PHP.php:556
5 0.0084 425168 toyocart1_ItemDefinition->toyocart1_ItemDefinition( ) ..\WA_eCart_Definition_PHP.php(556) : eval()'d code:1



( ! ) Warning: Missing argument 9 for toyocart1_ItemDefinition::toyocart1_ItemDefinition(), called in C:\wamp\www\support\WA_eCart\WA_eCart_Definition_PHP.php(556) : eval()'d code on line 1 and defined in C:\wamp\www\support\WA_eCart\toyocart1_PHP.php on line 161


Call Stack


#

Time

Memory

Function

Location

1 0.0002 363064 {main}( ) ..\Tcart.php:0
2 0.0076 416136 WA_eCartDefinition->GetContent( ) ..\Tcart.php:8
3 0.0076 416136 WA_eCartDefinition->Session_GetContent( ) ..\WA_eCart_Definition_PHP.php:72
4 0.0084 423976 eval( '$nextItem =new toyocart1_ItemDefinition("aise/French", "100", "14260216810213", "0", "0", "1 BFAT2 (185)");' ) ..\WA_eCart_Definition_PHP.php:556
5 0.0084 425168 toyocart1_ItemDefinition->toyocart1_ItemDefinition( ) ..\WA_eCart_Definition_PHP.php(556) : eval()'d code:1



( ! ) Notice: Undefined variable: itemPrice in C:\wamp\www\support\WA_eCart\toyocart1_PHP.php on line 169


Call Stack


#

Time

Memory

Function

Location

1 0.0002 363064 {main}( ) ..\Tcart.php:0
2 0.0076 416136 WA_eCartDefinition->GetContent( ) ..\Tcart.php:8
3 0.0076 416136 WA_eCartDefinition->Session_GetContent( ) ..\WA_eCart_Definition_PHP.php:72
4 0.0084 423976 eval( '$nextItem =new toyocart1_ItemDefinition("aise/French", "100", "14260216810213", "0", "0", "1 BFAT2 (185)");' ) ..\WA_eCart_Definition_PHP.php:556
5 0.0084 425168 toyocart1_ItemDefinition->toyocart1_ItemDefinition( ) ..\WA_eCart_Definition_PHP.php(556) : eval()'d code:1



( ! ) Notice: Undefined variable: itemLanguage in C:\wamp\www\support\WA_eCart\toyocart1_PHP.php on line 170


Call Stack


#

Time

Memory

Function

Location

1 0.0002 363064 {main}( ) ..\Tcart.php:0
2 0.0076 416136 WA_eCartDefinition->GetContent( ) ..\Tcart.php:8
3 0.0076 416136 WA_eCartDefinition->Session_GetContent( ) ..\WA_eCart_Definition_PHP.php:72
4 0.0084 423976 eval( '$nextItem =new toyocart1_ItemDefinition("aise/French", "100", "14260216810213", "0", "0", "1 BFAT2 (185)");' ) ..\WA_eCart_Definition_PHP.php:556
5 0.0084 425168 toyocart1_ItemDefinition->toyocart1_ItemDefinition( ) ..\WA_eCart_Definition_PHP.php(556) : eval()'d code:1



( ! ) Notice: Undefined variable: itemCoop in C:\wamp\www\support\WA_eCart\toyocart1_PHP.php on line 171


Call Stack


#

Time

Memory

Function

Location

1 0.0002 363064 {main}( ) ..\Tcart.php:0
2 0.0076 416136 WA_eCartDefinition->GetContent( ) ..\Tcart.php:8
3 0.0076 416136 WA_eCartDefinition->Session_GetContent( ) ..\WA_eCart_Definition_PHP.php:72
4 0.0084 423976 eval( '$nextItem =new toyocart1_ItemDefinition("aise/French", "100", "14260216810213", "0", "0", "1 BFAT2 (185)");' ) ..\WA_eCart_Definition_PHP.php:556
5 0.0084 425168 toyocart1_ItemDefinition->toyocart1_ItemDefinition( ) ..\WA_eCart_Definition_PHP.php(556) : eval()'d code:1



Log out-fin de session
Profile-profil
Admin

Sign in to reply to this post

Jason ByrnesWebAssist

Warning: Missing argument 9 for toyocart1_ItemDefinition::toyocart1_ItemDefinition(), called in


this error means that the add to cart button was generated, then you edited the cart object to add more columns.

any time you add more columns, you need to edit each add to cart button instance on your site to have the code regenerated.

Sign in to reply to this post

rgolfer

Hi Jason, Thanks for the quick response. I thought I set up everything from the start but who knows I have made several alterations to the site so you are probably right.

So I went in to my details page. It's the only place I have a "add to Cart" button for this cart. I opened up the add to cart function and updated it. I am still getting a similar error.

I'm seeing a bit of a pattern here though. It seems to only happen with the products with a French description. And for some reason on those items an extra line is added to the cart (see screen shot ... cart_extraline.JPG). When I delete these lines the page error goes away. I'm trying to see if taking out the special characters will help.

Just an update on above ... this error does only happen when it is a item marked as French. All the English items have French descriptions so could it be another setting I have made? The only other thing is that this is looking at two different databases. Wondering if there is a conflict there.
What I am noticing as well is that the Coop column when it is a 3 digit 100%, this is when this happens but only in the French.

I'm not sure what is causing this at this point but I have simply gone and edited each database entry removing special characters in the language description and then retyping the 100 for 100% coop. Strange but as I do this it then works.

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

rgolfer

Hi Jason,
I just finished cleaning up the database, reentering all the numbers in the coop field. I have double and triple checked since doing this and i can't re-create the error. I have asked someone to try it off site but haven't heard from them yet. I even tried adding some new items in French with some French characters etc. and still couldn't get it to come up. Bottom line is I'm not sure I can recreate the issue. Could the errors simply be because the format in the database was incorrect?

Sign in to reply to this post

Jason ByrnesWebAssist

"Could the errors simply be because the format in the database was incorrect?"

Sure, could be that, or could be the character set for the connection.

If you can reproduce the error again, let me know and I will take a look.

Sign in to reply to this post

rgolfer

Thanks for your time. I'll keep trying, If it comes back up I'll get back to you.

Character set is UTF-8 on all pages. and utf8_general_ci for the database

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