Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-03-2012, 11:49 PM   PM User | #1
alan081954
New to the CF scene

 
Join Date: Feb 2012
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
alan081954 is an unknown quantity at this point
warning error message.

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
alan081954 is offline   Reply With Quote
Old 08-04-2012, 02:10 AM   PM User | #2
AndrewGSW
Senior Coder

 
Join Date: Apr 2011
Location: London, England
Posts: 2,120
Thanks: 15
Thanked 354 Times in 353 Posts
AndrewGSW will become famous soon enough
Knowing what lines 43 and 138 were would help , plus some other relevant code.
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS
AndrewGSW is offline   Reply With Quote
Old 08-04-2012, 02:21 AM   PM User | #3
alan081954
New to the CF scene

 
Join Date: Feb 2012
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
alan081954 is an unknown quantity at this point
Quote:
Originally Posted by AndrewGSW View Post
Knowing what lines 43 and 138 were would help , 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.
alan081954 is offline   Reply With Quote
Old 08-04-2012, 03:39 AM   PM User | #4
Inigoesdr
Super Moderator


 
Inigoesdr's Avatar
 
Join Date: Mar 2007
Location: Florida, USA
Posts: 3,601
Thanks: 2
Thanked 397 Times in 390 Posts
Inigoesdr is a jewel in the roughInigoesdr is a jewel in the roughInigoesdr is a jewel in the rough
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.
Inigoesdr is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:13 AM.


Advertisement
Log in to turn off these ads.