Title: [opinionstage plugin] successfully registered javascript? Issue?
Last modified: August 10, 2017

---

# [opinionstage plugin] successfully registered javascript? Issue?

 *  Resolved [Tyler Johnson](https://wordpress.org/support/users/tylerjohnsondesign/)
 * (@tylerjohnsondesign)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/opinionstage-plugin-successfully-registered-javascript-issue/)
 * I’m currently seeing this error in my site’s PHP logs:
 * [opinionstage plugin] successfully registered javascript asset ‘shortcodes’
 * Anything we should be worried about?

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

 *  Plugin Author [opinion stage](https://wordpress.org/support/users/opinionstage/)
 * (@opinionstage)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/opinionstage-plugin-successfully-registered-javascript-issue/#post-9413975)
 * Hi there,
    It’s just a standard log entry we send, you might want to set the 
   debug off your site and set it on only in case of problems. This is a success
   indication so no need to be worried about it! Best – O/S Team
 *  [bjrnet21](https://wordpress.org/support/users/bjrnet21/)
 * (@bjrnet21)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/opinionstage-plugin-successfully-registered-javascript-issue/#post-9538929)
 * I also see multiple entries for:
    [opinionstage plugin] successfully registered
   javascript asset ‘shortcodes’
 * in my PHP error log file.
 * I also have DEBUG off:
    define(‘WP_DEBUG’, false); in my wp-config.php file.
 * What is going on?
 *  Plugin Author [kucaahbe](https://wordpress.org/support/users/kucaahbe/)
 * (@kucaahbe)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/opinionstage-plugin-successfully-registered-javascript-issue/#post-9542809)
 * Hi there,
 * There is nothing to be worried about, it’s success indication which plugin sends
   to debug log using standard PHP `error_log` facility. In that way WordPress plugins
   can not control the underlying presence or absence of debug logging information.
   In order to turn off debug logging `WP_DEBUG_LOG` should be set to `false` (more
   info: [https://codex.wordpress.org/Debugging_in_WordPress#WP_DEBUG_LOG](https://codex.wordpress.org/Debugging_in_WordPress#WP_DEBUG_LOG)).
   It’s also recommended to turn general WordPress debugging off by setting `WP_DEBUG`
   to `false` on production installations.
 * Best – O/S Team
 *  [dazamate](https://wordpress.org/support/users/dazamate/)
 * (@dazamate)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/opinionstage-plugin-successfully-registered-javascript-issue/#post-9547222)
 * > Hi there,
   >  It’s just a standard log entry we send, you might want to set the
   > debug off your site and set it on only in case of problems. This is a success
   > indication so no need to be worried about it!
 * Cmon, man that’s not a satisfactory response.
 * I just came here to report the issue – my error log was over 10MB in size! Filled
   with spam messages about a SUCCESSFUL event.
 * The error log is for ERRORS! This will print regardless if your site is in debug
   mode or not!
 * Please remove this line of code in file /includes/opinionstage-utility-functions.
   php
 * For anyone else looking to stop this, you need to comment out the line I’ve shown
   below.
 * I hope the opinion stage crew will remove this, or work something else out in
   the next update.
 *     ```
       function opinionstage_register_javascript_asset( $name, $relative_path, $deps=array(), $in_footer=true ) {
       	$registered = wp_register_script(
       		opinionstage_asset_name($name),
       		plugins_url( opinionstage_asset_path().'/js/'.$relative_path, plugin_dir_path(__FILE__) ),
       		$deps,
       		OPINIONSTAGE_WIDGET_VERSION,
       		$in_footer
       	);
   
       	if ( $registered ) {
       		//error_log( "[opinionstage plugin] successfully registered javascript asset '$name'" ); <- problem! Should not write into error log on success
       	} else {
       		error_log( "[opinionstage plugin] ERROR registering javascript asset '$name'" );
       	}
       }
       ```
   
 *  Plugin Author [opinion stage](https://wordpress.org/support/users/opinionstage/)
 * (@opinionstage)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/opinionstage-plugin-successfully-registered-javascript-issue/#post-9547670)
 * Hi there,
 * After re-discussing internally, we acknowledge that this might be disturbing,
   so following your feedback we will remove it in the next version.
 * Sorry for the inconvenience!
    Best – O/S Team
 *  Plugin Author [opinion stage](https://wordpress.org/support/users/opinionstage/)
 * (@opinionstage)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/opinionstage-plugin-successfully-registered-javascript-issue/#post-9548585)
 * Hi! just to update we fixed this one!
 *  [dazamate](https://wordpress.org/support/users/dazamate/)
 * (@dazamate)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/opinionstage-plugin-successfully-registered-javascript-issue/#post-9552200)
 * Thanks very much mate.

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

The topic ‘[opinionstage plugin] successfully registered javascript? Issue?’ is 
closed to new replies.

 * ![](https://ps.w.org/social-polls-by-opinionstage/assets/icon.svg?rev=2977938)
 * [Quiz Maker, Poll Maker & Survey Maker by Opinion Stage](https://wordpress.org/plugins/social-polls-by-opinionstage/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/social-polls-by-opinionstage/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/social-polls-by-opinionstage/)
 * [Active Topics](https://wordpress.org/support/plugin/social-polls-by-opinionstage/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/social-polls-by-opinionstage/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/social-polls-by-opinionstage/reviews/)

 * 7 replies
 * 5 participants
 * Last reply from: [dazamate](https://wordpress.org/support/users/dazamate/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/opinionstage-plugin-successfully-registered-javascript-issue/#post-9552200)
 * Status: resolved