- NewsmagAbove footer ads
- NewsmagSmart list ads
- NewsmagArticle ads
- NewsmagSidebar ads
- NewsmagHeader ads
This line keeps showing up in the error log. We are using latest version of Newspaper along with PHP 7.4 and WordPress 5.9 and Apache as web server. Please advise how to fix this.
[Tue Jan 25 15:55:40.075763 2022] [fcgid:warn] [pid 7599:tid 139979298154240] [client 40.77.167.73:40996] mod_fcgid: stderr: WordPress database error Cannot add or update a child row: a foreign key constraint fails (e_channelnews_com.wp_s7qck994jh_bc_random_banner_statistics, CONSTRAINT fk_statistics_random_banner_pro FOREIGN KEY (random_banner_id) REFERENCES jO4591Ep_bc_random_banner (id) ON ) for query INSERT INTO wp_s7qck994jh_bc_random_banner_statistics ( country_code, country_name, city, postal, latitude, longitude, ipv4, state, s_type, created_at, random_banner_id ) VALUES ( ”, ”, ”, ”, ”, ”, ”, ”, ‘v’, ‘2022-01-25 18:55:40′, ’63’) made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/plugins/td-standard-pack/Newspaper/parts/single/single_template_2.php’), require_once(‘/plugins/td-standard-pack/Newspaper/parts/single/loop-single-2.php’), td_module_single_base->get_content, apply_filters(‘the_content’), WP_Hook->apply_filters, bc_rb_check_ads_required, bc_rb_insert_short_code_into_post_pages, generate_short_code_by_settings, do_shortcode, preg_replace_callback, do_shortcode_tag, bc_random_banner_shortcode, bc_rb_generate_banners, bc_rb_get_unique_banner_from_session, bc_rb_check_value_in_session, bc_rb_update_statistics_on_impression, bc_rb_update_statistics_impression_model, RBStatistics->store, bc_rb_store_statistics, wp_insert_rows
query monitor says the following php error code occurs: Notice Undefined index: widget_id 1
wp-content/plugins/td-composer/legacy/common/wp_booster/td_wp_booster_functions.php:2907
Plugin: td-composer
and
wp-content/plugins/td-composer/legacy/common/wp_booster/td_wp_booster_functions.php:2907
on_widget_display_callback()
wp-includes/class-wp-hook.php:303
apply_filters(‘widget_display_callback’)
wp-includes/widgets.php:1206
the_widget()
wp-content/plugins/js_composer/include/templates/shortcodes/vc_wp_rss.php:52
WPBakeryShortCode->loadTemplate()
wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php:244
WPBakeryShortCode->content()
wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php:366
WPBakeryShortCode->output()
wp-content/plugins/js_composer/include/helpers/helpers.php:1317
vc_do_shortcode()
wp-includes/shortcodes.php:356
do_shortcode_tag()
Unknown location
preg_replace_callback()
wp-includes/shortcodes.php:228
do_shortcode()
wp-content/plugins/td-composer/includes/tdc_composer_block.php:273
tdc_composer_block->do_shortcode()
wp-content/plugins/td-composer/includes/shortcodes/vc_column.php:283
vc_column->render()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27
td_global_blocks::proxy_function()
wp-includes/shortcodes.php:356
do_shortcode_tag()
Unknown location
preg_replace_callback()
wp-includes/shortcodes.php:228
do_shortcode()
wp-content/plugins/td-composer/includes/tdc_composer_block.php:273
tdc_composer_block->do_shortcode()
wp-content/plugins/td-composer/includes/shortcodes/vc_row.php:1096
vc_row->render()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27
td_global_blocks::proxy_function()
wp-includes/shortcodes.php:356
do_shortcode_tag()
Unknown location
preg_replace_callback()
wp-includes/shortcodes.php:228
do_shortcode()
wp-includes/class-wp-hook.php:303
apply_filters(‘the_content’)
wp-includes/post-template.php:253
the_content()
wp-content/plugins/td-standard-pack/Newspaper/page.php:51
any suggestion to solve this ?
Hello,
I cant access the TagDiv Composer to edit my Pages. It is loading constantly in a loop. No matter which page i want to edit, it happens with every page/site.
This happened after i changed some Columns and saved it. Before everything was fine.
Website: http://www.patriciabezzola.com
I already tried to update the PHP version to a newer (7.4) which didnt changed anything.
I got the following Error Message via E-Mail.
Wenn du Hilfe bei diesem Problem suchst, wirst du möglicherweise nach einigen der folgenden Informationen gefragt:
WordPress-Version 5.8
Aktuelles Theme: Newspaper (Version 8.8.2)
Aktuelles Plugin: tagDiv Composer (Version 2.3 | built on 27.06.2018 14:16)
PHP-Version 7.1.33-39+0~20210701.57+debian9~1.gbp1cdf2c
Fehler-Details
==============
Ein Fehler vom Typ E_ERROR wurde in der Zeile 66 der Datei /home/www/PBPhotography/wp-content/plugins/td-composer/td-multi-purpose/shortcodes/tdm_block_button.php verursacht. Fehlermeldung: Uncaught Error: Class ‘””’ not found in /home/www/PBPhotography/wp-content/plugins/td-composer/td-multi-purpose/shortcodes/tdm_block_button.php:66
Stack trace:
#0 /home/www/PBPhotography/wp-content/themes/Newspaper/includes/wp_booster/td_global_blocks.php(28): tdm_block_button->render(Array, ”)
#1 /home/www/PBPhotography/wp-includes/shortcodes.php(356): td_global_blocks::proxy_function(Array, ”, ‘tdm_block_butto…’)
#2 [internal function]: do_shortcode_tag(Array)
#3 /home/www/PBPhotography/wp-includes/shortcodes.php(228): preg_replace_callback(‘/\\[(\\[?)(vc_sep…’, ‘do_shortcode_ta…’, ‘[tdm_block_colu…’)
#4 /home/www/PBPhotography/wp-content/plugins/td-composer/includes/tdc_composer_block.php(200): do_shortcode(‘[tdm_block_colu…’)
#5 /home/www/PBPhotography/wp-content/plugins/td-composer/includes/shortcodes/vc_column.php(75): tdc_composer_block->do_shortcode(‘[tdm_block_colu…’)
#6 /home/www/PBPhotography/wp-content/themes/Newspaper/includes/wp_booster/td_global_blocks.php(28): vc_colu

