Your cart is currently empty!
Errorlog Notices in conjunction with Awesome Support
—
by
Hello,
if Affiliate Enterprise is active together with Awesome Support ( https://de.wordpress.org/plugins/awesome-support/ ), there are some notices inside the error-log that points to a wrong usage for enqueuing scripts.
It seems to point to: /affiliates-enterprise/lib/ext/wordpress/class-affiliates-graph-renderer-wordpress.php :2
Please note: it does not happen when one of this two plugins is disabled. It just happen, if both are active.
Do you have an idea how this can be fixed?
Here are the notices from Mamp, but it also happen on our live environment..
Notices:
[01-Oct-2016 19:20:39 UTC] PHP Notice: wp_script_is wurde fehlerhaft aufgerufen. Skripte und Styles sollten nicht vor den Hooks wp_enqueue_scripts
, admin_enqueue_scripts
oder login_enqueue_scripts
registriert oder eingebunden werden. Weitere Informationen: Debugging in WordPress (engl.) (Diese Meldung wurde in Version 3.3.0 hinzugefügt.) in /Applications/MAMP/htdocs/domain.de/public_html/wp-includes/functions.php on line 3996
[01-Oct-2016 19:20:39 UTC] PHP Stack trace:
[01-Oct-2016 19:20:39 UTC] PHP 1. {main}() /Applications/MAMP/htdocs/domain.de/public_html/wp-admin/plugins.php:0
[01-Oct-2016 19:20:39 UTC] PHP 2. require_once() /Applications/MAMP/htdocs/domain.de/public_html/wp-admin/plugins.php:10
[01-Oct-2016 19:20:39 UTC] PHP 3. require_once() /Applications/MAMP/htdocs/domain.de/public_html/wp-admin/admin.php:31
[01-Oct-2016 19:20:39 UTC] PHP 4. require_once() /Applications/MAMP/htdocs/domain.de/public_html/wp-load.php:44
[01-Oct-2016 19:20:39 UTC] PHP 5. require_once() /Applications/MAMP/htdocs/domain.de/wp-config.php:186
[01-Oct-2016 19:20:39 UTC] PHP 6. do_action() /Applications/MAMP/htdocs/domain.de/public_html/wp-settings.php:395
[01-Oct-2016 19:20:39 UTC] PHP 7. WPAS_Titan->load_titan_framework() /Applications/MAMP/htdocs/domain.de/public_html/wp-includes/plugin.php:524
[01-Oct-2016 19:20:39 UTC] PHP 8. wpas_get_settings() /Applications/MAMP/htdocs/domain.de/public_html/data-main/plugins/awesome-support/includes/admin/class-admin-titan.php:103
[01-Oct-2016 19:20:39 UTC] PHP 9. apply_filters() /Applications/MAMP/htdocs/domain.de/public_html/data-main/plugins/awesome-support/includes/admin/settings/functions-settings.php:94
[01-Oct-2016 19:20:39 UTC] PHP 10. wpas_core_settings_general() /Applications/MAMP/htdocs/domain.de/public_html/wp-includes/plugin.php:235
[01-Oct-2016 19:20:39 UTC] PHP 11. wpas_list_pages() /Applications/MAMP/htdocs/domain.de/public_html/data-main/plugins/awesome-support/includes/admin/settings/settings-general.php:101
[01-Oct-2016 19:20:39 UTC] PHP 12. WP_Query->__construct() /Applications/MAMP/htdocs/domain.de/public_html/data-main/plugins/awesome-support/includes/admin/settings/functions-settings.php:28
[01-Oct-2016 19:20:39 UTC] PHP 13. WP_Query->query() /Applications/MAMP/htdocs/domain.de/public_html/wp-includes/query.php:4161
[01-Oct-2016 19:20:39 UTC] PHP 14. WP_Query->get_posts() /Applications/MAMP/htdocs/domain.de/public_html/wp-includes/query.php:4050
[01-Oct-2016 19:20:39 UTC] PHP 15. apply_filters_ref_array() /Applications/MAMP/htdocs/domain.de/public_html/wp-includes/query.php:3806
[01-Oct-2016 19:20:39 UTC] PHP 16. Affiliates_Graph_Renderer_WordPress::the_posts() /Applications/MAMP/htdocs/domain.de/public_html/wp-includes/plugin.php:291
[01-Oct-2016 19:20:39 UTC] PHP 17. wp_script_is() /Applications/MAMP/htdocs/domain.de/public_html/data-main/plugins/affiliates-enterprise/lib/ext/wordpress/class-affiliates-graph-renderer-wordpress.php:2
[01-Oct-2016 19:20:39 UTC] PHP 18. _wp_scripts_maybe_doing_it_wrong() /Applications/MAMP/htdocs/domain.de/public_html/wp-includes/functions.wp-scripts.php:306
[01-Oct-2016 19:20:39 UTC] PHP 19. _doing_it_wrong() /Applications/MAMP/htdocs/domain.de/public_html/wp-includes/functions.wp-scripts.php:46
[01-Oct-2016 19:20:39 UTC] PHP 20. trigger_error() /Applications/MAMP/htdocs/domain.de/public_html/wp-includes/functions.php:3996
Comments
One response to “Errorlog Notices in conjunction with Awesome Support”
Hi Bruno,
It seems a conflict with the Awesome Support plugin that change the hooks order.
If you add this code in your functions.php theme file, it should solve the problem:
remove_filter( 'the_posts', array( 'Affiliates_Graph_Renderer_WordPress', 'the_posts' ) );
add_action( 'wp_enqueue_scripts', 'my_wp_enqueue_scripts' );
function my_wp_enqueue_scripts () {
if ( !wp_script_is( 'jquery' ) ) {
wp_enqueue_script( 'jquery' );
}
}
Kind Regards,
Antonio B.