I am getting several warnings in my WP log:
[30-Sep-2024 11:32:31 UTC] PHP Deprecated: Creation of dynamic property WP_Mailto_Links_Settings::$at_identifier is deprecated in …../wp-content/plugins/wp-mailto-links/core/includes/classes/class-wp-mailto-links-settings.php on line 48
[30-Sep-2024 11:32:31 UTC] PHP Deprecated: Creation of dynamic property WP_Mailto_Links_Settings::$previous_version is deprecated in …../wp-content/plugins/wp-mailto-links/core/includes/classes/class-wp-mailto-links-settings.php on line 49
[30-Sep-2024 11:32:31 UTC] PHP Deprecated: Creation of dynamic property WP_Mailto_Links_Settings::$hook_priorities is deprecated in …../wp-content/plugins/wp-mailto-links/core/includes/classes/class-wp-mailto-links-settings.php on line 50
and there are more for other variables.
I am on PHP 8.2.23
Can this please be fixed?
I have a number of mailto links with subject to help the recipient know how the contact was initiated – see above page. The mailto link get protected, but the ?subject=…. now gets munged into the email address, so the link so longer works. This used to work. I tried different settings and different email clients. also tried generating a link directly as html link This too gets protected but the result is the same. Seems ? in the string is being filtered.
]]>Hi,
Thank you for this plugin.
Is it possible for you to make it ready to translate?
At the moment, only 11 strings are ready to translate.
https://translate.www.ads-software.com/locale/fr/default/wp-plugins/wp-mailto-links/
Thanks
hi,
we are using the plugin in the latest version 3.1.4.
php version is 8.2.13
the following errors we got:
[11-Dec-2023 10:11:18 UTC] PHP Fatal error: Uncaught ValueError: DOMDocument::loadHTML(): Argument #1 ($source) must not be empty in /var/www/vhosts/domain.de/httpdocs/wp-content/plugins/wp-mailto-links/core/includes/classes/class-wp-mailto-links-validate.php:334
Stack trace:
#0 /var/www/vhosts/domain.de/httpdocs/wp-content/plugins/wp-mailto-links/core/includes/classes/class-wp-mailto-links-validate.php(334): DOMDocument->loadHTML()
#1 /var/www/vhosts/domain.de/httpdocs/wp-content/plugins/wp-mailto-links/core/includes/classes/class-wp-mailto-links-validate.php(59): WP_Mailto_Links_Validate->filter_soft_dom_attributes()
#2 /var/www/vhosts/domain.de/httpdocs/wp-content/plugins/wp-mailto-links/core/includes/classes/class-wp-mailto-links-run.php(291): WP_Mailto_Links_Validate->filter_page()
#3 /var/www/vhosts/domain.de/httpdocs/wp-includes/class-wp-hook.php(324): WP_Mailto_Links_Run->filter_page()
#4 /var/www/vhosts/domain.de/httpdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#5 /var/www/vhosts/domain.de/httpdocs/wp-content/plugins/wp-mailto-links/core/includes/classes/class-wp-mailto-links-run.php(92): apply_filters()
#6 [internal function]: WP_Mailto_Links_Run->apply_content_filter()
#7 /var/www/vhosts/domain.de/httpdocs/wp-includes/functions.php(5373): ob_end_flush()
#8 /var/www/vhosts/domain.de/httpdocs/wp-includes/class-wp-hook.php(324): wp_ob_end_flush_all()
#9 /var/www/vhosts/domain.de/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#10 /var/www/vhosts/domain.de/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
#11 /var/www/vhosts/domain.de/httpdocs/wp-includes/load.php(1260): do_action()
#12 [internal function]: shutdown_action_hook()
#13 {main}
thrown in /var/www/vhosts/domain.de/httpdocs/wp-content/plugins/wp-mailto-links/core/includes/classes/class-wp-mailto-links-validate.php on line 334
what could be done to eliminate it?
br,
newbie2004
]]>Hi
[wpmt_protect]YOUR CONTENT YOU WANT TO CHECK FOR EMAILS[/wpmt_protect]
What is this job?
thank you
]]>We haven’t seen an update for 3 years now. Is the plugin still maintained? Would be a pity. It still works like a charm, but more and more security scanners throw a warning.
Thanks!
]]>I made a WordPress website with 5 email links using the mailto:… script but NONE is working with my Gmail !
What can I do ?
Thanks for your help…
Hi,
we are using your great plugin on a website which is using Salient theme.
If the page transitions are disabled the website is visible after cklicking a protected mailto link.
if page transitions are enabled after cklicking mailto link the whole page will be white and not visible. You must reload it to get content back.
Can you give us an advice to let your plugin work still using page transitions?
Br,
newbie2004
PHP Fatal error: Uncaught ValueError: DOMDocument::loadHTML(): Argument #1 ($source) must not be empty in /.../wp-content/plugins/wp-mailto-links/core/includes/classes/class-wp-mailto-links-validate.php:334
Please fix.
]]>Have had at least 5 users tell us that when they click the email icon which has a mailto:[email protected] link it does not open anything for them?
This was not an issue on our old website (not wordpress) so wondering if it is a wordpress issue…
]]>PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function mk_filter_native_widgets(), 3 passed in /var/www/vhosts/tagesenergie.org/httpdocs/wp-includes/class-wp-hook.php on line 287 and exactly 4 expected in /var/www/vhosts/tagesenergie.org/httpdocs/wp-content/themes/jupiter/framework/functions/widgets-filter.php:84
Stack trace:
#0 /var/www/vhosts/tagesenergie.org/httpdocs/wp-includes/class-wp-hook.php(287): mk_filter_native_widgets(‘<section id=”se…’, NULL, ‘search-2’)
#1 /var/www/vhosts/tagesenergie.org/httpdocs/wp-includes/plugin.php(206): WP_Hook->apply_filters(‘<section id=”se…’, Array)
#2 /var/www/vhosts/tagesenergie.org/httpdocs/wp-content/plugins/wp-mailto-links/core/includes/classes/class-wp-mailto-links-run.php(149): apply_filters(‘widget_output’, ‘<section id=”se…’, NULL, ‘search-2’)
#3 /var/www/vhosts/tagesenergie.org/httpdocs/wp-includes/widgets.php(805): WP_Mailto_Links_Run->call_widget_callback(Array, Array)
#4 /var/www/vhosts/tagesenergie.org/h” while reading response header from upstream, client: 193.29.106.22, server: tagesenergie.org, request: “GET /allgemein/alexanders-tagesenergie-139/?utm_source=mailpoet&utm_medium=email&utm_campaign=betreff_14
Hi!
For JS encoded mails I’m getting such an error in Chrome Lighthouse accessibility check:
Links do not have a discernible name
Link text (and alternate text for images, when used as links) that is discernible, unique, and focusable improves the navigation experience for screen reader users.
It’s happening because of empty links…
Can we fix it somehow?
Thanks.
Hi,
Thank you for sharing your plugin. I checked a site with WP Mailto Links using the W3C HTML Checker (https://validator.w3.org/) and it returned this warning:
Warning: The type attribute is unnecessary for JavaScript resources.
From line 63, column 1; to line 63, column 163
</script>?<script type='text/javascript' src='https://domain.xy/wp-content/plugins/wp-mailto-links/core/includes/assets/js/custom.js?ver=200608-71355'></scri
Just in case you like to update it in a next release.
Cheers,
sankari
The plugin is breaking our site, due to a conflict with the theme. When using the latest version (4.3.8) of the Responsive theme by CyberChimps (https://www.ads-software.com/themes/responsive/), WP Mailto Links breaks the site. (Source code stops loading near the top of the <body>.) The problem disappears when I deactivate the plugin.
Everything works fine when I use the Twenty Twenty theme. It also works when I use an old version of Responsive 3.14. (The theme has since undergone a major update.) I will report this to CyberChimps as well.
I can’t point you to a site because I’m testing on an offline staging site.
I hope this can be fixed because our site relies on WP Mailto Links and I need to update Responsive. Thank you.
]]>Hi,
The plugin is not working with beaver builder (BB) constructor icons, I had to disable icon links because they weren’t been obfuscated. I’ve read about other issue with BB icons (https://www.ads-software.com/support/topic/randomly-hides-emails-on-beaver-builder-icon-module/), it was solved so I was wondering whether my case would have the same solution.
Thank you in advance.
Antonio
Hello, A weird one here. I use Beaver Builder and when I insert an ICON module and enter in an email address as a MAILTO: with your plugin active the email address disappears from the page in a random manner. You can see this happening in the above URL. I have added a page of email address links to it but some are displayed and some are not visible even though the icon module has been duplicated.
I contacted Beaver Builder support and they said if it’s possible to “Increase the filter hook priority that handles the encoding process” and “If so what is the code to be added to the Functions.php file”
I hope you can answer this for me and let me know what I need for the code to put in the functions.php. I think your plugin is perfect but also need to add the icon module in Beaver Builder for email links etc.
Thankyou.
]]>Hi,
Since the update to 3.0.0 I’m getting an fatal error on the pages where I’m using wpml_mailto() in my template.
Call to undefined function wpml_mailto()
I had to rollback to 2.20 to make it work again.
Thanks for the plugin !
Best,
Marius
]]>I had an image with an email address in the metadata (via Photoshop) – the media library pulled the metadata into the caption field.
html
<p><a href="https://www.waynejonesaudio.com/products-specs/wjbp-stereo-bass-pre-amp/"><img src="https://www.waynejonesaudio.com/wp-content/uploads/WJBP-bass-guitar-preamp-245x223.jpg" alt="Wayne Jones Audio - WJBP Stereo Valve Bass Pre-Amp" width="245" height="223" class="fade imgBorder alignnone size-full wp-image-3506" title="CLICK for Details & Specs" /></a></p>
displayed as
https://www.dropbox.com/s/tbjy210qkv1f921/image-with-email-in-caption.png?dl=0
As you can see by the html code there was no displaying of the Caption in the HTML.
Removing wp-image-3506 from class resolved it – but shouldn’t have to do that
I deleted the caption in the media Library – and updated the image – no change
I turned off image accelerator in JetPack – did not fix issue
Turned off JetPack completely – fixed issue
Tried “automatically the best method (excluding javascript)” – did not fix issue
Tried “simple HTML character encoding.” – did not fix issue
This has happened throughout the website with other images containing email address in metadata.
]]>When I active the latest plugin version, I get this (see image) html error. It’s above the content and I can’t figure out what’s happening.
]]>When the Jetpack Carousel module is enabled, metadata extracted from the original image is added to the markup for every image, as JSON, like this example:
data-image-meta="{"aperture":"10","credit":"","camera":"Canon EOS REBEL T5","caption":"","created_timestamp":"1531865537","copyright":"","focal_length":"13","iso":"100","shutter_speed":"0.008","title":"","orientation":"1"}"
A problem occurs when the copyright owner includes their email address in the copyright field. WP Mailto Links makes the JSON invalid, which breaks the HTML structure of the page, resulting in ugly text and layout problems in the browser.
]]>if (class_exists(‘WP_CLI’)) {
WP_CLI::add_command(‘cli_debug’, ‘cli_debug’);
}
function cli_debug() {
while (true) {
var_dump(‘Print this till the end of the world!’);
}
}
WP CLI will crash due memory issues if this plugin is activated. Not a single line is printed.
]]>Hi,
I’m having an issue with one emailaddress where only in Internet Explorer two letters get in the wrong direction.
When I look the the email-address on other browsers I get the correct address:
[email protected]
But when I look at it in IE it looks like this:
[email protected]
So the “f” and “l” are reversed. Could this be a problem with font ligatures?
Regards,
Holger
]]>Sometime in the last few days, a display issue has crept in. Instead of displaying the email address correctly, I get four lines of the component parts of the address, reversed email which I think, from inspecting it, are the js elements.
This error occurs in the sidebar widget for Modern Events Calendar (see the ORGANISER box) but the same address displays correctly in the event details section to the left. Bizarrely, if I use the Chrome extension CSSScan to examine the CSS, clicking anywhere on the page causes the address to display correctly until the page is refreshed. I wondered it is was being caused by minification, but disabling Hummingbird Pro made no difference.
It could be MEC that’s at fault here, but I have to have that plugin to display the issue.
I wondered if you could provide me with any insights please?
]]>If you have a builder that generates code for you and activate the plugin to filter plain emails, then the code that is generated has errors.
For example, with the Themify builder, the excert of code at the bottom of the page is generated. You an see that the emails have been replaced, but the mailto anchor is not aware that it is already inside a string. The double quote for the href in the anchor is not escaped.
It would be great if the plugin could be contextually aware and escape itself appropriately.
Thanks
————-
var themify_builder_data_80 = [{“element_id”:”9f7b57c”,”cols”:[{“element_id”:”05aa1b4″,”grid_class”:”col4-2″,”modules”:[{“mod_name”:”text”,”element_id”:”44f9b6f”,”mod_settings”:{“background_image-type”:”image”,”background_repeat”:”repeat”,”background_position”:”left-top”,”font_color_type”:”font_color_solid”,”checkbox_padding_apply_all”:”1″,”checkbox_margin_apply_all”:”1″,”border-type”:”top”,”font_color_type_h1″:”font_color_h1_solid”,”font_color_type_h2″:”font_color_h2_solid”,”font_color_type_h3″:”font_color_h3_solid”,”font_color_type_h4″:”font_color_h4_solid”,”font_color_type_h5″:”font_color_h5_solid”,”font_color_type_h6″:”font_color_h6_solid”,”checkbox_dropcap_padding_apply_all”:”1″,”checkbox_dropcap_margin_apply_all”:”1″,”dropcap_border-type”:”top”,”content_text”:”<h3>Officers<\/h3><p>President<\/strong><br \/>Angela Ingraham<br \/><span class=”wpmt wpml-rtl”><span class=”wpml-sd”>gro.s</span><span class=”wpml-nodis”>1568775374</span><span class=”wpml-sd”>gohae</span><span class=”wpml-nodis”>1568775374</span><span class=”wpml-sd”>niug@</span><span class=”wpml-nodis”>1568775374</span><span class=”wpml-sd”>tnedi</span><span class=”wpml-nodis”>1568775374</span><span class=”wpml-sd”>serp</span><span class=”wpml-nodis”>1568775374</span></span>\”><span class=”wpmt
]]>Hi,
can you please set a dependancy for the custom.js script to jQuery.
class-wp-mailto-links-run.php, line 171:
wp_enqueue_script( 'wpmt-js-frontend', WPMT_PLUGIN_URL . 'core/includes/assets/js/custom.js', array(), $js_version );
to
wp_enqueue_script( 'wpmt-js-frontend', WPMT_PLUGIN_URL . 'core/includes/assets/js/custom.js', array(<strong>'jQuery'</strong>), $js_version );
Thank you.
Regards,
Holger
]]>version 3.0.1
I checked “plain emails by converting them to mailto links” and it scrambled everything on the page.
I was not going to check other pages as I needed to revert it back asap
Obviously I can’t show a demonstration of this while it totally disrupts the website but will check on a test site tomorrow with version 3.0.2.
]]>After Update 3.00 and 3.01 a Widget with Sidebar an Nav, will not display. If I deactivate WP Mailto-Links the Sidebar with Nav will be displayed. Looks like another bug. Can you help?
thanks
Gerd
I have to deactivate this great plugin. Since 3.0.1 the footer (or the content with yoast and Avada widgets) is not show anymore.
]]>I received this error when updating today:
Fatal `error: Uncaught Error: Call to undefined function WPWHPRO() in /home/[snip]/public_html/mcht/wp-content/plugins/wp-mailto-links/core/includes/partials/widgets/main.php:99
Stack trace:
#0 /home/[snip]/public_html/mcht/wp-content/plugins/wp-mailto-links/core/includes/partials/wpmt-page-display.php(54): include()
#1 /home/[snip]/public_html/mcht/wp-content/plugins/wp-mailto-links/core/includes/classes/class-wp-mailto-links-run-admin.php(142): include(‘/home/[snip]/…’)
#2 /home/[snip]/public_html/mcht/wp-includes/class-wp-hook.php(286): WP_Mailto_Links_Run->render_admin_menu_page(”)
#3 /home/[snip]/public_html/mcht/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
#4 /home/[snip]/public_html/mcht/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#5 /home/[snip]/public_html/mcht/wp-admin/admin.php(253): do_action(‘settings_page_w…’)
#6 /home/[snip]/public_html/mcht/wp-admin/options-general.php(10): require_once(‘/home/[snip]/…’)
#7 {main}
thrown in /home/[snip]/public_html/mcht/wp-content/plugins/wp-mailto-links/core/includes/partials/widgets/main.php on line 99`
Astra technical support suggested I contact you regarding this issue.
If your plugin is activated and a page has the UAGB Table of Contents activated, only on a mobile, a square with an up arrow appears. This icon is Astra’s Scroll to Top module, which is specific to the Table of Contents.
Link to Astra’s Table of Contents documentation:
However, I have this Scroll to Top module deactivated in the Astra settings on both desktop and mobile, so it should not appear on a mobile phone.
I can hide the icon on mobile like this:
.uagb-toc__scroll-top {
display: none !important;
}
But I would prefer a fix instead.
Many thanks
]]>