Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
be2name
tagDiv Member

I always saw this sidebar, and I doon’t want the main column displayed with 100% to reflect the real size. Since the newest WordPress-Update 6.9.4 this column-section is gone. How can I bring it back?

be2name
tagDiv Member

Sorry, file is in
/wp-content/plugins/td-composer/legacy/common/wp_booster/

be2name
tagDiv Member

Hello tagDiv team,

I have an update regarding the search functionality errors:

Status Update:

  • FIXED: The original implode() error has been resolved in the latest version
  • NEW ISSUE: A critical error has been discovered at a different location

New Error Details:

Error Message: Fatal error: Uncaught Error: Cannot access offset of type array on array in td_util.php on line 1196

Problem Description: The code in td_util.php at line 1196 assumes get_query_var('post_type') always returns a string. However, this function can return an array when multiple post types are being searched. This causes a fatal error when the array is used as an array key.

Current Problematic Code (Line ~1192-1196):

$post_type = get_query_var('post_type'); if ( !empty($post_type) && $post_type !== 'post' ) { $td_cpt = td_util::get_option('td_cpt'); if ( !empty( $td_cpt[$post_type]['search_tpl'] ) ) { // ← FATAL ERROR HERE $cpt_search_template_id = $td_cpt[$post_type]['search_tpl']; } }

Proposed Fix:

$post_type = get_query_var('post_type');

// Fix: get_query_var('post_type') can return an array, handle both cases if ( is_array($post_type) ) { $post_type = !empty($post_type) ? $post_type[0] : ''; }

if ( !empty($post_type) && $post_type !== 'post' ) { $td_cpt = td_util::get_option('td_cpt'); if ( !empty( $td_cpt[$post_type]['search_tpl'] ) ) { $cpt_search_template_id = $td_cpt[$post_type]['search_tpl']; } }

Environment:

  • Newspaper Theme (latest version)
  • td-composer plugin (included with theme)
  • PHP 8.0+
  • WordPress 6.x

Impact: Search functionality is completely broken. This is a critical bug that prevents users from using the search feature on the site.

Request: Could you please include this fix in the next update of td-composer? This is a critical bug that breaks essential site functionality. The array type checking ensures compatibility with all scenarios where get_query_var('post_type') might return different data types.

Affected File: /wp-content/plugins/td-composer/legacy/common/td_util.php – Line 1196

Thank you for your attention to this matter!

Best regards

  • This reply was modified 9 months by be2name.
be2name
tagDiv Member

No, this is not a plugin issue, it’s a bug in Newspaper!

See here how to fix it:
https://forum.tagdiv.com/topic/subject-critical-bug-in-td_util-php-line-1196-search-functionality-broken/

There was an update today, but this bug has not been fixed by the developers.

be2name
tagDiv Member

Too bad this wasn’t fixed with the latest update 🙁

be2name
tagDiv Member

Thank you. It’s working now. Maybe it seemed to be a browser cache problem.

Additional question: There is still no way to change the sort-order of the social media icons in the mobile menu?

be2name
tagDiv Member

Thank you for your answer. Knowing that it worked for you, I did some research and found out, it’s a conflict with the plugin Advanced Editor Tools.
Resolved.

be2name
tagDiv Member

But then again I must ask my initial question:
when I click on the font selection of the cloud template editor I can see a lot of Font Stacks defined. https://app.screencast.com/ruYYIdbghkNYn
How can I define my own font list?
Like
Merriweather,Helvetiva,Georgia,serif

be2name
tagDiv Member

Hm,
but how can I define a custom font stack for the font-selection like e. g.

“Merriweather, Georgia, ‘Times New Roman’, Palatino Linotype, Palatino, Cambria, Baskerville, serif”

be2name
tagDiv Member

I see this in the changelog now, but where do I find this new option?

be2name
tagDiv Member

Yes, but if I show it on a single post, I have to somehow set a filter, that it shows only the data of the current post id. How can I do this?

be2name
tagDiv Member

Hello,
yes, I was able to make a copy of the module layout. But my question is: Is it possible to use the module itself on a single page, so I don’t have to edit the copy if I change something in the module layout.

be2name
tagDiv Member

Hello Bettina,

sorry, my explanation of what I wanted was not good enough. I will show you some links to better understand, what I want to do.

I here have a category list using modules, based on CPT UI and ACF:

https://www.literaturcafe.de/rubrik/schreibwettbewerbe/

On the post-details of a CPT I want to show the exact same data as in the modules:

https://www.literaturcafe.de/schreibwettbewerbe/piper-schweibwettbewerb-between-pages/

I did this now by re-designing the module layout on the single page.

But I thought it would be more elegant, to show the module of one post also on the single page. So when the layout of the module changes, the single page also automatically shows the same.

How can I do this? Show the content of a module on a single page?

be2name
tagDiv Member

Thank you!

be2name
tagDiv Member

Hello @Anamaria,
I found a CSS-solution to remove the link an a module tilte (or any post-title in the post-loop) to the post itself.
I added a CSS class .nolink with the following rules:

.nolink {
cursor: default;
pointer-events: none;
text-decoration: none;
}

be2name
tagDiv Member

Thank you.

be2name
tagDiv Member

Hello Anamaria,
thank you very much, but this solution won‘t help me. This is a „normal“ shortcode defined in functions.php and it‘s not coming from Woocommerce. And I don‘t want to remove it, because it‘s perfectly executed in the shortdescription in the product view (see first link in first post).
I need a solution for executing shortcodes in the excerpts in the post loop. All the solutions with a filter don‘t work in Newspaper.
Greetings

be2name
tagDiv Member

The shortcodes are executed in the product view. Could you point me in the direction where I have to change something to make shortcodes executed also in the overview (post loop?).
All filter solutions I found do not work in the Newspaper theme.

be2name
tagDiv Member

I tried this filter in functions.php, but without success:

add_filter('get_the_excerpt', 'do_shortcode');

be2name
tagDiv Member

Think I fixed it.
The problem is gone, after just saving the theme panel settings (without changing any value)

be2name
tagDiv Member

There used to be positioning css-rules for .td-scroll-up in the file

/wp-content/plugins/td-composer/legacy/Newspaper/assets/css/td_legacy_main.css

Can’t find them anymore after the update.

be2name
tagDiv Member

Hello,
just downgraded my website to 12.6.4
But you can see it also on the website of one of my customers, which I upgraded to 12.6.5:
https://www.stuttgarter-schriftstellerhaus.de/

be2name
tagDiv Member

Same here! Scroll-up-button seems to be messed up after the update.
Desktop-version shows button symbol at the top as shown by @Schnorrer12 and mobile pages have no button at all.

be2name
tagDiv Member

Did the update again two days later. Now the version-number is correct.

be2name
tagDiv Member

Linking to the media file AND enabling the modal view, does not make sense in my eyes. I want a modal view automatically, when linking to the media file.
Because on the other side, I get an error, if the file has no link and the modal view is enabled.

Viewing 25 posts - 1 through 25 (of 142 total)