...

View Full Version : warning error message.



alan081954
08-04-2012, 12:49 AM
I installed a script on a site and when I upload an image, I get the following error below:
Warning: Missing argument 6 for Item::createItem(), called in /home/babytoob/public_html/bellybuttoncontest.com/savesubmit.php on line 43 and defined in /home/babytoob/public_html/bellybuttoncontest.com/classes/item.php on line 138

Warning: Missing argument 7 for Item::createItem(), called in /home/babytoob/public_html/bellybuttoncontest.com/savesubmit.php on line 43 and defined in /home/babytoob/public_html/bellybuttoncontest.com/classes/item.php on line 138

Warning: Missing argument 8 for Item::createItem(), called in /home/babytoob/public_html/bellybuttoncontest.com/savesubmit.php on line 43 and defined in /home/babytoob/public_html/bellybuttoncontest.com/classes/item.php on line 138


Can anyone help me? I am about stupid to php stuff

AndrewGSW
08-04-2012, 03:10 AM
Knowing what lines 43 and 138 were would help :thumbsup:, plus some other relevant code.

alan081954
08-04-2012, 03:21 AM
Knowing what lines 43 and 138 were would help :thumbsup:, plus some other relevant code.

$myitem->createItem($itemtext, $itemdesc, $itemkeywords, $makeactive, $categoryid);

the line above is the line on both 43 and 138

I hope that is what you meant by more code.

Inigoesdr
08-04-2012, 04:39 AM
Your createItem() method is expecting 8 arguments and you are passing 5. If you post the source for the createItem() method someone can probably help you figure out what the other arguments should be or show you how to make them optional, but what you already posted isn't very informative.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum