- NewsmagAbove footer ads
- NewsmagSmart list ads
- NewsmagArticle ads
- NewsmagSidebar ads
- NewsmagHeader ads
Also seeing this issue since 10.3.3 happening multiple times per page load.
Is this td_remote_http necessary?
– GET
– 400 Bad Request
– Plugin: td-composer
Certificate verification disabled (sslverify=false)
https://www.googleapis.com/youtube/v3/videos
?id=ml43e3iiJdE
&part=id,contentDetails,snippet,player
&key=
Caller:
td_remote_http::get_url_wordpress()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_remote_http.php:186
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_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:579
td_module->get_video_duration()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_module.php:694
tdb_module_mm->render()
wp-content/plugins/td-cloud-library/modules/tdb_module_mm.php:40
tdb_header_mega_menu->inner()
wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_mega_menu.php:1506
tdb_header_mega_menu->render()
wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_mega_menu.php:1486
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:206
wp_nav_menu()
wp-includes/nav-menu-template.php:216
tdb_header_menu->inner()
wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_menu.php:885
tdb_header_menu->render()
wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_menu.php:768
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:119
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:767
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:576
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:146
do_action('tdc_header')
wp-includes/plugin.php:478
load_template('wp-content/themes/Newspaper/header.php')
wp-includes/template.php:723
locate_template()
wp-includes/template.php:672
get_header()
wp-includes/general-template.php:41
Hi,
I’ve been trying to use certain shortcodes in custom post type templates I created because they don’t take any of the post settings. For example, I’m trying to use the share single post shortcode like this:
echo do_shortcode('[tdb_single_post_share like_share_style="style2" content_align_horizontal="content-horiz-center" like="yes" tdc_css=""]');
So it works. It displays the sharing buttons but it shows all of them. How do I select the social networks I want to use within the shortcode? The posts work because I’m using it in a cloud template and it only display what I have set in post settings in the theme panel but in that case it shows ALL the networks.
Thank you.
I have three questions. Please answer.
1)
I want to change the date language. I want to show the date in another language that I want, How can I do it?
2) And If I want to edit this form backend where should I have to do that? I want to show the date from a plugin’s shortcode. How can I do that? Like:
<?php echo do_shortcode(‘[lang_date]’); ?>
If I want to use this code to show date into top header where should I exactly make the change?
3) How can I show newsletter in the widget so that I can show the newsletter in the sidebar.
I have tried reloading the theme over again and I’m still getting Fatal erros on my site:
Fatal error: Uncaught Error: Class ‘td_style’ not found in /home/dailydre/public_html/wp-content/plugins/td-composer/td-multi-purpose/styles/tds_title/tds_title1.php:9 Stack trace: #0 /home/dailydre/public_html/wp-includes/template.php(723): require_once() #1 /home/dailydre/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_autoload_classes.php(42): load_template(‘/home/dailydre/…’, true) #2 [internal function]: td_autoload_classes->loading_classes(‘tds_title1’) #3 /home/dailydre/public_html/wp-content/plugins/td-composer/td-multi-purpose/shortcodes/tdm_block_column_title.php(49): spl_autoload_call(‘tds_title1’) #4 /home/dailydre/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): tdm_block_column_title->render(Array, ”) #5 /home/dailydre/public_html/wp-includes/shortcodes.php(343): td_global_blocks::proxy_function(Array, ”, ‘tdm_block_colum…’) #6 [internal function]: do_shortcode_tag(Array) #7 /home/dailydre/public_html/wp-includes/shortcodes.php(218): p in /home/dailydre/public_html/wp-content/plugins/td-composer/td-multi-purpose/styles/tds_title/tds_title1.php on line 9
There has been a critical error on your website
I installed the ‘Time to Read’ plugin and it has the ability to be displayed on all posts as part of the meta-information, the advice on how to do this is given below:
“In case you want to display the time to read feature along with other meta information like author name, category, and date, you have to edit your theme files and place the following code:
<?php echo do_shortcode(‘[rt_reading_time label=”Reading Time:” postfix=”minutes”]’); ?> ”
I’m not entirely sure which theme file that code would have to be added to, to achieve this though.
I am using ADS Pro for managed ads and I am trying to find a way to edit it into my template, I attempt to add to custom ad, but that doesn’t work as it doesn’t execute the shortcode, I tried <?php echo do_shortcode(“[bsa_pro_ad_space id=1]”); ?> in a raw HTML element, but doesn’t seem to execute. I see the txt in the view source. How do I add this shortcode so I can run ADS Pro ads on my site?
this is not a question but a “how to” documentation
I am using shortcodes ultimate to fill in the missing accordion / toggle shortcodes.
for a toggle you simply call [su_spoiler title=”xxxx”] …… [/su_spoiler]
now I want my (default closed) toggles to be open when printing the page. Here is the code that you put into the child-themes / styles.css or in the shortcodes CSS options.
use the following CSS:
@media print {
.su-spoiler.su-spoiler-closed > .su-spoiler-content {
height: auto;
padding: 14px;
overflow: visible;
opacity: 1;
}
.su-spoiler.su-spoiler-closed.su-spoiler-icon-plus .su-spoiler-icon:before {
content: ‘\f068’;
}
}
Vladimir writes also: I’d recommend adding the code above to the Custom CSS code field at the plugin settings screen (Dashboard – Shortcodes – Settings).
in addition I use following trick to stay text-compatible with my former themes, where I had the shortcode [toggle] available.
i put in my own function.php following code that creates shortcodes [toggle] / [toggle1] / [toggle2] …..
(so I can have nested toggles)
this short function remaps [toggle] into [su_spoiler] which “shortcodes ultimate” wants to see to give me the toggle
function toggle_function($atts, $content=null){
extract( shortcode_atts( array(
‘title’ => ”,
‘class’ => ”,
), $atts ) );
// $s = ‘[accordion openall=”false” clicktoclose=”true”][accordion-item title=”‘ . $title . ‘”]’ . $content . ‘[/accordion-item][/accordion]’; –> this is the right line for plugin “WordPress Accordion”
// this is now the code for shortcodes ultimate
$s = ‘[su_spoiler style=fancy class=heli_su_toggles title=”‘ . $title . ‘”]’ . $content . ‘[/su_spoiler]’;
return do_shortcode($s);
}
add_shortcode (‘toggle’,’toggle_function’);
add_shortcode (‘toggle1′,’toggle_function’);
add_shortcode (‘toggle2′,’toggle_function’);
add_shortcode (‘toggle3′,’toggle_function’);
add_shortcode (‘toggle4′,’toggle_function’);
tx a lot, very very helpful! Now I know why searching for the class-describers didn’t find the right function file, you have a tremendous amount of functionality in the plugins! Sneaky !!!
just for s.o. else who also wants to have shortcodes in Author part:
1052 line-Number
$buffy .= ‘<div class=”td-author-description”>’;
$buffy .= do_shortcode(get_the_author_meta(‘description’, $author_id));
$buffy .= ‘</div>’;
I would like to add certain shortcode elements to my author box.
i found the text to be within a class “td-author-description”
which I only found in the loop-single.php
when I edit loop-single.php to show an extra header2 “test-header” and then do_shortcode I do not get any result. All Caching plugins are removed, I re-read the page with Ctrl-F5 and dont take it from browser-cache as well as I tried it with mobile & ipad. How would you suggest I can add shortcodes to author-box
<div class="td-author-description"><h2>test-header</h2>
<?php echo esc_html(do_shortcode("xxx" . get_the_author_meta('description', $author_id))) ?>
</div>
Hi,
If this <?php echo do_shortcode(“[pro_ad_display_adzone id=142424]”); ?> is the only code that you get, then this can be set only on theme files. Using Newspaper theme there are three headers.php if you are using standard pack and a standard header the code need to be set in this header file -> wp-content/plugins/td-standard-pack/Newspaper/header.php if you are using a cloud header from tagDiv Cloud Library you need to set the code in this header file -> header.php adn if the tagDiv Composer is not enable the theme will use this header file -> wp-content/themes/Newspaper/header.php
In order to set the cloud header on the whole website you need to set it in theme panel -> https://i.imgur.com/KObr5f8.png
Thank you!
Hi!
We want to add a custom ad banner in the header area, different from what the theme-included headers offer.
The following code should be used: <?php echo do_shortcode(“[pro_ad_display_adzone id=142424]”); ?>
We inserted it in the header.php but without any success, as nothing is shown on the frontend.
Could you tell us which file to edit to be able to insert the banner? We are using “Header style 10”.
Thank you,
Anna Balizs
Why I am having this error and my webpage get distorted.
Howdy!
Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
In this case, WordPress caught an error with one of your plugins, tagDiv Composer.
First, visit your website (http://www.kimpavitapress.no/) and check for any visible issues. Next, visit the page where the error was caught (http://www.kimpavitapress.no/wp-admin/post.php?post=5010&action=edit) and check for any visible issues.
Please contact your host for assistance with investigating this issue further.
If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.
To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 5.3.2
Current theme: Newspaper (version 10.2)
Current plugin: tagDiv Composer (version 2.5 | built on 11.11.2019 15:07)
PHP version 7.2.27-1+0~20200123.34+debian9~1.gbp63c0bc
Error Details
=============
An error of type E_ERROR was caused in line 181 of the file /home/4/k/kimpavitapress/www/wp-content/plugins/td-composer/legacy/common/wp_booster/td_block.php. Error message: Uncaught Error: Class ” not found in /home/4/k/kimpavitapress/www/wp-content/plugins/td-composer/legacy/common/wp_booster/td_block.php:181
Stack trace:
#0 /home/4/k/kimpavitapress/www/wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_block_slide.php(471): td_block->render(Array)
#1 /home/4/k/kimpavitapress/www/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): td_block_slide->render(Array, ”)
#2 /home/4/k/kimpavitapress/www/wp-includes/shortcodes.php(325): td_global_blocks::proxy_function(Array, ”, ‘td_block_slide’)
#3 [internal function]: do_shortcode_tag(Array)
#4 /home/4/k/kimpavitapress/www/wp-includes/shortcodes.php(199): preg_replace_callback(‘/\\[(\\[?)(td_blo…’, ‘do_shortcode_ta…’, ‘[td_block_slide…’)
#5 /home/4/k/kimpavitapress/www/wp-content/plugins/td-composer/includes/tdc_composer_block.php(198): do_shortcode(‘[td_block_slide…’)
#6 /home/4/k/kimpavitap
I’m trying this in loop.php, but it’s not doing anything.
$adcounter++; if (is_category() or is_archive()) { if ($adcounter == 5 or $adcounter == 10 or $adcounter == 15 or $adcounter == 20) {
echo do_shortcode(‘[td_block_ad_box spot_id="custom_ad_1"]‘);
}
}
Site: https://www.vitalthrills.com
-
This reply was modified 6 years by
mparlevliet.
Fatal error: Uncaught Error: Call to a member function format() on boolean in /home/u401292977/domains/portasdomarao.pt/public_html/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php:777 Stack trace: #0 /home/u401292977/domains/portasdomarao.pt/public_html/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_date.php(130): tdb_state_single->{closure}() #1 /home/u401292977/domains/portasdomarao.pt/public_html/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_date.php(130): Closure->__invoke() #2 /home/u401292977/domains/portasdomarao.pt/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): tdb_single_date->render(Array, '') #3 /home/u401292977/domains/portasdomarao.pt/public_html/wp-includes/shortcodes.php(325): td_global_blocks::proxy_function(Array, '', 'tdb_single_date') #4 [internal function]: do_shortcode_tag(Array) #5 /home/u401292977/domains/portasdomarao.pt/public_html/wp-includes/shortcodes.php(199): preg_replace_callback('/\\[(\ in /home/u401292977/domains/portasdomarao.pt/public_html/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php on line 777
This happens when I try to preview a draft article.
I already tried this solutions:
– Deactivate the schema articles;
– Modify the files:
– wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php
– wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php
and add this “|| is_preview()” without quotes. And the files already have that on the condition start;
– Deactivate and uninstall/delete the tagDiv Cloud Library
And unfortunately nothing worked for me. I have the latest version (10.3) of the template.
If everyone have a solution that I can try I will appreciate.
Best Regards,
Tiago
Hello,
I’m using WP Review Pro by My Theme Shop on my website running Newspaper 10.3. One of the features of this plugin is that it will display an overlay of the ratings over the post thumbnails, but it’s not working. I spoke with the plugin’s support and they came back with this:
“The plugin is not capable of detecing which image is a thumbnail of a post to be able to insert stars automatically. There are many different codes and themes.
For that reason you need to edit your theme’s files, find the file/code where the theme displays thumbnails and insert the plugin’s code in that area.
Basically it would be this code that needs to be inserted into your theme:
<?php echo do_shortcode( ‘[wp-review-visitor-rating id=”‘ . get_the_ID() . ‘”]’ ); ?>
You can ask your theme developer on where to insert that code.”
So, that leads to 2 questions. 1- Where is the best place to input this code? 2- Would this be best done using a child theme?
Thanks for the help.
hi I had a problem after the update made yesterday, I went from version 10.2 to version 10.3 it is a problem that can be solved otherwise I go back to version 10.2 I await
Fatal error: Uncaught Error: Call to a member function format() on boolean in /home/kendymak/offerteday.com/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php:777 Stack trace: #0 /home/kendymak/offerteday.com/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_date.php(130): tdb_state_single->{closure}() #1 /home/kendymak/offerteday.com/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_date.php(130): Closure->__invoke() #2 /home/kendymak/offerteday.com/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): tdb_single_date->render(Array, ”) #3 /home/kendymak/offerteday.com/wp-includes/shortcodes.php(325): td_global_blocks::proxy_function(Array, ”, ‘tdb_single_date’) #4 [internal function]: do_shortcode_tag(Array) #5 /home/kendymak/offerteday.com/wp-includes/shortcodes.php(199): preg_replace_callback(‘/\\[(\\[?)(tdb_si…’, ‘do_shortcode_ta…’, ‘[tdb_single_aut…’) #6 /home/kendymak/offerteday.com/wp-content/plugins/td-composer/includes/tdc_compos in /home/kendymak/offerteday.com/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php on line 777
I am getting the following Fatal Error on preview page, also it shows in mobile theme. I tried all the solutions of deactivating and then activating the tagDiv Cloud Library. It has not solved the problem.
Fatal error: Uncaught Error: Call to a member function format() on boolean in /home2/qzj6hn7y/public_html/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php:777 Stack trace: #0 /home2/qzj6hn7y/public_html/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_date.php(130): tdb_state_single->{closure}() #1 /home2/qzj6hn7y/public_html/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_date.php(130): Closure->__invoke() #2 /home2/qzj6hn7y/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): tdb_single_date->render(Array, ”) #3 /home2/qzj6hn7y/public_html/wp-includes/shortcodes.php(325): td_global_blocks::proxy_function(Array, ”, ‘tdb_single_date’) #4 [internal function]: do_shortcode_tag(Array) #5 /home2/qzj6hn7y/public_html/wp-includes/shortcodes.php(199): preg_replace_callback(‘/\\[(\\[?)(tdb_si…’, ‘do_shortcode_ta…’, ‘[tdb_single_dat…’) #6 /home2/qzj6hn7y/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php(1 in /home2/qzj6hn7y/public_html/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php on line 777
There has been a critical error on your website.
hi I had a problem after the update made yesterday, I went from version 10.2 to version 10.3 it is a problem that can be solved otherwise I go back to version 10.2 I await
Fatal error: Uncaught Error: Call to a member function format() on boolean in /home/kendymak/offerteday.com/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php:777 Stack trace: #0 /home/kendymak/offerteday.com/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_date.php(130): tdb_state_single->{closure}() #1 /home/kendymak/offerteday.com/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_date.php(130): Closure->__invoke() #2 /home/kendymak/offerteday.com/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): tdb_single_date->render(Array, ”) #3 /home/kendymak/offerteday.com/wp-includes/shortcodes.php(325): td_global_blocks::proxy_function(Array, ”, ‘tdb_single_date’) #4 [internal function]: do_shortcode_tag(Array) #5 /home/kendymak/offerteday.com/wp-includes/shortcodes.php(199): preg_replace_callback(‘/\\[(\\[?)(tdb_si…’, ‘do_shortcode_ta…’, ‘[tdb_single_aut…’) #6 /home/kendymak/offerteday.com/wp-content/plugins/td-composer/includes/tdc_compos in /home/kendymak/offerteday.com/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php on line 777
Hi,
I have the same problem and I followed the above mentioned steps but there is no change. I am still getting the error.
Fatal error: Uncaught Error: Call to a member function format() on boolean in /home2/qzj6hn7y/public_html/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php:777 Stack trace: #0 /home2/qzj6hn7y/public_html/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_date.php(130): tdb_state_single->{closure}() #1 /home2/qzj6hn7y/public_html/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_date.php(130): Closure->__invoke() #2 /home2/qzj6hn7y/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): tdb_single_date->render(Array, ”) #3 /home2/qzj6hn7y/public_html/wp-includes/shortcodes.php(325): td_global_blocks::proxy_function(Array, ”, ‘tdb_single_date’) #4 [internal function]: do_shortcode_tag(Array) #5 /home2/qzj6hn7y/public_html/wp-includes/shortcodes.php(199): preg_replace_callback(‘/\\[(\\[?)(tdb_si…’, ‘do_shortcode_ta…’, ‘[tdm_block_inli…’) #6 /home2/qzj6hn7y/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php(1 in /home2/qzj6hn7y/public_html/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php on line 777
There has been a critical error on your website.
I have this problem after update:
Fatal error: Uncaught Error: Call to a member function format() on boolean in /home/sosguide/public_html/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php:777 Stack trace: #0 /home/sosguide/public_html/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_date.php(130): tdb_state_single->{closure}() #1 /home/sosguide/public_html/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_date.php(130): Closure->__invoke() #2 /home/sosguide/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): tdb_single_date->render(Array, '') #3 /home/sosguide/public_html/wp-includes/shortcodes.php(325): td_global_blocks::proxy_function(Array, '', 'tdb_single_date') #4 [internal function]: do_shortcode_tag(Array) #5 /home/sosguide/public_html/wp-includes/shortcodes.php(199): preg_replace_callback('/\\[(\\[?)(tdb_si...', 'do_shortcode_ta...', '[tdb_single_aut...') #6 /home/sosguide/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php(198): do in /home/sosguide/public_html/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php on line 777
Hi Vlad,
Thanks for investigating this.
I reviewed the screen capture you provided but they do not match the queries we see.
Below is the call stack when adding a Multipurpose Shortcode “Inline Text”, which triggers the MySQL request I shared above.
I can reproduce this with a fresh install on Newspaper with a new WordPress.
Can you see it too?
WP_Query->get_posts()
wp-includes/class-wp-query.php:2994
WP_Query->query()
wp-includes/class-wp-query.php:3413
WP_Query->__construct()
wp-includes/class-wp-query.php:3522
td_data_source::get_wp_query()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_data_source.php:410
td_block->render()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_block.php:131
tdm_block_inline_text->render()
wp-content/plugins/td-composer/td-multi-purpose/shortcodes/tdm_block_inline_text.php:68
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:325
preg_replace_callback()
wp-includes/shortcodes.php:325
do_shortcode()
wp-includes/shortcodes.php:199
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:119
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:325
preg_replace_callback()
wp-includes/shortcodes.php:325
do_shortcode()
wp-includes/shortcodes.php:199
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:766
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:325
preg_replace_callback()
wp-includes/shortcodes.php:325
do_shortcode()
wp-includes/shortcodes.php:199
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:576
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:325
preg_replace_callback()
wp-includes/shortcodes.php:325
do_shortcode()
wp-includes/shortcodes.php:199
apply_filters('the_content')
wp-includes/plugin.php:206
the_content()
wp-includes/post-template.php:253
changing over my medium-sized health blog (2000 pages) to newspaper was almost painless
… unless …. the missing toggle and accordion function.
so here my solution
A) use plugin shortcodes-ultimate from Vlad A…
to make it much easier to call the toggles (and to be able to reuse my old websites source without any changes) I get the shortcode-call rewritten using a simple 3-liner php-function
I have all kind of tiny little php-functions that I collected over the years, to use all of them in my several pages I created my “own plugin” that carries those functions. You might just add following code to the newspapers child-theme functions.php
// for newspaper adding some toggle functions
function toggle_function( $atts , $content=null) {
extract( shortcode_atts( array(
'title' => '',
'class'=>'',
'style'=>'',
), $atts ) );
/* für shortcodes ultimate */
$ss = '[su_accordion][su_spoiler style="fancy" open="no" title="' . $title . '"]' . do_shortcode($content) . '[/su_spoiler][/su_accordion]';
return do_shortcode($ss);
}
add_shortcode( 'toggle', 'toggle_function' );
add_shortcode( 'toggle1', 'toggle_function' );
add_shortcode( 'toggle2', 'toggle_function' );
add_shortcode( 'toggle3', 'toggle_function' );
add_shortcode( 'toggle_framed', 'toggle_function' );
add_shortcode( 'toggleZ', 'toggle_function' );
by creating my own shortcode [toggle] [toggle1] [toggle2] [toggle3] …. I am able to have nested toggles
you just call them via
[toggle title="this is the toggles title"]
.... here is the text inside the toggle ....
[/toggle]
B) use plugin accordion shortcodes from Phil Buchanan
I actually use B in newspaper and had to use A for some different theme which messed up Phil’s plugin but was OK with Vlads plugin. I think that Vlads Shortcodes ultimate is easier and better integrated
use following functions.php addition
function toggle_function( $atts , $content=null) {
extract( shortcode_atts( array(
'title' => '',
'class'=>'',
'style'=>'',
), $atts ) );
/* für accordion shortcode */
$ss = '[accordion title="" open1st="0" openAll="0" style="toggle"][accordion_item title="' . $title . '"]' . do_shortcode($content) . '[/accordion_item][/accordion]';
return do_shortcode($ss);
}
add_shortcode( 'toggle', 'toggle_function' );
add_shortcode( 'toggle1', 'toggle_function' );
add_shortcode( 'toggle2', 'toggle_function' );
add_shortcode( 'toggle3', 'toggle_function' );
add_shortcode( 'toggle_framed', 'toggle_function' );
add_shortcode( 'toggleZ', 'toggle_function' );
here are some hints for some CSS that you add to your childs styles.css
/* Accordion Styles */
.accordion { margin: 18px 0px;border: solid lavender 6px;}
.accordion-title {margin:0;padding: 14px 14px 14px 20px;color:royalblue;cursor:pointer;font-weight:900;border-radius: 5px;overflow: hidden; border:1px solid gray;background:#f9f9f9;}
.accordion-title:hover {color:red;cursor: -webkit-grab; cursor: grab;font-weight:900;}
.accordion-title:before{content:”+ | “;width:49px;height:100%;border-width:0 0px 0 0;border-style:solid;text-align:left;}
.accordion-title:first-child {border: none;}
.accordion-title.open {cursor: default;}
.accordion-title.open:before {content:”- | “;width:49px;height:100%;border-width:0 0px 0 0;border-style:solid;text-align:left;}
.accordion-content {padding:20px 6px 15px 6px;background-color:whitesnow;}
/* Accordion Styles ende */
Hey!
Trying to create a custom block via API and the plugin I’ve made for it but get Fatal errors.. Please advise:
Here’s the error (it occurs twice):
[20-Jan-2020 10:44:25 UTC] PHP Fatal error: Uncaught Error: Class ‘elab_block_01’ not found in /–/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:33
Stack trace:
#0 /–/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): td_global_blocks::get_instance(‘elab_block_01’)
#1 /–/wp-includes/shortcodes.php(325): td_global_blocks::proxy_function(”, ”, ‘elab_block_01’)
#2 [internal function]: do_shortcode_tag(Array)
#3 /–/wp-includes/shortcodes.php(199): preg_replace_callback(‘/\\[(\\[?)(elab_b…’, ‘do_shortcode_ta…’, ‘[elab_block_01]’)
#4 /–/wp-content/plugins/td-composer/includes/tdc_ajax.php(246): do_shortcode(‘[elab_block_01]’)
#5 /–/wp-includes/rest-api/class-wp-rest-server.php(946): tdc_ajax::on_ajax_render_shortcode(Object(WP_REST_Request))
#6 /–/wp-includes/rest-api/class-wp-re in /–/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php on line 33
And here’s my plugin:
class elab_td_api_plugin {
var $plugin_url = ”;
var $plugin_path = ”;
function __construct() {
$this->plugin_url = plugins_url(”, __DIR__); // path used for elements like images, css, etc which are available on end user
$this->plugin_path = dirname(__DIR__); // used for internal (server side) files
add_action(‘td_global_after’, array($this, ‘elab_td_global_after’)); // hook used to add or modify items via Api
add_action(‘admin_enqueue_scripts’, array(‘elab_td_api_plugin’, ‘elab_td_plugin_wpadmin_css’)); // hook used to add custom css for wp-admin area
add_action(‘wp_enqueue_scripts’, array(‘elab_td_api_plugin’, ‘elab_td_plugin_frontend_css’)); // hook used to add custom css used on frontend area
}
static function elab_td_plugin_wpadmin_css() {
wp_enqueue_style(‘elab-td-plugin-framework’, plugins_url(”, __DIR__) . ‘/admin/style.css’); // backend css (admin_enqueue_scripts)
}
static function elab_td_plugin_frontend_css() {
wp_enqueue_style(‘elab-td-plugin-framework’, plugins_url(”, __DIR__) . ‘/css/style.css’); // frontend css (wp_enqueue_scripts)
}
function elab_td_global_after() {
td_api_thumb::add(‘elab_320x480’,
array(
‘name’ => ‘elab_320x480’,
‘width’ => 320,
‘height’ => 480,
‘crop’ => array(‘center’, ‘center’),
‘post_format_icon_size’ => ‘small’,
‘used_on’ => array(
‘Inimesed’
)
)
);
td_api_thumb::add(‘elab_80x120’,
array(
‘name’ => ‘elab_80x120’,
‘width’ => 80,
‘height’ => 120,
‘crop’ => array(‘center’, ‘center’),
‘post_format_icon_size’ => ‘small’,
‘used_on’ => array(
‘Loetelud’
)
)
);
td_api_module::add(‘elab_module_01’,
array(
‘file’ => $this->plugin_path . “/modules/elab_module_01.php”,
‘text’ => ‘ELAB Module 01’,
‘img’ => $this->plugin_url . ‘/images/modules/elab_module_01.png’,
‘used_on_blocks’ => array(‘elab_block_01’),
‘excerpt_title’ => 12,
‘excerpt_content’ => 25,
‘enabled_on_more_articles_box’ => true,
‘enabled_on_loops’ => true,
‘uses_columns’ => true, // if the module uses columns on the page template + loop
‘category_label’ => true,
‘class’ => ‘td_module_wrap td-animation-stack’,
)
);
td_api_block::add(‘elab_block_01’,
array(
‘map_in_visual_composer’ => false,
‘map_in_td_composer’ => true,
“name” => ‘ELAB Block 01’,
“base” => ‘elab_block_01’,
“class” => ‘elab_block_01’,
“controls” => “full”,
“category” => ‘Blocks’,
‘tdc_category’ => ‘Blocks’,
‘icon’ => ‘icon-pagebuilder-elab_block_01’,
‘file’ => $this->plugin_path . ‘/shortcodes/elab_block_01.php’,
“params” => array_merge(
td_config::get_map_block_general_array(),
td_config::get_map_filter_array(),
td_config::get_map_block_ajax_filter_array(),
td_config::get_map_block_pagination_array()
)
)
);
}
}
new elab_td_api_plugin();
Thanks in advance!
Hello, how about if i use a plugin called smartsliders to replace the ad area, it has the shortcode like “[smartslider3 slider=2]” or a php code like:
<?php
echo do_shortcode(‘[smartslider3 slider=2]’);
?>
How can i replace the ad area? I would like to replace both the header ad area & the custom ad area (which i inserted in some pages).
Thank you~
I have since few days now this recurrent error:
SELECT params, id
FROM onu_13_tg_item_skins
ORDER BY slug ASC
Unknown
Unknown Table ‘unricorg_prod.onu_13_tg_item_skins’ doesn’t exist qmdb
SELECT params, id
FROM onu_13_tg_item_skins
ORDER BY slug ASC
Unknown
Unknown Table ‘unricorg_prod.onu_13_tg_item_skins’ doesn’t exist qmdb
Example from the log:
[09-Dec-2019 10:31:34 UTC] PHP Fatal error: Uncaught Error: Call to a member function format() on bool in /home/unricorg/public_html/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php:1667
Stack trace:
#0 /home/unricorg/public_html/wp-content/plugins/td-cloud-library/wp_templates/tdb_view_single.php(88): tdb_state_single->{closure}()
#1 /home/unricorg/public_html/wp-content/plugins/td-cloud-library/wp_templates/tdb_view_single.php(88): Closure->__invoke()
#2 /home/unricorg/public_html/wp-includes/template-loader.php(98): include(‘/home/unricorg/…’)
#3 /home/unricorg/public_html/wp-blog-header.php(19): require_once(‘/home/unricorg/…’)
#4 /home/unricorg/public_html/index.php(17): require(‘/home/unricorg/…’)
#5 {main}
thrown in /home/unricorg/public_html/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php on line 1667
[09-Dec-2019 10:36:38 UTC] WordPress databasfel för Table ‘unricorg_prod.onu_13_tg_item_skins’ doesn’t exist förfrågan SELECT params, id FROM onu_13_tg_item_skins ORDER BY slug ASC skapat av require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/plugins/td-cloud-library/wp_templates/tdb_view_single.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, vc_widget_sidebar->render, dynamic_sidebar, WP_Widget->display_callback, apply_filters(‘widget_display_callback’), WP_Hook->apply_filters, on_widget_display_callback, WP_Widget_Custom_HTML->widget, apply_filters(‘widget_text’), WP_Hook->apply_filters, do_shortcode, preg_replace_callback, do_shortcode_tag, The_Grid_Shortcode->register_shortcode, The_Grid, The_Grid->render, The_Grid->get_data, The_Grid_Data->get_data, The_Grid_Data->normalize_data, The_Grid_Item_Skin->__construct, apply_filters(‘tg_add_item_skin’), WP_Hook->apply_filters, The_Grid_Plugin->{closure}, The_Grid_Custom_Table::get_skin_params
[09-Dec-2019 10:44:48 UTC] PHP Fatal error: Uncaught Error: Call to a member function format() on bool in /home/unricorg/public_html/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php:1667
Stack trace:
#0 /home/unricorg/public_html/wp-content/plugins/td-cloud-library/wp_templates/tdb_view_single.php(88): tdb_state_single->{closure}()
#1 /home/unricorg/public_html/wp-content/plugins/td-cloud-library/wp_templates/tdb_view_single.php(88): Closure->__invoke()
#2 /home/unricorg/public_html/wp-includes/template-loader.php(98): include(‘/home/unricorg/…’)
#3 /home/unricorg/public_html/wp-blog-header.php(19): require_once(‘/home/unricorg/…’)
#4 /home/unricorg/public_html/index.php(17): require(‘/home/unricorg/…’)
#5 {main}
thrown in /wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php on line 1667
[09-Dec-2019 10:48:10 UTC] WordPress databasfel för Table ‘unricorg_prod.onu_13_tg_item_skins’ doesn’t exist förfrågan SELECT params, id FROM onu_13_tg_item_skins ORDER BY slug ASC skapat av 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, The_Grid_Shortcode->register_shortcode, The_Grid, The_Grid->render, The_Grid->get_data, The_Grid_Data->get_data, The_Grid_Data->normalize_data, The_Grid_Item_Skin->__construct, apply_filters(‘tg_add_item_skin’), WP_Hook->apply_filters, The_Grid_Plugin->{closure}, The_Grid_Custom_Table::get_skin_params