Skip Navigation

[Resolved] Error showing up when using dynamic block

This support ticket is created 2 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 12 replies, has 2 voices.

Last updated by cna-serviziS 2 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#2308311
Schermata 2022-03-04 alle 09.42.42.png
Schermata 2022-03-04 alle 09.44.47.png

Hi,
I'm using Toolset with Kadence Pro Theme and Blocks on this website.
I've created an Element template to replace the archive loop item on the Blog page called "Blog archive item". On a Kadence Advanced text (the number for the date) I tried changing the source to "Other post" and "Blog archive item" to make the date dynamic, but there are console error logs (see screenshot) and the action is not successful.
I deactivated all plugins other than Kadence and Toolset ones to exclude conflict, but the problem was still there.
Could you help find out what's causing this please?
Second screenshot is the hosting error log.
Thank you very much

#2308395

Also, within the same Element, the second Advanced Text block that should display the Post Date (it's set to display the month), shows the month in English, while the website language is set to Italian. How can I solve this?

#2308403

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I see you already shared the admin access but can you please share step information that should help me to see the issue. Can you please share problem URL and share required step informtion.

Can you please check and confirm if you added the following line is added to wp-config.php?

define( 'SCRIPT_DEBUG', true );

- If yes, can you set it to false and see if you can see the error.

Based on the error log you shared, I can see that the error belongs to plugin "kadence-pro":
- https://toolset.com/wp-content/uploads/2022/03/2308311-Schermata_2022_03_04_alle_09.42.42.png

Do you see error is gone when you disable the plugin "kadence-pro", that means there must be conflict from "kadence-pro":

#2308633

Can you please share problem URL and share required step informtion.
This is the URL where the Element is displayed: hidden link
The Element edit page can be reached here: Appearance>Kadence>Elements>Blog archive item

Can you please check and confirm if you added the following line is added to wp-config.php?
No there wasn't
- If yes, can you set it to false and see if you can see the error.
I've added the line:
define( 'SCRIPT_DEBUG', false );

Do you see error is gone when you disable the plugin "kadence-pro", that means there must be conflict from "kadence-pro
The ability to add Hooked Elements comes with the Pro version of the theme. If I deactivate it, the problem goes away of course but I cannot access Elements anymore (which let me customize the appearance of my blog loop the way I want it - that is the point 🙂

#2311289

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I'm on the edit archive loop tempalte:
- hidden link

Can you please share with what block I can see the dynamic popup for which you shared the screenshot with your initial post:
- https://toolset.com/wp-content/uploads/2022/03/2308311-Schermata_2022_03_04_alle_09.44.47.png

#2311413
Schermata 2022-03-08 alle 10.26.36.png

Please see screenshot

#2312967
Schermata 2022-03-10 alle 10.20.15.png
Schermata 2022-03-10 alle 10.20.39.png

Hi,
so I tried recreating the layout for the date only with Toolset blocks.
It works well, but only on the backend page (please see first screenshot - blue backgrounds). On the frontend all the styles are missing (second screenshot).
Could you please look into this?
hidden link

Thank you

#2313031

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

To the fields and text block you added that displays the day number, I've added the following CSS code:

<style> 
 .daynumber { background-color: blue; 
color: white;
  }
</style>

And I've set the "daynumber " as class name for the "Fields and Text" block from the "Advanced" tab, please check the following screenshot"": hidden link

You can set the desired color as per your choice, this is the best workaround as of now rather waiting compatibility fix for months.

I can see it does display blue background color: hidden link

#2313285

Ok, I've adjusted everything with CSS.

You can set the desired color as per your choice, this is the best workaround as of now rather waiting compatibility fix for months.

I'm using just Toolset blocks here, what compatibility do you mean? It seems here the blocks are not functioning the right way as I'm working just with them and the dynamic source is a standard wordpress one.

thank you for your help

#2313345

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I'm using just Toolset blocks here, what compatibility do you mean? It seems here the blocks are not functioning the right way as I'm working just with them and the dynamic source is a standard wordpress one.
==>
You are using blocks within the "Kadence Element" that is the issue. That is why the styles is not copied to frontend.

#2316167

Ok thank you

#2316169

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

You're welcome. Please feel free to close this ticket.

#2316171

You can close this