Hi friends, I have got this warning on my webpage recently saying : How do I remove it or rectify it, can you please help?
[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
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.
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.
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.
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.
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
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
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
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.