WordPress.org

Ready to get started?Download WordPress

Forums

BigContact Contact Page
[resolved] [Plugin: BigContact] Help php warnings (3 posts)

  1. yellowmultimedia
    Member
    Posted 2 years ago #

    Hello,

    I really want to use your plugin, however it keeps giving me php warnings. It seems to work fine but I'm not sure what to do about the warnings.

    Warning: Missing argument 2 for wp_register_script(), called in /home/donsrvftp/donsrv.yellowmultimedia.com/wordpress/wp-content/plugins/bigcontact/BigContact.php on line 110 and defined in /home/donsrvftp/donsrv.yellowmultimedia.com/wordpress/wp-includes/functions.wp-scripts.php on line 52

    Warning: Missing argument 2 for wp_register_script(), called in /home/donsrvftp/donsrv.yellowmultimedia.com/wordpress/wp-content/plugins/bigcontact/BigContact.php on line 111 and defined in /home/donsrvftp/donsrv.yellowmultimedia.com/wordpress/wp-includes/functions.wp-scripts.php on line 52

    I hope you can help. Kinda disappointed.

    http://wordpress.org/extend/plugins/bigcontact/

  2. michael.mariart
    Member
    Posted 2 years ago #

    If the authors don't get back to you (which happens sometimes) you can cedit the plugin code yourself. I've had to do this before to stop the warnings showing up. There's not a lot of authors care about warnings like this because they are turned off in 99% of production sites. This doesn't make it the right way to develop a plugin, just how it is.

    The lines that the errors are on are given to you in the warning messages.

    Missing argument 2 for wp_register_script(), called in /home/donsrvftp/donsrv.yellowmultimedia.com/wordpress/wp-content/plugins/bigcontact/BigContact.php on line 110

    So, if you need something quickly, look at line 110 of the file bigcontact/BigContact.php and there will be a call to the function wp_register_script(). by the warning message, they have forgotten to include the second argument for the function call, but there could be other issues. You'd have to look at it to see. :)

  3. arianKhosravi
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for posting here. We have fixed the bug along with some other issues in the new update.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.