Email Protector

Version 4.4.2 causes a Javascript error, no email is displayed.

3 months 9 hours ago #93411

Peter Hellinger's Avatar Peter Hellinger

Hi Peter,

The new Email Protector version 4.4.2 causes a Javascript error "Uncaught ReferenceError: emailProtector is not defined" on several websites. If I deactivate the plugin, the email address is displayed correctly. Joomla 3.9.21

Example here, Email Protector activated: vielfalt-erhalten.de/

Confidential information:
(hidden)


Best regards, Peter Hellinger

3 months 2 hours ago #93412

Peter van Westen's Avatar Peter van Westen Admin

It seems specific to your site. I think it is caused by the Gantry template.
Email Protector checks to see if the Joomla core JFactory::getDocument()->getBuffer('component') command returns anything.
If not, it won't add the scripts.
It seems the homepage in your template is for some reason not returning any component.

Can you reproduce the issue with the Joomla core template?

3 months 2 hours ago #93413

Peter van Westen's Avatar Peter van Westen Admin

Please try the latest development version from:
www.regularlabs.com/development-releases

3 months 2 hours ago #93416

Peter Hellinger's Avatar Peter Hellinger

Strange. The plugin worked fine until version 4.4.2, only after that the error was noticeable. Only this morning, customers pointed out to me that the e-mail addresses "disappeared".

The 4.4.3 Developer version works again.

Many thanks!
Peter Hellinger

3 months 2 hours ago #93417

Peter van Westen's Avatar Peter van Westen Admin

Ok, great 🙂
The fix (workaround) will be included in the next release.

6 days 6 hours ago #94734

Herbert Kleinschmidt's Avatar Herbert Kleinschmidt

I have the same problem - but with current version 4.5.0! See baubiologie-bramsche.de/

6 days 4 hours ago #94735

Peter van Westen's Avatar Peter van Westen Admin

Looks like some weird caching going on, causing the ids in the content to be different than the ones used in the scripts and styles.

6 days 4 hours ago #94736

Herbert Kleinschmidt's Avatar Herbert Kleinschmidt

Hm, yep, I had the same assumption and had already deactivated Joomla system cache and JotCache, still RegLab's cache cleaner seems deleting 1.something kb caches, I have no idea where they come from.

And while using Fiefox Webdeveloper the changes made in style css-file do not happen when reloading the page. Do you have any idea? My websites - with the same styles and scripts running - are mostly hosted at all-inkl.com, this one at ionos.de. Can this be the reason?

6 days 3 hours ago #94737

Herbert Kleinschmidt's Avatar Herbert Kleinschmidt

Sorry, I meant strato.de

6 days 2 hours ago #94738

Peter van Westen's Avatar Peter van Westen Admin

Are you using the Page Cache plugin?

Read for more on caching here: www.joomlabeginner.com/blog/tutorials/81...able-cache-in-joomla

6 days 2 hours ago #94739

Herbert Kleinschmidt's Avatar Herbert Kleinschmidt

No, it's deactivated, too. And meanwhile I found out that Strato's "PHP Boost" causes caching - that's why I deactivated it now, too. I don't know when this will be effective for the website, but caching is now completely off - let's hope to get the problem solved by now.

6 days 51 minutes ago #94740

Peter van Westen's Avatar Peter van Westen Admin

Can you give me (super) admin and (s)ftp access so I can take a look?
You can use the 'Hidden text' button in the forum editor to hide the confidential information.

6 days 14 minutes ago #94741

Herbert Kleinschmidt's Avatar Herbert Kleinschmidt

Thx for looking.

Confidential information:
(hidden)

5 days 20 hours ago #94743

Peter van Westen's Avatar Peter van Westen Admin

This is down to weird character encoding going on on your server.
Simple characters like a hyphen (#45) are no longer real hyphens, but are somehow converted to En Dashes (#8211).

I have no idea what on your setup is causing that, but that is the issue.

5 days 20 hours ago #94744

Herbert Kleinschmidt's Avatar Herbert Kleinschmidt

Sounds like another good reason for changing the host…

I wonder why images are not shown, why links to existing articles in menu items appear broken and why the same protostar template.css shows different results on sites at All-inkl and on Strato. 🙁

Thx for checking!
Regards, Herbert

5 days 9 hours ago #94751

Herbert Kleinschmidt's Avatar Herbert Kleinschmidt

I apologize for suspecting Strato – over night I found out who is converting hyphens into dashes: me with ReReplacer. Too bad I forgot to exclude HTML from the action. 🙁

That first simple trick did it. Everything is looking fine again after replacing also the dashes which had found their way into css files via copy-paste. 🤔

5 days 5 hours ago #94752

Peter van Westen's Avatar Peter van Westen Admin

With great power...

5 days 5 hours ago #94753

Herbert Kleinschmidt's Avatar Herbert Kleinschmidt

… yes, uncle Ben, I understand.