Forum Replies Created

Viewing 15 replies - 1 through 15 (of 2,175 total)
  • Plugin Author Jose Mortellaro

    (@giuse)

    Thank you so much, @onehipsista! That’s awesome to hear. I’m really happy that Top Bar Links is helping you save time!

    Have a great day!

    Plugin Author Jose Mortellaro

    (@giuse)

    Hi @vfsjason,

    I will be happy to help you, however, we are not allowed to assist users in this forum when the issue is related to the PRO version.

    I kindly ask you to open a support ticket at https://support.freesoul-deactivate-plugins.com/ or use the contact form at https://freesoul-deactivate-plugins.com/contact/, specifying the email associated with your PRO license.

    Best regards

    Jose

    Plugin Author Jose Mortellaro

    (@giuse)

    Hi Svenms,

    this is very strange for me.
    Never seen this PHP warning with FDP.

    FDP loads the plugin translation files only in the backend using the admin_init action.
    The admin_init action fires later than the init action. Theoretically that warning should never appear, and as said I’ve never seen it, and no other users have reported this issue.

    Can you tell me the WordPress and FDP versions that are running on your site?

    Do you maybe have any plugin or custom code that interfere with the translations?

    Best regards

    Jose

    Plugin Author Jose Mortellaro

    (@giuse)

    Hi James,

    Unfortunately, FDP can’t replicate the function WC().

    It looks like free-shipping-notification-woocommerce doesn’t check whether a function exists before using it.

    If you have the PRO version of FDP, you can solve this using the Plugin Dependencies settings. You can read more details here:
    https://freesoul-deactivate-plugins.com/how-deactivate-plugins-on-specific-pages/keeping-plugins-always-active-when-another-plugin-is-active/

    If you only have the free version, I see three possible options:

    1. Contact the authors of free-shipping-notification-woocommerce and report this issue. You could tell them that when using a function that isn’t defined in their code and isn’t a native PHP function, they should first check whether the function exists.
    2. Carefully review your FDP settings. Try to identify where WooCommerce may be disabled while free-shipping-notification-woocommerce is still active. You mentioned that all plugins are enabled, but that might not actually be the case. To be sure, I suggest resetting the FDP settings.
      Be aware that you will lose all the FDP setttings.
      More details here:
      https://freesoul-deactivate-plugins.com/how-deactivate-plugins-on-specific-pages/reset-fdp-settings/
    3. Wait until I test Relevanssi and Free Shipping Bar for WooCommerce in my testing installation. At the moment, I can’t say how long this will take.

    Best regards

    Jose

    Plugin Author Jose Mortellaro

    (@giuse)

    Hi James,

    you are welcome! Before the fatal error was caused byt the missing function is_checkout. Now it’s caused by the missing function is_cart.
    Sorry, I didn’t check carefully the code of free-shipping-notification-woocommerce.
    I suggest download and test version 2.6.3 from this link: https://downloads.wp.xz.cn/plugin/freesoul-deactivate-plugins.2.6.3.zip.

    If the issue is solve with v. 2.6.3 I will publish it.

    Best regards

    Jose

    Plugin Author Jose Mortellaro

    (@giuse)

    Hi James,

    thank you for reporting this issue.

    Relevanssi  doesn’t check if the function is_checkout exists before using it.
    When a function is defined in another plugin you should always check if it exist before using that function. Unfortunately, some plugins don’t check it.

    Probably, you deactivated WooCommerce somewhere, and those rules are applied also during the searching process. Maybe Relevanssi calls the homepage, or another URL where that plugin is disabled. I don’t know. I should investigate it deeper to find out the main cause of this issue.

    Anyway, I suggest update Freesoul Deactivate Plugins to the latest version v. 2.6.2 and let me know if you still have the same issue.

    Now FDP provides the function is_checkout when WooCommerce is disabled and you should not have any more the issue. But if you still ahve problems with version 2.6.2, don’t hesitate to reply.

    Best regards

    Jose

    Plugin Author Jose Mortellaro

    (@giuse)

    Hi @personalhistory

    the plugin is for serving specific content for mobile devices, but it can’t handle background images added via customization.

    I assume those images are added via CSS. You would need custom CSS for serving different images on mobile. This is out of the scope of the plugin.

    If you need custom CSS you can write me using the form at https://josemortellaro.com/contact/.

    Best regards

    Jose

    Plugin Author Jose Mortellaro

    (@giuse)

    Hi @cutu234

    thank you for sharing this very useful snippet.


    Regarding the essential_form_settings filter, I would replace

    return $translations[$lang] ?? $translations['de'];

    with

    $current_lang_settings = $translations[$lang] ?? $translations['de'];

    return array_merge($options, $current_lang_settings);

    I would do that because if in a future version of the plugin the $options array has new keys, with array_merge you will not lose them. As you probably know array_merge preserves all the keys that aren’t in your custom code, while overriding only the specific ones you’ve provided.
    With the current version of the plugin you don’t need array_merge, and probably you will never need it. This is just a caveat. But if the plugin’s core logic in the future introduces new keys to the $options array, your current code would overwrite everything and return an array with missing data.

    Let’s say that using array_merge makes your code more future-proof.

    I think the rest is perfect as it is. Thank you again for your snippet.

    Have a great day!

    Jose

    Plugin Author Jose Mortellaro

    (@giuse)

    Hi @rakiem

    I’ve replied to your ticket.

    Best regards

    Jose

    Plugin Author Jose Mortellaro

    (@giuse)

    Hi @loralora

    You can check if the domain of the email exists with this custom code:

    add_action( 'essential_form_before_sending', function( $name, $email, $message, $post_id ) {
    /*
    * Check if the email is valid and the domain exists
    */
    if ( ! is_email( $email ) ) {
    wp_die( 'Invalid email address.' );
    }

    $domain = substr( strrchr( $email, "@" ), 1 );

    if ( function_exists( 'checkdnsrr' ) ) {
    $valid = checkdnsrr( $domain, 'MX' );
    } elseif ( function_exists( 'dns_get_record' ) ) {
    $records = dns_get_record( $domain, DNS_MX );
    $valid = ! empty( $records );
    } else {
    $valid = true; // fallback: skip check
    }

    if ( ! $valid ) {
    wp_die( 'Email domain does not exist.' );
    }

    }, 10, 4 );

    If you add this code to the functions.php file of your child theme or to a functional plugin, it will run before the email is sent.

    At least one of the functions checkdnsrr() or dns_get_record() must be available; otherwise, this code will not be able to check whether the email domain exists. On most servers, this should not be an issue, but if these functions are not available, you may need to enable DNS support in PHP on your server.

    Please keep in mind that even if you check the existence of the domain:

    • The email address itself might still not exist
    • The inbox might not accept emails
    • Only sending an email (or using a verification service) can truly confirm it

    However, accepting only email addresses with a valid domain is already a good way to filter out many invalid emails.

    This custom code is not implemented in the core of Essential Form because it slows down the sending process, as it requires a DNS lookup for each submitted email, which introduces an external network request and potential latency. However, if we receive more reports about the form sending a large number of spam emails, even if they are manually submitted, I will consider adding this check to the plugin core.

    I hope it’s clear.

    Have a great day!
    Jose

    Plugin Author Jose Mortellaro

    (@giuse)

    Hi @agniusin

    thank you for translating Essential Form to Lithuanian.

    If you upload your translations to https://translate.ww.wp.xz.cn/locale/lt/default/wp-plugins/essential-form/, and they approve them, it will work for sure next time you update WordPress or go to Dashboard => Updates and click on Update Translations.

    In other cases, it depends on how you translated it. Have you loaded the translation files to wp-content/languages/plugins/ ?

    Best regards

    Jose

    Plugin Author Jose Mortellaro

    (@giuse)

    You are welcome @codings !

    Your settings will not be lost because there is nothing you need to configure. The plugin automatically adds the missing titles without you having to do anything.

    There are no settings that will be lost because the settings don’t exist. It’s like worrying about losing your third arm. Sorry for the stupid example. It’s just to say that the sentence means that you can’t lose something that was never created in the first place.

    When you deactivate the plugin, you don’t lose any work, because no permanent changes were ever made. You can’t lose something that doesn’t exist.

    Of course, you lose the titles after deactivation. This is clear.

    If you want the missing titles to appear again, simply reactivate the plugin.

    In short:

    • You activate the plugin → it automatically adds the missing titles to the content.
    • You deactivate the plugin → it stops adding the missing titles, and everything returns to the way it was before activation.

    In my opinion, after deactivating a plugin, you should have the same situation that was before activating that plugin. If you could still have the same functionality after plugin deactivation, it would be a nightmare when you decide to deactivate some plugins.

    I hope it’s clearer now.

    Best regards

    Jose

    Plugin Author Jose Mortellaro

    (@giuse)

    Hi @codings thank you for your thread.

    The missing titles are added on the fly.
    When you deactivate the plugin, it will no longer add missing titles.

    All changes are applied dynamically by the plugin. You are not setting up anything that will be lost after deactivation. The plugin does not write anything to the database.

    This version does not include any options. However, your suggestions are very helpful, and I will take them into account. At the moment, I cannot say when an updated version will be available.

    Best regards

    Jose

    Plugin Author Jose Mortellaro

    (@giuse)

    Hi @carlodamo

    add that line manually and that’s it.

    The plugin is only for those users who have no FTP access for adding that line of code.

    Best regards

    Jose

    Plugin Author Jose Mortellaro

    (@giuse)

    Hi @carlodamo

    It works for me.

    Can you check if the following line is present in your wp-config.php file?

    define( ‘WP_DISABLE_FATAL_ERROR_HANDLER’, true );

    If you can’t find it, your server may not grant permission to edit that file.

    If you do find it, then there’s no way the issue is caused by this plugin. In that case, you probably have another plugin or some custom code that filters the wp_fatal_error_handler_enabled hook.

    Just to clarify: when it works properly, you simply won’t receive any email when a fatal error occurs on your website. Nothing else changes.

    I wanted to make sure you understand how it works, since you shared your website link. However, by just looking at your website, it’s not possible to debug anything.

    I hope it helps

    Best regards

    Jose

Viewing 15 replies - 1 through 15 (of 2,175 total)