Skip Navigation

[Closed] Toolset View Js conflit

This support ticket is created 3 years, 7 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Karachi (GMT+05:00)

This topic contains 9 replies, has 3 voices.

Last updated by Waqar 3 years, 7 months ago.

Assisted by: Waqar.

Author
Posts
#2239195

Hi,

When activated , toolset view make a lot of js conflit with wordpress.

Post are not loaded on the front home page,

How to solve ?

I have tested with another theme, ( base theme of wp ) it 's the same case.

hidden link
See js errors

I can give you a back office /FTP acces to the dev version of this website

URGENT

Thanks

#2239225

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

I visited your site and could see a JS error in the console, but it's not related to Toolset.

It looks like it comes from something called "mojo signup forms".

If you are not sure what is responsible for that, I suggest you disable the plugins except for Toolset on your site, verify that there are no errors, and then re-enable the other plugins until you see the error appear.

#2239277

Hi Nigel,
As you can see now, i had disabled all plugins except toolset and woocommerce, and it' s the same problem.

If you unactive toolset view, the blog load normally.
Thank to take a look.

Best regards,

Stephan

#2239653

Hi Stephan,

Thanks for writing back.

I've performed some tests on my website with similar settings, but couldn't reproduce these errors.

This suggests that something specific to your website or server is involved.

Do I have your permission to download a clone/snapshot of the staging website? This will help us in investigating this on a different server, in more depth.

regards,
Waqar

#2239671
#2240359

Thank you for the permission and I've downloaded the website's clone.

I'm currently performing some tests and will share the findings, as soon as this testing completes.

Thank you for your patience.

#2240397

Thank you for waiting.

During troubleshooting, I noticed that the errors shown in the browser's console are fixed, if the following embed code from the MailChimp is removed from the widget area:
( WP Admin -> Appearance -> Widgets -> Default Sidebar )


<script type="text/javascript" src="//downloads.mailchimp.com/js/signup-forms/popup/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script><script type="text/javascript">require(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us17.list-manage.com","uuid":"86b317d46547fd8bb35aadde4","lid":"0362c70588"}) })</script>

You can remove that code from the widget area and instead load it using a custom function attached to the "wp_footer" hook.
( ref: https://developer.wordpress.org/reference/hooks/wp_footer/ )

For example:


function function_for_mailchimp_form() {
	echo '<script type="text/javascript" src="//downloads.mailchimp.com/js/signup-forms/popup/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script><script type="text/javascript">require(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us17.list-manage.com","uuid":"86b317d46547fd8bb35aadde4","lid":"0362c70588"}) })</script>';
}
add_action( 'wp_footer', 'function_for_mailchimp_form', 9999999 );

The above code snippet can be included through either Toolset's custom code feature ( ref: https://toolset.com/documentation/adding-custom-code/using-toolset-to-add-custom-code/ ) or through the active theme's "functions.php" file.

#2240801

Thank you Waqar for your assistance.

By removing the code in the widget, js errors disapear, it's fine, but doesn't resolve the default display of the blog :

hidden link

By disabling toolset view, the blog is loading.

I found the part of the adjustment which generates the blockage :

hidden link

In loop selection, if accueil/blog is checked, the blog doesn't load, if unchecked, home page blog is loaded.
Why ?

Thank you for your help

#2241303

Thanks for writing back.

Your observation is correct and this is expected.

When no WordPress Archive ( from WP Admin -> Toolset -> WordPress Archives ) is assigned to the loop "Home/Blog", the homepage is shown using the active theme's template.

If you'd like to keep using the theme's template for the homepage, then you should not override it using the Toolset WordPress Archive feature.

#2242151

Yes i understand,

But there are filtered archives (a lot) that should appear when using the loop home/blog, but none appear when the option is checked, that the problem.

Best regards,

Stephan

#2243193

I'm sorry, but I couldn't understand the issue mentioned in your last message.

On the staging website, I see that the WordPress Archive "Archive for Home-blog Archives" is set to show posts from the category "ACTUS" using infinite scrolling and it is showing correctly on the homepage.

Can you please the exact details about what you expected and what you're seeing instead?

The topic ‘[Closed] Toolset View Js conflit’ is closed to new replies.