Google Analytics and Pro editor not working (W3 Total Cache)

Hi.

The front end editor of Pro and Google Analytics does not seem to work. Analytics have been down since I updated from X to Pro in September. I cannot use the front end editor of Pro unless I disable W3 Total Cache.

Please help, thanks.

www.rumkraft.dk

Cheers,
Rasmus

Hello @rumkraft,

Thanks for asking. :slight_smile:

Have you tried clearing cache reserve of W3 total cache? Along with disable minification feature and see if that works. Next possible solution would be to make sure you have compatible version of PHP on server. WordPress require PHP 7 or later. You can refer following document for server requirement https://wordpress.org/about/requirements/1

In case you still face issues please share website login details in a secure note for us to take closer look.

Thanks.

Hi :slight_smile:

I’ve tried all of the above; disable CSS and JS minification, clear cache of W3, upgrade to PHP 7.

Still no worky worky :frowning:

Dashboard of W3 Total Cache under minify settings says the following:

Minify via xcache is currently enabled.

Is that minification via X / Pro theme ?

Okay, after disabling minification for CSS and JS one more place in the W3 (?!) I can now use the front end editor of Pro, but I get this error message and it only works when visiting the site and pressing “Edit with Pro”, not when trying to edit pages from the Pages tab under Control Panel:

"The preview HTML did not include a closing tag. It may fail to load or work properly.

Hi There,

Thanks for your confirmation!

I’m sorry about that. I don’t think there’s actually anything wrong. We added that error to help troubleshoot some issues, but looks like it’s triggering a false positive when W3TC is active. We can look into the best solution for this in a future update. You should be able to suppress the error by adding this to functions.php of a child theme:

add_filter( 'w3tc_can_print_comment', '__return_false' );

Hope this is clear to you!
Thanks

Thanks.

I’m not using a Child Theme. Would it still work, or is there a better solution?

Cheers,
Ras

Hi there,

It’s very important to have a child theme to include custom codes, plus, adding that line to the main theme will or may change the filter priority. Would you mind providing your site’s URL and admin login credentials? I may able to get further information.

Thanks!

Hi Rad.

Thanks.

URL is www.rumkraft.dk

How do I send you login credentials non-publicly?

Cheers,
Rasmus

Hi There,

To create a secure note please click on the key icon below to the post.

So that nobody can see except a staff member.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.