Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Feb 2012
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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

  • #2
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    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

  • #3
    New to the CF scene
    Join Date
    Feb 2012
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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.

  • #4
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,638
    Thanks
    2
    Thanked 404 Times in 396 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •