- NewspapertagDiv Composer Tutorial
- NewspaperCredit System
- NewspaperCreate a frontend submission form
- NewspaperHow to Use the Tabbed Content shortcode
- NewspaperCreate a form contact page
- NewspaperFilters and sorting for taxonomies
- NewspaperUser review system
- NewspaperModal Popup
- NewspaperFlex Block Settings Guide
- NewspaperSocial Sharing
- NewspaperSingle Post Shortcodes
- NewspaperInfinite Loading for Single Posts
- NewspaperThe Newspaper Mobile Theme: Introduction
- NewspaperHow to Add a Logo in Newspaper
- NewspaperCustom Post Type Support
- NewspaperCloud Library Templates
- NewspaperDesign your Post Pages using the Cloud Library Templates
- NewspaperHeader Builder
- NewspapertagDiv Cloud Library Plugin
- NewspaperAd Box Element and Ads Overview
Hello!
We are currently having problems with embedding posts into another post.
When this is done, the following error is displayed:
themes/Newspaper/functions.php
themes/Newspaper/includes/tagdiv-config.php
themes/Newspaper/includes/tagdiv-page-generator.php
themes/Newspaper/includes/wp-booster/tagdiv-admin-notices.php
themes/Newspaper/includes/wp-booster/tagdiv-global.php
themes/Newspaper/includes/wp-booster/tagdiv-log.php
themes/Newspaper/includes/wp-booster/tagdiv-options.php
themes/Newspaper/includes/wp-booster/tagdiv-remote-http.php
themes/Newspaper/includes/wp-booster/tagdiv-util.php
themes/Newspaper/includes/wp-booster/tagdiv-wp-booster-functions.php
themes/Newspaper/includes/wp-booster/wp-admin/plugins/class-tagdiv-current-plugins-deactivation.php
themes/Newspaper/includes/wp-booster/wp-admin/plugins/class-tagdiv-old-plugins-deactivation.php
themes/Newspaper/tagdiv-deploy-mode.php
wp_booster error:
td_api_base::mark_used_on_page : a component with the ID: td_res_context is not set.
/var/www/html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_api.php
We are still on Newspaper 12.6.1.
Thanks in advance!
Nora
Hello,
Please block /wp-json/tdw/save_css
If an attacker wants to target this URL /wp-json/tdw/save_css they can do so. Even if the website uses a different theme, the attacker can still try that URL. We could add an option to be able to enable/disable the Live CSS, it will be considered. But for now in order to remove it this can only be done with a modification to the composer plugin. I think that all that removing it requires is to comment this line of code – https://prnt.sc/RtwvL5Nc4ikR -> https://prnt.sc/ymZmhdUfp57U But as I mentioned, the attacker can still try to access the URL.
Thank you!
Hello,
You can translate it in the theme files wp-content/plugins/td-composer/legacy/common/wp_booster/td_social_sharing.php -> https://i.imgur.com/A6mIVVB.png
Thank you!
Hello,
I have the following problem: one of my sites with its Newspaper theme called http://www.imagenesyespecialistas.com has been presenting an issue for weeks where it only redirects to other advertising sites on the mobile version.
Before realizing that it was the TagDiv Composer, I used all the tools available to find the vulnerability. I debugged plugins one by one, but the problem persists.
I used Wordfence, Sucuri, Quttera Web Malware Scanner, and the tools provided by my hosting provider, but the problem still persists.
I consulted my hosting provider and this was their response:
“Hello,
We have been able to verify that the “td-composer” plugin is the cause of the problem.
You can disable the plugin and check again.
If the problem persists, please contact the corresponding plugin vendor.
Best regards,
Roshney P.
BanaHosting.com Inc.
Think Big, Think Bana!”
After receiving this message, I did the following:
I deleted the theme and reinstalled it, but the problem continues. I only installed the TagDiv Composer plugin after downloading it from https://themeforest.net/.
I would appreciate any help with this problem, as it would be very helpful for me and future individuals facing this issue. Thank you very much!
Hi,
Yes, this widget is a WP native element, but displayed content is filtered by a hook by TagDiv. This is the code at line #2919 in wp-content/plugins/td-composer/legacy/common/wp_booster/td_wp_booster_functions.php:
/**
* Filter sets the global block template to the wp widgets
* @see 'widget_display_callback' hook on 'class-wp-widget.php'
*/
add_filter('widget_display_callback', 'on_widget_display_callback', 10, 3);
function on_widget_display_callback($currentWidgetInstanceSettings, $currentWidgetInstance, $widgetArgs) {
if( isset($widgetArgs['widget_id']) && strpos($widgetArgs['widget_id'], 'td_block') !== 0 ) {
// var_dump($widgetArgs);
// var_dump($currentWidgetInstance);
$global_block_template_id = td_options::get('tds_global_block_template', 'td_block_template_1');
$widgetArgs['before_widget'] = str_replace(' class="', " class=\"$global_block_template_id ", $widgetArgs['before_widget']);
$block_title_class = 'td-block-title';
if ($global_block_template_id === 'td_block_template_1') {
$block_title_class = 'block-title';
}
$widgetArgs['before_title'] = '<h4 class="' . $block_title_class . '"><span>';
$widgetArgs['after_title'] = '</span></h4>';
call_user_func_array(array($currentWidgetInstance, 'widget'), array($widgetArgs, $currentWidgetInstanceSettings));
// Returning false will effectively short-circuit display of the widget.
return false;
}
// Returning $currentWidgetInstanceSettings, as the apply_filters of this hook require
return $currentWidgetInstanceSettings;
}
If you comment “add_filter” line all works fine. The problem is that the instruction
call_user_func_array(array($currentWidgetInstance, 'widget'), array($widgetArgs, $currentWidgetInstanceSettings));
sends false as second parameter but called function expects an array.
Anyway I tried PHP 8.0 as you suggested but error persists. If you want to check it out I can send you URL and credentials.
Regards.
Hi as object i have switched to PHP 8.2 from PHP 7.4 and now i have a lot of errors in log
When use PHP 7.4 no issue , but when i switch to PHP 8 starts problems
I use Apache with NGINX as reverse proxy and varnish cache
[Wed Apr 17 13:31:02.360563 2024] [proxy_fcgi:error] [pid 30014:tid 140341663422208] [client xxxx:34924] AH01071: Got error ‘PHP message: PHP Warning: Undefined array key “color-1-overlay” in /home/xxxx/public_html/xxx/wp-content/plugins/td-composer/legacy/common/wp_booster/td_block.php on line 2677; PHP message: PHP Warning: Undefined array key “color-2-overlay” in /home/xxxx/public_html/xxxx/wp-content/plugins/td-composer/legacy/common/wp_booster/td_block.php on line 2677’
It seems for a problem with overlay on flex block 2 , please can i fix ?
Thanks
Having disabled the newsletter and optin plugins now the error is this:
AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, bool given in /home/850962.cloudwaysapps.com/hejdvngfwj/public_html/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php:957\nStack trace:\n#0 /home/850962.cloudwaysapps.com/hejdvngfwj/public_html/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php(957): array_filter()\n#1 /home/850962.cloudwaysapps.com/hejdvngfwj/public_html/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_categories.php(328): tdb_state_single->{closure}()\n#2 /home/850962.cloudwaysapps.com/hejdvngfwj/public_html/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_categories.php(328): Closure->__invoke()\n#3 /home/850962.cloudwaysapps.com/hejdvngfwj/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): tdb_single_categories->render()\n#4 /home/850962.cloudwaysapps.com/hejdvngfwj/public_html/wp-includes/shortcodes.php(433): t…’, referer: https://pathologia.eu/wp-admin/post.php?post_id=10238&td_action=tdc&tdbLoadDataFromId=21480&tdbTemplateType=single&prev_url=%2F%2Fpathologia.eu%2Fenimerosi%2Ftrith-hlikia%2Fnosos-alzheimer%2Fnosos-alzheimer-amfisviteitai-i-epikratesteri-theoria-gia-ti-noso-meta-apo-dyo-nees-meletes%2F
So it is obviously something that has to do with the single categories block.
The site runs on php 8.2
Hi Newspaper,
We uploaded our logo through theme panel >> Logo&Favicon, but out logo is not showing. Then we tried another method, we went to Cloud Templates, and then went to Header Templates and edited with TD composer, trying to upload our logo again but it’s still not showing(the logo on our main page is still “DOWNTOWN Magazine Pro”). What could be the problems and how could we solve it?
Our website link is as follows: https://mychocho.com/
Thank you!
Best,
Kelly
Hello @lucadelpozzo!
For flex blocks (1-5) you can find the files here: wp-content\plugins\td-composer\legacy\Newspaper\includes\modules
If you can’t manage to do it on your own, then you can contact our custom work team here: https://tagdiv.com/premium-customization-services/
Thank you!
Hi My Friends Can you Help mi for fix this Errors
i’m pay this template for my site
in site this errors
https://lifetv.am/tdcpt_app_listing/title-app-listing/
Pleas help mi
Composer not Working
Hello @mtdas99!
For customization and other services, you can contact our custom work team here: https://tagdiv.com/premium-customization-services/. They could help you to achieve this request.
Please note that if a page is made by Composer, than the content won’t be displayed on Mobile theme version. You should create the content with the Mobile Editor. Please see https://forum.tagdiv.com/the-mobile-theme/ and https://forum.tagdiv.com/mobile-theme-introduction/ for more information.
Thank you!
Okay my question is kinda simple, from WP-ADMIN, at Cloud Templates i have edited my header/footer templates and homepage template, on their options i have only
Edit with TD Composer
Edit
View
Rename
Duplicate
Delete
Can someone please tell me how to esily export those and import them / migrate them to my other installation.
i have a news/blog site, i am feeding my images from a aws large FS bucket, some of my images do not load until i open the post that it belongs and then reload the page and it is using style=”background-image: url(‘https://hetrodox.wpenginepowered.com/wp-content/plugins/td-composer/legacy/Newspaper/assets/images/no-thumb/td_696x0.png’)” as the image.
Hi Anamaria,
I’m still a bit confused as to how I change main row width globally across my site. I seem to be stuck on 1068px and the only way I seem to be able to change this is by adding code like this:
@media only screen and (min-width: 1400px) {
.td-container, .tdc-row, .tdc-row-composer {
width: 1180px;
}
}
What’s the advantages and disadvantages of using Cloud Templates by the way?
Thanks again,
Dave
hello.
After server transfer, other plugins were activated, but td-composer and td-cloud-library plugins were not.
Do you know a solution?
Hello,
I solved my cache problem with the social sharing module. My solution is to exclude /wp-content/plugins/td-composer/legacy/Newspaper/js/tdSocialSharing.js.And then purge the cache several times. Which I didn’t do during my first attempts. I only purged it once on my first try. I’ve had this solution running for 5 days and it seems to work very well.
I don’t know if the solution you suggest is better?
Thank you very much for your help.
Luc Laporte
Hi
sorry, I’ve just disabled maintenance mode, please let me know when you’ve inspected the page.
I don’t think it’s a margin issue, by the way I’ve already tried to set margin, border and padding to 0, but it still doesn’t work.
The problem is exactly that I do not want ANY margin, the first row (column, by the way) have to be at position 0 in the page, as well as the last, that have to be on bottom of the page, as shown in TD Composer.
I’ve uploaded the source text for that page here
https://symt2023.proper-milano.cloud/landing-page-text-source.txt
You can copy in text mode to a new page and see what happens: after importing the text, you’ve also to disable header and footer from TD Composer website manager.
Thanks again, Luca
Hi
this is what I see in TD composer, first row is aligned to the top, last row is aligned to the bottom
Row layout settings are
If i change vertical align type like that
I see this in TD composer
As you can notice, First row (with Logo) is not aligned to the top, and last row is not aligned to the bottom, the vertical colums are evenly distributed.
I need to have the FIRST display solution, but when I save the page I always get the same result, with both Row Layout settings
You can see the live page here
https://symt2023.proper-milano.cloud/landing-page-sample/
Please let me know if you need more info.
Best regards, Luca
Hello @Fausto!
Please note that if you have some custom modifications in the theme files, then better save the code and replace it after every update.
Try to change the h3 into h2 in this path: td-composer/legacy/Newspaper/includes/shortcodes/td_block_image_box.php on 420 line.
Thank you!
I need to create a full height page, a landing page, with no header and footer, just three elements, the first one aligned at the top, the last one aligned at the bottom, the second one occupying the middle part.
With TD Composer I’ve created a page with a full height row with three horizontally oriented columns (width 100%), and I chose the “space between” option in vertical align (see Row Layout Setting Image).
In TD Composer I see the page as I would like it (see image 1), while if I select the “space evenly” option the three blocks are correctly evenly distributed in TD Composer (see image 2).
However, the same the same displayed page ALWAYS shows the three blocks evenly distributed, even when the vertical align option is space between (see image 3).
How can I fix this situation?
I am using Newspaper 12.6.5, and the example I am showing you is simplified, just to show you the malfunction.
Thanks in advance, Luca
Image 1 https://imgur.com/cn2Ddzg
Image 2 https://imgur.com/K5zUspZ
Image 3 https://imgur.com/t6R0oLt
Row Layout Settings https://imgur.com/8sm9jKI
Hello, since we updated to the latest version of TagDiv Newspaper, we have encountered a critical error message on posts from several years ago. However, when we go into the post and only hit update (without actually updating anything), the error goes away and we can view the post again.
We checked with our host (BigScoots) and they said it is due to an error in TagDiv. Please see below and please provide any guidance that you can.
[07-Apr-2024 22:52:09 UTC] PHP Fatal error: Uncaught TypeError: Argument 1 passed to tdb_state_single::sort_terms_hierarchically() must be of the type array, null given, called in /home/nginx/domains/profootballnetwork.com/public/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php on line 963 and defined in /home/nginx/domains/profootballnetwork.com/public/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php:3650
Stack trace:
#0 /home/nginx/domains/profootballnetwork.com/public/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php(963): tdb_state_single->sort_terms_hierarchically()
#1 /home/nginx/domains/profootballnetwork.com/public/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_categories.php(328): tdb_state_single->{closure}()
#2 /home/nginx/domains/profootballnetwork.com/public/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_categories.php(328): Closure->__invoke()
#3 /home/nginx/domains/profootballnetwork.com/public/wp-content/plugins/td-composer/legacy/common/wp in /home/nginx/domains/profootballnetwork.com/public/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php on line 3650
Ayuda es que este error sale en la parte de calendario.
wp_booster error:
td_module: td_module_12($post): $post is not WP_Post
/home/xxxxx/xxxxx/xxxxx/xxxxx/xxxxx/wp-content/plugins/td-composer/legacy/common/wp_booster/td_module.php
he visto en los foros que al desactivar el standar pack funciona, pero en mi caso si desactivo este se desconfiguraria toda la pagina, por favor necesito de su ayuda
Errors appear above the gallery entries:
Warning: Array to string conversion in /../wp-content/plugins/td-composer/legacy/common/wp_booster/td_util.php on line 1711
Warning: Array to string conversion in /../wp-content/plugins/td-composer/legacy/common/wp_booster/td_util.php on line 1711
Hello @Wriper!
Sure. This is the path: td-composer\mobile\includes\shortcodes\td_block_big_grid_mob_1.php
Thank you!
Hello, I recently had a problem with social sharing and Litespeed Cache. I think I need to exclude the CSS and JS modules from the social sharing module but I don’t know which JS and CSS I need to identify and exclude them from the cache system.
I tried to exclude the JS by entering /wp-content/plugins/td-composer/legacy/Newspaper/js/tdSocialSharing.js in the exclusion field but that has no effect.
This is the only theme module that stops working when I activate the Advanced preset. The social sharing icons and function no longer display at all.
Could you help me.
Thanks in advance
Luc Laporte