apm error

Posted in: Newspaper
Post count: 3

im using better amp pluglin as i was using this in previous theme and all previous amp pages are created by this plugin itself

im getting this error ,
Fatal error: Uncaught exception ‘ErrorException’ with message ‘td_js_buffer::add_to_header – the header JS was already rendered when you called td_js_buffer::add_to_header() (ex: was called to late)’ in /home/idigita8/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_js_buffer.php:21 Stack trace: #0 /home/idigita8/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_js_generator.php(178): td_js_buffer::add_to_header(‘ \r\n\r\n\t va…’) #1 [internal function]: td_js_generator(”) #2 /home/idigita8/public_html/wp-includes/class-wp-hook.php(298): call_user_func_array(‘td_js_generator’, Array) #3 /home/idigita8/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array) #4 /home/idigita8/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #5 /home/idigita8/public_html/wp-includes/general-template.php(2589): do_action(‘wp_head’) #6 [internal function]: wp_head(”) #7 /home/idigita8/public_html/wp-includes/class-wp-hook.php(298): call_user_func_array(‘wp_head’, in /home/idigita8/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_js_buffer.php on line 21

Post count: 22421

Hello,

Sorry but the plugin is not tested with our theme. We did receive word from our users that the standard AMP plugin made by Automnattic works properly and there is even a guide on it here:
https://ampforwp.com/tutorials/article/amp-in-action-with-newspaper-theme/
We have not tried it ourselves, but it is worth a shot.

Thanks.

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.