Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2007
    Location
    Cornwall - uk
    Posts
    464
    Plugin Contributions
    0

    Default Wrong Parameter Count Problem

    I have been busy today, as I have just figured out how to access my files and edit things, so Ive added my logo and changed the background colour etc, pretty minor things really. Anyway tp my horror ive just check through my website and some of the pages are loading to the left of the screen and the images/writing in different places and sizes. At the top of the page it says Warning: Wrong parameter count for define() in /home/bodykits/public_html/shop/includes/languages/english/index.php on line 56.

    Please can someone help me sort this problem out.

    Thanks

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Wrong Parameter Count Problem

    It means that there is something wrong with the edit that you have made to line 56 of your includes/languages/english/index.php file.

    Difficult to say what that error might be without seeing what you have done to that line. One possibility though might be that you have included apostrophes in your text without "escaping" them, i.e. preceding them with a backslash, "\", so that PHP knows that they are part of your text and not part of its syntax.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Mar 2007
    Location
    Cornwall - uk
    Posts
    464
    Plugin Contributions
    0

    Default Re: Wrong Parameter Count Problem

    shall i copy/paste the file page here, that way you can see line 56 and see if you can see an obvious error.

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Wrong Parameter Count Problem

    I'd look yourself first for an obvious error, and if you can't spot one, paste this line with two from before and the two that follow it.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Wrong Parameter Count Problem

    Line 56 in the default installation reads
    PHP Code:
      define('HEADING_TITLE''Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution.'); 
    Note the two parameters between the brackets, enclosed by single apostrophes and separated by a comma.

    Your equivalent line reads
    define('');
    and therefore has just one NULL parameter.

    At the very least you should make this read
    PHP Code:
      define('HEADING_TITLE'''); 
    (that's two single apostrophes at the end, rather than one double)
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  6. #6
    Join Date
    Mar 2007
    Location
    Cornwall - uk
    Posts
    464
    Plugin Contributions
    0

    Default Re: Wrong Parameter Count Problem

    I sent you a private message with the file information, before a read your last reply. sorry.

  7. #7
    Join Date
    Mar 2007
    Location
    Cornwall - uk
    Posts
    464
    Plugin Contributions
    0

    Default Re: Wrong Parameter Count Problem

    I sent you a private message with the file information, before a read your last reply. sorry. I had a look through the file but I couldnt see any errors, but im no expert, and hopefully you will spot a mistake straight away.

  8. #8
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Wrong Parameter Count Problem

    I was only able to answer because of the information that you PM'd, but problems like this should be solved in the forum rather than by PM so that other people with the same problem can benefit too.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  9. #9
    Join Date
    Mar 2007
    Location
    Cornwall - uk
    Posts
    464
    Plugin Contributions
    0

    Default Re: Wrong Parameter Count Problem

    Thank you so much, it appears to be fixed, I am so gratefull. P.S This is also a reply to you private message.

 

 

Similar Threads

  1. v153 DPS PxPay - Wrong parameter count for curl_error()
    By nsanford in forum Addon Payment Modules
    Replies: 2
    Last Post: 19 Mar 2015, 01:03 AM
  2. Replies: 3
    Last Post: 14 Dec 2013, 01:32 PM
  3. v139h 1136 Column count doesn't match value count at row 1
    By riolas in forum General Questions
    Replies: 3
    Last Post: 5 Jul 2013, 07:48 AM
  4. parameter count problem
    By ben harry in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 15 May 2007, 12:26 PM

Posting Permissions

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