I have several sites with Newspaper Theme that are built with TagDiv and they are crashing. Our server provider is telling us thad there is a compatibility issue now between TagDiv Standard Pack, TagDiv Composer and the Newspaper Theme.
The Newspaper themes have been updated to 11.2 TagDiv Standard Pack plugin to 1.2 and TagDiv Composer plugin to 2.8
However, 3 websites keep crashing. Below are some of the error logs.
Can you provide us with a fix ASAP Please???
[Wed Aug 11 18:24:40.987470 2021] [php7:error] [pid 10910] [client 191.96.106.159:45964] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function td_block_17::inner(), 2 passed in /nas/content/live/sumnercountyso/wp-content/plugins/td-composer/legacy/common/wp_booster/td_block.php on line 2857 and exactly 3 expected in /nas/content/live/sumnercountyso/wp-content/plugins/td-standard-pack/Newspaper/includes/shortcodes/td_block_17.php:125\nStack trace:\n#0 /nas/content/live/sumnercountyso/wp-content/plugins/td-composer/legacy/common/wp_booster/td_block.php(2857): td_block_17->inner(Array, 2)\n#1 /nas/content/live/sumnercountyso/wp-content/plugins/td-standard-pack/Newspaper/includes/shortcodes/td_block_17.php(107): td_block->get_block_js()\n#2 /nas/content/live/sumnercountyso/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): td_block_17->render(Array, ”)\n#3 /nas/content/live/sumnercountyso/wp-includes/shortcodes.php(343): td_global_blocks::proxy_function(Array, ”, ‘td_block_17’)\n#4 [internal function]: do_shortcode_tag(Array)\n#5 /nas/content/live/sumnercountyso/wp-incl in /nas/content/live/sumnercountyso/wp-content/plugins/td-standard-pack/Newspaper/includes/shortcodes/td_block_17.php on line 125, referer: https://sumnercountysource.com/
[Wed Aug 11 18:24:42.804328 2021] [php7:error] [pid 10910] [client 191.96.106.159:46062] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function td_block_17::inner(), 2 passed in /nas/content/live/sumnercountyso/wp-content/plugins/td-composer/legacy/common/wp_booster/td_block.php on line 2857 and exactly 3 expected in /nas/content/live/sumnercountyso/wp-content/plugins/td-standard-pack/Newspaper/includes/shortcodes/td_block_17.php:125\nStack trace:\n#0 /nas/content/live/sumnercountyso/wp-content/plugins/td-composer/legacy/common/wp_booster/td_block.php(2857): td_block_17->inner(Array, 2)\n#1 /nas/content/live/sumnercountyso/wp-content/plugins/td-standard-pack/Newspaper/includes/shortcodes/td_block_17.php(107): td_block->get_block_js()\n#2 /nas/content/live/sumnercountyso/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): td_block_17->render(Array, ”)\n#3 /nas/content/live/sumnercountyso/wp-includes/shortcodes.php(343): td_global_blocks::proxy_function(Array, ”, ‘td_block_17’)\n#4 [internal function]: do_shortcode_tag(Array)\n#5 /nas/content/live/sumnercountyso/wp-incl in /nas/content/live/sumnercountyso/wp-content/plugins/td-standard-pack/Newspaper/includes/shortcodes/td_block_17.php on line 125, referer: https://sumnercountysource.com/
[Wed Aug 11 18:25:03.756237 2021] [php7:error] [pid 11272] [client 191.96.106.159:47680] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function td_block_17::inner(), 2 passed in /nas/content/live/sumnercountyso/wp-content/plugins/td-composer/legacy/common/wp_booster/td_block.php on line 2857 and exactly 3 expected in /nas/content/live/sumnercountyso/wp-content/plugins/td-standard-pack/Newspaper/includes/shortcodes/td_block_17.php:125\nStack trace:\n#0 /nas/content/live/sumnercountyso/wp-content/plugins/td-composer/legacy/common/wp_booster/td_block.php(2857): td_block_17->inner(Array, 2)\n#1 /nas/content/live/sumnercountyso/wp-content/plugins/td-standard-pack/Newspaper/includes/shortcodes/td_block_17.php(107): td_block->get_block_js()\n#2 /nas/content/live/sumnercountyso/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): td_block_17->render(Array, ”)\n#3 /nas/content/live/sumnercountyso/wp-includes/shortcodes.php(343): td_global_blocks::proxy_function(Array, ”, ‘td_block_17’)\n#4 [internal function]: do_shortcode_tag(Array)\n#5 /nas/content/live/sumnercountyso/wp-incl in /nas/content/live/sumnercountyso/wp-content/plugins/td-standard-pack/Newspaper/includes/shortcodes/td_block_17.php on line 125, referer: https://sumnercountysource.com/wp-admin/
Hello,
I have defined category field to All categories but it shows no posts, only when I select a category it works.
I have this in error log:
[20-Jul-2021 16:15:47 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_wp_query() on null in /home/*/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_block.php:128
Stack trace:
#0 /home/*/public_html/wp-content/plugins/td-standard-pack/Newspaper/includes/shortcodes/td_block_3.php(70): td_block->render(Array)
#1 /home/*/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): td_block_3->render(Array, ”)
#2 /home/*/public_html/wp-includes/shortcodes.php(343): td_global_blocks::proxy_function(Array, ”, ‘td_block_3’)
#3 [internal function]: do_shortcode_tag(Array)
#4 /home/*/public_html/wp-includes/shortcodes.php(218): preg_replace_callback(‘/\\[(\\[?)(td_blo…’, ‘do_shortcode_ta…’, ‘[td_block_3 td_…’)
#5 /home/*/public_html/wp-content/plugins/td-composer/includes/tdc_ajax.php(306): do_shortcode(‘[td_block_3 td_…’)
#6 /home/*/public_html/wp-includes/rest-api/class-wp-rest-server.php(1139 in /home/revistaveggie/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_block.php on line 128
I can share some test resule.
in php7.4, site works fine with some warning
Warning: A non-numeric value encountered in /home/***/webapps/***/wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_flex_block_4.php on line 443
Warning: A non-numeric value encountered in /home/***/webapps/***/wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_flex_block_4.php on line 470
then in php8.0, it totaly crash.
Fatal error: Uncaught TypeError: Unsupported operand types: string / float in /home/***/webapps/***/wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_flex_block_4.php:443 Stack trace: #0 /home/***/webapps/***/wp-content/plugins/td-composer/legacy/common/wp_booster/td_css_res_compiler.php(208): td_flex_block_4::cssMedia() #1 /home/***/webapps/***/wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_flex_block_4.php(1831): td_css_res_compiler->load_settings() #2 /home/***/webapps/***/wp-content/plugins/td-composer/legacy/common/wp_booster/td_block.php(1501): td_flex_block_4->get_custom_css() #3 /home/***/webapps/***/wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_flex_block_4.php(1857): td_block->get_block_css() #4 /home/***/webapps/***/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): td_flex_block_4->render() #5 /home/***/webapps/***/wp-includes/shortcodes.php(343): td_global_blocks::proxy_function() #6 [internal function]: do_shortcode_tag() #7 /home/***/webapps/***/wp-includes/shortcodes.php(218): preg_replace_callback() #8 /home/***/webapps/***/wp-content/plugins/td-composer/includes/tdc_composer_block.php(273): do_shortcode() #9 /home/***/webapps/***/wp-content/plugins/td-composer/includes/shortcodes/vc_column.php(283): tdc_composer_block->do_shortcode() #10 /home/***/webapps/***/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): vc_column->render() #11 /home/***/webapps/***/wp-includes/shortcodes.php(343): td_global_blocks::proxy_function() #12 [internal function]: do_shortcode_tag() #13 /home/***/webapps/***/wp-includes/shortcodes.php(218): preg_replace_callback() #14 /home/***/webapps/***/wp-content/plugins/td-composer/includes/tdc_composer_block.php(273): do_shortcode() #15 /home/***/webapps/***/wp-content/plugins/td-composer/includes/shortcodes/vc_row.php(1098): tdc_composer_block->do_shortcode() #16 /home/***/webapps/***/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): vc_row->render() #17 /home/***/webapps/***/wp-includes/shortcodes.php(343): td_global_blocks::proxy_function() #18 [internal function]: do_shortcode_tag() #19 /home/***/webapps/***/wp-includes/shortcodes.php(218): preg_replace_callback() #20 /home/***/webapps/***/wp-content/plugins/td-composer/includes/tdc_composer_block.php(273): do_shortcode() #21 /home/***/webapps/***/wp-content/plugins/td-composer/includes/shortcodes/tdc_zone.php(591): tdc_composer_block->do_shortcode() #22 /home/***/webapps/***/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): tdc_zone->render() #23 /home/***/webapps/***/wp-includes/shortcodes.php(343): td_global_blocks::proxy_function() #24 [internal function]: do_shortcode_tag() #25 /home/***/webapps/***/wp-includes/shortcodes.php(218): preg_replace_callback() #26 /home/***/webapps/***/wp-includes/class-wp-hook.php(292): do_shortcode() #27 /home/***/webapps/***/wp-includes/plugin.php(212): WP_Hook->apply_filters() #28 /home/***/webapps/***/wp-includes/post-template.php(253): apply_filters() #29 /home/***/webapps/***/wp-content/plugins/td-standard-pack/Newspaper/page.php(51): the_content() #30 /home/***/webapps/***/wp-includes/template-loader.php(106): include('...') #31 /home/***/webapps/***/wp-blog-header.php(19): require_once('...') #32 /home/***/webapps/***/index.php(17): require('...') #33 {main} thrown in /home/***/webapps/***/wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_flex_block_4.php on line 443
There has been a critical error on this website.
Thank you so much for helping me with the meta info formatting. I have added a plugin to display read time and added the shortcode to the Cloud template Single Template – HRE. I would like to add this to my Cloud Template Category Template – HRE as well. The Block I need to add this to is the Post Loop block. Where would I add the extra code below into the theme so this appears in the category pages as well in the same location?
Please see video https://www.loom.com/share/5d4bcac0276f466a86f1ef43c0748b7c
Need to add the this code: php echo do_shortcode(‘[rt_reading_time label=”Reading Time:” postfix=”minutes”]’);
-
This reply was modified 5 years by
Bill Fleak.
I see a load of api calls from the core code. Can you explain the course and how to fix this?
GET https://www.googleapis.com/youtube/v3/videos
?id=Xq6I7_lHppg
&part=id,contentDetails,snippet,player
&key=
403 Forbidden
td_remote_http::get_url_wordpress()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_remote_http.php:202
td_remote_http::get_page_via_channel()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_remote_http.php:157
td_remote_http::get_page()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_remote_http.php:86
td_remote_video::youtube_api_get_videos_info()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_remote_video.php:158
td_remote_video::api_get_videos_info()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_remote_video.php:44
td_video_support::get_video_duration()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_video_support.php:501
td_module->get_video_duration()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_module.php:751
tdb_module_mm->render()
wp-content/plugins/td-cloud-library/modules/tdb_module_mm.php:83
tdb_header_mega_menu->inner()
wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_mega_menu.php:1654
tdb_header_mega_menu->render()
wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_mega_menu.php:1632
tdb_menu->hook_wp_nav_menu_objects()
wp-content/plugins/td-cloud-library/includes/tdb_menu.php:180
apply_filters(‘wp_nav_menu_objects’)
wp-includes/plugin.php:212
wp_nav_menu()
wp-includes/nav-menu-template.php:226
tdb_header_menu->inner()
wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_menu.php:1402
tdb_header_menu->render()
wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_menu.php:1263
td_global_blocks::proxy_function()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27
do_shortcode_tag()
wp-includes/shortcodes.php:343
preg_replace_callback()
wp-includes/shortcodes.php:343
do_shortcode()
wp-includes/shortcodes.php:218
tdc_composer_block->do_shortcode()
wp-content/plugins/td-composer/includes/tdc_composer_block.php:273
vc_column->render()
wp-content/plugins/td-composer/includes/shortcodes/vc_column.php:283
td_global_blocks::proxy_function()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27
do_shortcode_tag()
wp-includes/shortcodes.php:343
preg_replace_callback()
wp-includes/shortcodes.php:343
do_shortcode()
wp-includes/shortcodes.php:218
tdc_composer_block->do_shortcode()
wp-content/plugins/td-composer/includes/tdc_composer_block.php:273
vc_row->render()
wp-content/plugins/td-composer/includes/shortcodes/vc_row.php:1098
td_global_blocks::proxy_function()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27
do_shortcode_tag()
wp-includes/shortcodes.php:343
preg_replace_callback()
wp-includes/shortcodes.php:343
do_shortcode()
wp-includes/shortcodes.php:218
tdc_composer_block->do_shortcode()
wp-content/plugins/td-composer/includes/tdc_composer_block.php:273
tdc_zone->render()
wp-content/plugins/td-composer/includes/shortcodes/tdc_zone.php:591
td_global_blocks::proxy_function()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27
do_shortcode_tag()
wp-includes/shortcodes.php:343
preg_replace_callback()
wp-includes/shortcodes.php:343
do_shortcode()
wp-includes/shortcodes.php:218
{closure}()
wp-content/plugins/td-composer/td-composer.php:250
do_action(‘tdc_header’)
wp-includes/plugin.php:484
load_template(‘wp-content/themes/Newspaper/header.php’)
wp-includes/template.php:730
locate_template()
wp-includes/template.php:676
get_header()
wp-includes/general-template.php:48
Ciao!
WordPress, a partire dalla versione 5.2, ha una funzionalità integrata che rileva quando un plugin o un tema provoca un errore irreversibile sul tuo sito e ti avvisa con questa email automatica.
In questo caso, WordPress ha incontrato un errore con uno dei tuoi plugin, WooCommerce.
Per prima cosa, vai al tuo sito web (https://www.politicamagazine.it/) e controlla se ci sono problemi visibili. Successivamente, vai nella pagina in cui è stato rilevato l’errore (https://www.politicamagazine.it/wp-admin/post.php?post=6807&action=edit) e verifica se c’è qualche problema visibile.
Contatta il tuo host per richiedere assistenza per una investigazione più approfondita di questo problema.
Se il tuo sito appare danneggiato e non puoi accedere normalmente alla tua bacheca, WordPress ora ha una speciale “modalità di ripristino”. Ciò ti consente di accedere in modo sicuro alla tua bacheca per controllare cosa non va.
Per mantenere il tuo sito sicuro, questo link scadrà tra 1 giorno. Non preoccuparti di questo: ti verrà inviato un nuovo link se l’errore si ripresenta dopo la scadenza.
Se cerchi aiuto per questo problema, ti potrebbero essere chieste alcune delle seguenti informazioni:
Versione di WordPress 5.7.2
Tema corrente: Newspaper (versione 11)
Plugin corrente: WooCommerce (versione 5.4.1)
Versione PHP 7.4.19
Dettagli dell’errore
====================
Un errore di E_ERROR è stato causato nella linea 24 del file /web/htdocs/www.politicamagazine.it/home/wp-content/plugins/woocommerce/templates/cart/mini-cart.php. Messaggio di errore: Uncaught Error: Call to a member function is_empty() on null in /web/htdocs/www.politicamagazine.it/home/wp-content/plugins/woocommerce/templates/cart/mini-cart.php:24
Stack trace:
#0 /web/htdocs/www.politicamagazine.it/home/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include()
#1 /web/htdocs/www.politicamagazine.it/home/wp-content/plugins/woocommerce/includes/wc-template-functions.php(2168): wc_get_template()
#2 /web/htdocs/www.politicamagazine.it/home/wp-content/plugins/td-woo/shortcodes/td_woo_menu_cart.php(1029): woocommerce_mini_cart()
#3 /web/htdocs/www.politicamagazine.it/home/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): td_woo_menu_cart->render()
#4 /web/htdocs/www.politicamagazine.it/home/wp-includes/shortcodes.php(343): td_global_blocks::proxy_function()
#5 [internal function]: do_shortcode_tag()
#6 /web/htdocs/www.politicamagazine.it/home/wp-includes/shortcodes.php(218): preg_replace_callback()
#7 /web/htdocs/www.politicamagazine.it/home/
Hi,
I search in this forum and found this code for use in smart list,
protected function render_after_list_wrap() {
$buffy = ”;
$buffy .= ‘</div>’; // /.td_smart_list_6 wrapper with id
$buffy .= do_shortcode(‘[td_block_ad_box spot_id="custom_ad_1"]‘);
return $buffy;
}
is working in desktop smartlist, but in mobile not working, can you help me please?
code in mobile
protected function render_after_list_wrap() {
$buffy = ”;
$buffy .= ‘</div>’; // /.td_smart_list_1 wrapper with id
return $buffy;
}
Site: http://www.ospreyobserver.com
Hosting Company: DreamPress (DreamHost)
We are having issues with our website continuing to go down. Our hosting company says that the problem is with the Newspaper theme. Can you provide any ideas that might help? Thanks in advance.
From DreamHost:
“I took a look at what was running and I can see that the theme Newspaper is affecting the WordPress response due to the shortcodes running:
| do_shortcode()| wp-includes/shortcodes.php:196| 4.9033s | 0s
| function(){}| td-composer/td-composer.php:242| 1.2854s | 0s
| function(){}| td-composer/td-composer.php:234| 0.9902s | 0s
| function(){}| td-composer/td-composer.php:173| 0.8469s | 0s
This will affect performance, high response times will increase the CPU
and RAM usage. It is not clear which shortcode is affecting this at the
moment, you will need a WordPress developer to look into this.”
Attempting to edit a page in the backend I get this:
wp_booster error:
td_api_base::mark_used_on_page : a component with the ID: tds_category_module_mx8 is not set.
/home/caduceus/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_api.php
Display backtrace
wp_booster error:
Missing parameter: ‘file’
/home/caduceus/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_autoload_classes.php
Display backtrace
Fatal error: Uncaught Error: Class ‘tds_category_module_mx8’ not found in /home/caduceus/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_block.php:267 Stack trace: #0 /home/caduceus/public_html/wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_block_text_with_title.php(148): td_block->render(Array) #1 /home/caduceus/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): td_block_text_with_title->render(Array, ‘\r\n<h2 style=”ma…’) #2 /home/caduceus/public_html/wp-includes/shortcodes.php(343): td_global_blocks::proxy_function(Array, ‘\r\n<h2 style=”ma…’, ‘td_block_text_w…’) #3 [internal function]: do_shortcode_tag(Array) #4 /home/caduceus/public_html/wp-includes/shortcodes.php(218): preg_replace_callback(‘/\\[(\\[?)(slide\\…’, ‘do_shortcode_ta…’, ‘[td_block_text_…’) #5 /home/caduceus/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php(198): do_shortcode(‘[td_block_text_…’) #6 /home/caduceus/public_html/wp in /home/caduceus/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_block.php on line 267
debug code:
Fatal error: Uncaught Error: Class ‘td_style’ not found in /home/mozneg5/profile.co.mz/wp-content/plugins/td-composer/td-multi-purpose/styles/tds_title/tds_title1.php:9 Stack trace: #0 /home/mozneg5/profile.co.mz/wp-includes/template.php(730): require_once() #1 /home/mozneg5/profile.co.mz/wp-content/plugins/td-composer/legacy/common/wp_booster/td_autoload_classes.php(42): load_template(‘/home/mozneg5/p…’, true) #2 [internal function]: td_autoload_classes->loading_classes(‘tds_title1’) #3 /home/mozneg5/profile.co.mz/wp-content/plugins/td-composer/td-multi-purpose/shortcodes/tdm_block_column_content.php(130): spl_autoload_call(‘tds_title1’) #4 /home/mozneg5/profile.co.mz/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): tdm_block_column_content->render(Array, ”) #5 /home/mozneg5/profile.co.mz/wp-includes/shortcodes.php(343): td_global_blocks::proxy_function(Array, ”, ‘tdm_block_colum…’) #6 [internal function]: do_shortcode_tag(Array) #7 /home/mozneg5/profile.co.mz/wp-includes/shortcodes in /home/mozneg5/profile.co.mz/wp-content/plugins/td-composer/td-multi-purpose/styles/tds_title/tds_title1.phpon line 9
Hi,
I have a problem Query Monitor shows me problems:
1. Plugin: td-composer
URL:
Certificate verification disabled (sslverify=false)
https://www.instagram.com/ezakopane.pl
Redirected to:
https://www.instagram.com/accounts/login/
Status:
429 Too Many Requests
Caller:
429 Too Many Requests
HTTP API Transport: curl
DNS Resolution Time: 0,0000
Connection Time: 0,0475
Transfer Start Time (TTFB): 0,4940
Response Size: 20 KB
Response Content Type: text/html; charset=utf-8
IP Address: 31.13.81.174
Component:
td_remote_http::get_url_wordpress()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_remote_http.php:196
td_remote_http::get_page_via_channel()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_remote_http.php:151
td_remote_http::get_page()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_remote_http.php:86
td_instagram::parse_instagram_html()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_instagram.php:480
td_instagram::instagram_get_json()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_instagram.php:446
td_instagram::get_instagram_data_with_user()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_instagram.php:402
td_instagram::render_generic()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_instagram.php:62
td_block_instagram->render()
wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_block_instagram.php:470
td_global_blocks::proxy_function()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27
do_shortcode_tag()
wp-includes/shortcodes.php:343
preg_replace_callback()
wp-includes/shortcodes.php:343
do_shortcode()
wp-includes/shortcodes.php:218
tdc_composer_block->do_shortcode()
wp-content/plugins/td-composer/includes/tdc_composer_block.php:198
vc_column->render()
wp-content/plugins/td-composer/includes/shortcodes/vc_column.php:278
td_global_blocks::proxy_function()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27
do_shortcode_tag()
wp-includes/shortcodes.php:343
preg_replace_callback()
wp-includes/shortcodes.php:343
do_shortcode()
wp-includes/shortcodes.php:218
tdc_composer_block->do_shortcode()
wp-content/plugins/td-composer/includes/tdc_composer_block.php:198
vc_row->render()
wp-content/plugins/td-composer/includes/shortcodes/vc_row.php:930
td_global_blocks::proxy_function()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27
do_shortcode_tag()
wp-includes/shortcodes.php:343
preg_replace_callback()
wp-includes/shortcodes.php:343
do_shortcode()
wp-includes/shortcodes.php:218
tdc_composer_block->do_shortcode()
wp-content/plugins/td-composer/includes/tdc_composer_block.php:198
tdc_zone->render()
wp-content/plugins/td-composer/includes/shortcodes/tdc_zone.php:577
td_global_blocks::proxy_function()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27
do_shortcode_tag()
wp-includes/shortcodes.php:343
preg_replace_callback()
wp-includes/shortcodes.php:343
do_shortcode()
wp-includes/shortcodes.php:218
{closure}()
wp-content/plugins/td-composer/td-composer.php:247
do_action(‘tdc_footer’)
wp-includes/plugin.php:484
load_template(‘wp-content/themes/Newspaper/footer.php’)
wp-includes/template.php:730
locate_template()
wp-includes/template.php:676
get_footer()
wp-includes/general-template.php:92
Plugin: td-composer 30 0,6470
Thank you and waiting for your help
Regards n
Hello,
after update theme I got this error:
PHP Fatal error: Uncaught Error: Class ‘td_global’ not found in C:\inetpub\wwwroot\intranet\wp-content\themes\Newspaper\vc_templates\vc_row.php:3
Stack trace:
#0 C:\inetpub\wwwroot\intranet\wp-content\plugins\js_composer\include\classes\shortcodes\core\class-wpbakeryshortcode.php(271): require()
#1 C:\inetpub\wwwroot\intranet\wp-content\plugins\js_composer\include\classes\shortcodes\vc-row.php(40): WPBakeryShortCode->loadTemplate(Array, ‘[vc_column][td_…’)
#2 C:\inetpub\wwwroot\intranet\wp-content\plugins\js_composer\include\classes\shortcodes\core\class-wpbakeryshortcode.php(366): WPBakeryShortCode_Vc_Row->content(Array, ‘[vc_column][td_…’)
#3 C:\inetpub\wwwroot\intranet\wp-content\plugins\js_composer\include\helpers\helpers.php(1317): WPBakeryShortCode->output(”, ‘[vc_column][td_…’)
#4 C:\inetpub\wwwroot\intranet\wp-includes\shortcodes.php(343): vc_do_shortcode(”, ‘[vc_column][td_…’, ‘vc_row’)
#5 [internal function]: do_shortcode_tag(Array)
#6 C:\inetpub\wwwroot\intranet\wp-includes\shortcodes.php(218): preg_repla in C:\inetpub\wwwroot\intranet\wp-content\themes\Newspaper\vc_templates\vc_row.php on line 3
but when I check location : Newspaper\includes\wp-booster\ there is tag-div_global.php not tg_global.php
Any ideas?
Thanks
Hi,
I’m building a custom page template that automatically inserts blocks based on taxonomy terms.
So I’d like to insert filtered td_blocks, programmatically via PHP.
I think I can use do_shortcode() and pass all the raw/columns/blocks shortcodes that I need, but I can not find any documentation on how to set shortcode parameters to set syles, filters etc.
Can you give me tips on how to use your td blocks and components in PHP?
thanks
Dear Team,
Question & Request:
Recently I found an AMAZING plugin, which I wish you would have it build-in within your theme:
https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/
Question: to implement it, their implementation guide explains that you need to place their shortcode within ‘do_shortcode’ method as explained here: https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/#implementation-2
This plugin allows you to have infinite scroll within a single post with multiple page break so that the user doesn’t need to click next or select another page from the pagination, but rather the page auto-load it as you scroll. (they also added another feature that allows to not even using page break but simply their plugin would convert every H2 automatically to page break)
Where do I need to place this code within the Newspaper themes, as the files that the theme is using are not standard? if you could help that would be great.
Request(Q): when would you have this feature (or maybe you do and I just don’t know how to make it in your theme)
Thanks a lot
Good Morning. My hosting provider, we would highly recommend bringing these logs onto your TD Composer plugins support to see if they could provide any fixes regarding these aspects or not.
Most of the slow logs in the server point to these:
10-Oct-2020 03:43:04] script_filename = /var/web/site/public_html/index.php; mysqli_query() /var/web/site/public_html/wp-includes/wp-db.php:2033; _do_query() /var/web/site/public_html/wp-includes/wp-db.php:1922; query() /var/web/site/public_html/wp-includes/wp-db.php:2673; get_results() /var/web/site/public_html/wp-includes/meta.php:1061; update_meta_cache() /var/web/site/public_html/wp-includes/meta.php:576; get_metadata_raw() /var/web/site/public_html/wp-includes/meta.php:506; get_metadata() /var/web/site/public_html/wp-includes/post.php:2126; get_post_meta() /var/web/site/public_html/wp-includes/post.php:499; get_attached_file() /var/web/site/public_html/wp-includes/post.php:6221; wp_attachment_is() /var/web/site/public_html/wp-includes/post.php:6272; wp_attachment_is_image() /var/web/site/public_html/wp-includes/media.php:193; image_downsize() /var/web/site/public_html/wp-includes/media.php:955; wp_get_attachment_image_src() /var/web/site/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_module.php:287; get_image() /var/web/site/public_html/wp-content/plugins/td-composer/legacy/Newspaper/includes/modules/td_module_flex_1.php:42; render() /var/web/site/public_html/wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_flex_block_1.php:1461; inner() /var/web/site/public_html/wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_flex_block_1.php:1441; render() /var/web/site/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27; proxy_function() /var/web/site/public_html/wp-includes/shortcodes.php:343; do_shortcode_tag() /var/web/site/public_html/wp-includes/shortcodes.php:218; preg_replace_callback() /var/web/site/public_html/wp-includes/shortcodes.php:218
script_filename = /var/web/site/public_html/index.php; mysqli_query() /var/web/site/public_html/wp-includes/wp-db.php:2033; _do_query() /var/web/site/public_html/wp-includes/wp-db.php:1922; query() /var/web/site/public_html/wp-includes/wp-db.php:2338; update() /var/web/site/public_html/wp-includes/meta.php:271; update_metadata() /var/web/site/public_html/wp-includes/post.php:2158; update_post_meta() /var/web/site/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_page_views.php:37; update_page_views() /var/web/site/public_html/wp-content/plugins/td-cloud-library/wp_templates/tdb_view_single.php:82
So maybe you could share these slow logs to your plugin support and see if they could help with improving these within the plugin side or not. If its a known use case with their plugin, they might also have fixes for this.
Sorry Calin,
this is my code :
add_filter(‘the_title’, ‘do_shortcode’);
function diwp_button_shortcode($attr){
$args = shortcode_atts(
array(
‘link’ => ‘#’,
‘bgcolor’ => ‘#1a73e8’,
‘textcolor’ => ‘#FFF’,
‘text’ => ‘Button’,
), $attr);
$button = ‘‘.$args[‘text’].’‘;
return $button;
}
add_shortcode(‘diwp-button’, ‘diwp_button_shortcode’);
————-
I try with :
add_filter(‘archive_title’, ‘do_shortcode’);
add_filter(‘post_title’, ‘do_shortcode’);
but, it doesn’t have effect… only the ‘text’ => ‘Button’,
Thank you
Olivia
Hi,
In order to fix the problem with the smart list next/prev buttons, please add the code from here https://pastebin.com/LK1PLxQA in wp-content/themes/Newsmag/functions.php at the end of file, like this -> https://i.imgur.com/ZEiPoRF.png after that clear all cache and the smart list pagination will work.
As for google ads, please provide me a link to some posts/pages where the advertisements are not displaying.
1. So if I understand correctly, you’ll like to set some ads in category page, unfortunately using Newsmag this you have the option to set the ads only in sidebar another solution is to use a custom code
<?php echo do_shortcode ('[td_block_ad_box spot_id="custom_ad_1"]'); ?> this code need to be set in the category template you are using -> wp-content/plugins/td-composer/legacy/Newsmag/includes/category_templates -> https://i.imgur.com/kFtngPp.png -> https://i.imgur.com/3dz5lUl.png -> https://i.imgur.com/whNMnge.png -> https://i.imgur.com/i7nUZnY.png
2. Usually like in this case -> https://prnt.sc/uebpfs there should be no problems with the ads policy, but in case that you thing that this will affect your ads, the only thing that you can do is to disable the “More Article Box” from theme panel -> https://i.imgur.com/DVHRLwf.png
Also there is no option to can display ads inside the “More Article Box”, sorry, this can be done only with custom work.
Hope that above suggestions will help you!
Thank you!
Hi,
I’ve come back to Newsmag for my new website. All has gone well but I have a couple of questions relating to the theme.
1. I have implemented the filter within a child theme functions.php to enable shortcodes to work in the description of a post category. However, they don’t execute. I am using the MEKS Easy Maps plugin for location sensitive posts. Usually, this would work out of the box without a shortcode, but it doesn’t with this theme. So I thought I would try the shortcode option, but this doesn’t work either. I’m wondering if there is something within this theme that stops shortcodes working, even with the filter added to the functions.php.
This is the filter I am using:
add_filter( 'category_description', 'do_shortcode' );
2. AMP Theme – using the AMP Theme is it possible to exclude categories from showing in the Latest Articles and also on the Front Page Grid. While we can do this on the main website, we can’t with the AMP Theme. It would be useful to be able to filter out some pages, that we don’t want to appear on the front page of the AMP versions too.
Thanks
Mike
Hi,
If all you want to do is to set some ads in post template, all these cloud be achieve using a cloud template and tagDiv Composer.
For standard post templates you need to edit the template you are using, the are set on this folder path wp-content/plugins/td-standard-pack/Newspaper/parts/single for example if you want to add these banners for single post template 1 you need to set the code here -> https://i.imgur.com/pbNIEIl.png -> and here -> https://i.imgur.com/6mHGXUA.png
You can use this code to set the ads from custom ad -> https://i.imgur.com/6PXGFJo.png
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]'); ?>
If you use the default post style you need to edit this file path -> wp-content/plugins/td-standard-pack/Newspaper/loop-single.php
Hope this will help you!
Thank you!
I just updated and I need to knock these errors out:
NOTICE: wp-content/plugins/td-composer/legacy/common/wp_booster/td_remote_video.php:226 – unserialize(): Error at offset 0 of 140865 bytes
require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/plugins/td-standard-pack/Newspaper/page.php’), the_content, apply_filters(‘the_content’), WP_Hook->apply_filters, do_shortcode, preg_replace_callback, do_shortcode_tag, td_global_blocks::proxy_function, tdc_zone->render, tdc_composer_block->do_shortcode, do_shortcode, preg_replace_callback, do_shortcode_tag, td_global_blocks::proxy_function, vc_row->render, tdc_composer_block->do_shortcode, do_shortcode, preg_replace_callback, do_shortcode_tag, td_global_blocks::proxy_function, vc_column->render, tdc_composer_block->do_shortcode, do_shortcode, preg_replace_callback, do_shortcode_tag, td_global_blocks::proxy_function, td_flex_block_1->render, td_flex_block_1->inner, td_module_flex_1->render, td_module->get_video_duration, td_video_support::get_video_duration, td_remote_video::api_get_videos_info, td_remote_video::vimeo_api_get_videos_info, unserialize
Fatal error: Uncaught Error: Call to undefined function curl_init() in H:\root\home\codesquare-001\www\upstreamplus\wp-content\plugins\td-composer\legacy\common\wp_booster\td_covid19.php:72 Stack trace: #0 H:\root\home\codesquare-001\www\upstreamplus\wp-content\plugins\td-composer\legacy\common\wp_booster\td_covid19.php(32): td_covid19::get_data_from_novel() #1 H:\root\home\codesquare-001\www\upstreamplus\wp-content\plugins\td-composer\legacy\Newspaper\includes\shortcodes\td_block_covid_19_counter.php(207): td_covid19::get_data() #2 H:\root\home\codesquare-001\www\upstreamplus\wp-content\plugins\td-composer\legacy\common\wp_booster\td_global_blocks.php(27): td_block_covid_19_counter->render(Array, ”) #3 H:\root\home\codesquare-001\www\upstreamplus\wp-includes\shortcodes.php(343): td_global_blocks::proxy_function(Array, ”, ‘td_block_covid_…’) #4 [internal function]: do_shortcode_tag(Array) #5 H:\root\home\codesquare-001\www\upstreamplus\wp-includes\shortcodes.php(218): preg_replace_callback(‘/\\[(\\[?)(td_blo…’, ‘do_ in H:\root\home\codesquare-001\www\upstreamplus\wp-content\plugins\td-composer\legacy\common\wp_booster\td_covid19.php on line 72
Hi.
I use one of the single post templates for my posts. When I try to add an article date to the template I get an error :
Fatal error: Uncaught Error: Call to a member function format() on boolean in /var/www/amagernyt.dk/public_html/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php:777 Stack trace: #0 /var/www/amagernyt.dk/public_html/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_date.php(130): tdb_state_single->{closure}() #1 /var/www/amagernyt.dk/public_html/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_date.php(130): Closure->__invoke() #2 /var/www/amagernyt.dk/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): tdb_single_date->render(Array, ”) #3 /var/www/amagernyt.dk/public_html/wp-includes/shortcodes.php(325): td_global_blocks::proxy_function(”, ”, ‘tdb_single_date’) #4 [internal function]: do_shortcode_tag(Array) #5 /var/www/amagernyt.dk/public_html/wp-includes/shortcodes.php(199): preg_replace_callback(‘/\\[(\\[?)(tdb_si…’, ‘do_shortcode_ta…’, ‘[tdb_single_aut…’) #6 /var/www/amagernyt.dk/public_html/wp-content/plugins/td-com in /var/www/amagernyt.dk/public_html/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php on line 777
Why is that ?