php Fatal Error enabling paired mode in AMP plugin
-
When enabling paired in AMP plugin I get the following error in error.log
[27-Feb-2019 12:30:09 UTC] PHP Fatal error: Uncaught Error: Cannot use object of type Closure as array in /home/…/wp-content/themes/graphene/inc/widgets.php:51
Stack trace:
#0 /home/…/wp-content/plugins/amp/includes/validation/class-amp-validation-manager.php(1485): graphene_dynamic_sidebar_params(Array)
#1 /home/…/wp-content/plugins/amp/includes/validation/class-amp-validation-manager.php(1212): AMP_Validation_Manager::{closure}(Array)
#2 /home/…/wp-includes/class-wp-hook.php(286): AMP_Validation_Manager::{closure}(Array)
#3 /home/…/wp-includes/plugin.php(208): WP_Hook->apply_filters(Array, Array)
#4 /home/…/wp-includes/widgets.php(738): apply_filters(‘dynamic_sidebar…’, Array)
#5 /home/…/wp-content/themes/graphene/sidebar-two.php(18): dynamic_sidebar(‘sidebar-two-wid…’)
#6 /home/…/wp-includes/template.php(704): require_once(‘/home/beerlimar…’)
#7 /home/…/wp-includes/template.php(653): load_template(‘/home/beerlimar…’, true)
#8 /home/…/wp-includes/general-template.php(111): locate_template(Array, true)
#9 /home/…/wp-content/themes/graphene/footer.php(20): get_sidebar(‘two’)
#10 /home/…/wp-includes/template.php(704): require_once(‘/home/beerlimar…’)
#11 /home/…/wp-includes/template.php(653): load_template(‘/home/beerlimar…’, true)
#12 /home/…/wp-includes/general-template.php(76): locate_template(Array, true)
#13 /home/…/wp-content/themes/graphene/single.php(20): get_footer()
#14 /home/…/wp-includes/template-loader.php(77): include(‘/home/beerlimar…’)
#15 /home/…/wp-blog-header.php(19): require_once(‘/home/beerlimar…’)
#16 /home/…/index.php(17): require(‘/home/beerlimar…’)
#17 {main}
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.