• Resolved sportsterrider

    (@sportsterrider)


    I’m using this widget on a number of sites with good result, however recently my site hosted on GoDaddy has started throwing an error at the top of the page “q2w3_fixed_widget.php line 42 wrong parameter count”. I’ve tried using a number of themes with the same result for this site but it works well on my other sites. This seems to be a recent problem occurring within the last update or so but my other sites are using the same version with no problem. Its being caused by fixing the Navigation widget in the sidebar. All widgets seem to have IDs assigned and the header and footer have the proper .php functions. The only thing I haven’t been able to verify is what version of JQuery GoDaddy is using. The problem is displaying on all devices (pc, tablet, phone), and on both Edge and Chrome browsers on my pc. I looked at the .php file that is indicated but I’m not sure what parameters are missing or where it’s trying to find them.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Max Bond

    (@max-bond)

    Hello!

    I recommend you to disable WP_DEBUG constant in wp-config file – that should remove warning message.

    https://codex.ww.wp.xz.cn/Editing_wp-config.php#Debug

    Thread Starter sportsterrider

    (@sportsterrider)

    Thanks for the replay Max. I checked the wp-config.php file and it was already set to false. The thing that is so strange is that it seemed to have become a problem only recently with no changes to the site with the exceptions of regular theme and plug-in updates. Other WP sites running on the same server (Go-Daddy) as well as other providers seem to be working fine.

    Thread Starter sportsterrider

    (@sportsterrider)

    I did a bit more research on error messages and found a solution that worked. It is a variation of your suggestion.
    Replace the WP_DEBUG statement with the following:
    ini_set(‘display_errors’,’Off’);
    ini_set(‘error_reporting’, E_ALL );
    define(‘WP_DEBUG’, false);
    define(‘WP_DEBUG_DISPLAY’, false);

    The error message is now gone, but still not sure what was triggering it. The widget seems to be working fine.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Parameter Error Line 142’ is closed to new replies.