Support » Plugin: Simple Download Monitor » Showing WordPress Error on browser tab

  • I have set up Simple Download Monitor to prompt user to login before they can download a file. So what happens is when a logged out visitor comes and click Download, they are directed to a page that says: You need to be logged in to download this file. Click here to go to login page. My issue is the browser tab is showing WordPress > Error which doesn’t look nice. Is there a way to change that to show my site name instead of WordPress?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, the plugin does not control what the error message in the tab looks like. This is more a WordPress related issue and or your theme. I see the image belongs to Hostgator. Perhaps you could speak to Hostgator support. Or maybe speak to your theme developers.

    Let me know how you go.

    Kind regards

    • This reply was modified 1 year, 3 months ago by  mbrsolution.

    Okay, thanks for looking into it! I’ll reach out to them.

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, how are you trailing with this issue? Have you solved it yet?

    Try this: I did it my way.

    1. Create a page ‘not-found’
    2. Replace in includes/sdm-download-request-handler.php (line 51):

    – – – – –

    $error_msg = __(‘Error! This download requires a password.’, ‘simple-download-monitor’);

    $error_msg .= ‘<p>’;

    $error_msg .= ‘‘ . __(‘Click here’, ‘simple-download-monitor’) . ‘‘;

    $error_msg .= __(‘ and enter a valid password for this item’, ‘simple-download-monitor’);

    $error_msg .= ‘</p>’;

    wp_die($error_msg);

    }

    – – – – –

    By:

    – – – – –

    header(‘Location: /not-found’);
    exit; }

    – – – – –

    3. And replace (line 69):

    – – – – –

    wp_die(__(‘Error! Incorrect password. This download requires a valid password.’, ‘simple-download-monitor’));

    – – – – –

    By the same lines:

    – – – – –

    header(‘Location: /not-found’);
    exit;

    – – – – –

    It redirects to a page you designed and you can tell there about the reasons, all in one window. Not difficult to implement in the plugin, I think.

    Good luck…

    (See https://cgid.nl/niet-gevonden/)

    • This reply was modified 1 year, 2 months ago by  xonnext.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Showing WordPress Error on browser tab’ is closed to new replies.