1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

There is some warning showing on my site webpage about wordpress

Discussion in 'WordPress' started by China_girl, Apr 13, 2017.

  1. #1
    Hi friends,

    I have got this warning on my webpage recently saying :

    How do I remove it or rectify it, can you please help?
     
    China_girl, Apr 13, 2017 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    [not a php guy]
    Sounds like you have a function call whose arguments (number or type) do not match the function definition. Look at the referenced file and line number and compare to the function call.

    Roll back your version control to a point that there is no error, and diff that against the current version. If there is UX, make sure user input is properly cleaned and validated. E.g. proper number and types of entries. This is basic stuff for any but the most trivial applications. Using mid tier scripting is not trivial. Any but the simplest back-ends (databases) should be delegated to specialists.

    cheers,

    gary
     
    kk5st, Apr 13, 2017 IP
  3. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #3
    Given that this is Wordpress, and it sounds like you have a plugin not working entirely as it should, make sure everything is updated, check if there is a new version of the plugin in question, and if all that is already done, check your functions.php-file, and find what the issue is.
     
    PoPSiCLe, Apr 13, 2017 IP
  4. China_girl

    China_girl Well-Known Member

    Messages:
    4,096
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    195
    #4
    Yes you are right, there seems to be some problem with the functions.php. But I wanted to know, is it because the theme needs some kind of upgrade, because I had not bought this theme and if its because of theme, then I am thinking of buying the theme and install it again in wordpress.
     
    China_girl, Apr 13, 2017 IP
  5. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #5
    That is almost impossible to know. You have not bought the theme, you say - so you're using a stolen/hacked version of a paid theme? Or a free version? If it's the former, buying it MIGHT fix the problem - but it might not (depends on how the theme is coded, and whether or not it has been upgraded properly) - if it's the latter, it still shouldn't contain errors, unless it isn't compatible with other content - regardless - I dunno if it's the theme or not - I would suggest you try installing the theme in a pure version of wordpress (no plugins installed), and see if it works then. Then I would add one plugin at a time (the same as the ones you have on the site in question) and check for the error for every single plugin that you install - that way you will pinpoint which plugin has the error (if it's not the theme itself), and then you can perhaps figure out how to fix it.
    The functions-file can be modified by plugins, the theme, and so on, so it might be the theme itself.
     
    PoPSiCLe, Apr 14, 2017 IP
  6. China_girl

    China_girl Well-Known Member

    Messages:
    4,096
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    195
    #6
    thanks I was looking at each any every plug-in, but it seems there is no problem. Yes the theme, I had bought was a free version, one of my designer had bought, but now he is not responding. Anyways, Would you recommend me to buy this theme from the market and install again, the site in question is the second site in my signature links.
     
    China_girl, Apr 17, 2017 IP
  7. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #7
    You have an error message that tells you where the error is. It is a mismatch in the args between the function call and the function declaration. One or both have changed, which triggered the message. If it worked before and now it doesn't, you changed something. What have you changed?

    Have you even looked at the source? If you're not a competent programmer, have you had your IT or development people have a shot at debugging? In the meantime, roll back versions to a non-error state.

    Have you read the change files? It may be the situation is discussed.

    gary
     
    kk5st, Apr 17, 2017 IP
  8. alexmv

    alexmv Peon

    Messages:
    12
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    3
    #8
    Hi, I see the problem is still there. This usually happens after update of Wordpress or some plugins.

    First, you can just hide the warning. It will not solve the problem but the users will not see it. You can do it bu add this line:
    define('WP_DEBUG', false);​
    to your wp-config.php file.

    Second, you can try to fix the problem. Not the best solution but you can try this:
    1. Open functions.php on line 761
    2. Find start_lvl(&$output, $depth)
    3. Replace it with start_lvl(&$output, $depth = 0, $args = Array)

    This should fix the error. Let me know if you need more help.

    Alex
     
    alexmv, Apr 20, 2017 IP
  9. China_girl

    China_girl Well-Known Member

    Messages:
    4,096
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    195
    #9

    After I replace this, it comes :

    Warning: Declaration of mobile_walker::start_lvl(&$output, $depth) should be compatible with Walker_Nav_Menu::start_lvl(&$output, $depth = 0, $args = Array) in /home1/wildkid/public_html/shiheziuniversity/wp-content/themes/campus/functions.php on line 761

    Warning: Cannot modify header information - headers already sent by (output started at /home1/wildkid/public_html/shiheziuniversity/wp-content/themes/campus/functions.php:761) in /home1/wildkid/public_html/shiheziuniversity/wp-includes/pluggable.php on line 1195
     
    China_girl, Apr 22, 2017 IP
  10. machinist_911

    machinist_911 Active Member

    Messages:
    213
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    80
    Digital Goods:
    1
    #10
    Either Mobile_Walker has been introduced via a plugin or the developer of the theme has expanded on the Walker_Nav_Menu Class in the theme. It seems there is a mismatch between the number of arguments between mobile_walker::start_lvl and Walker_Nav_Menu::start_lvl.
     
    machinist_911, Apr 30, 2017 IP