• Resolved Whitenorthstar

    (@whitenorthstar)


    Hi, your plugin has been great… easy to use… and given great service on my site for about a year.

    The thing is, it seems to have broken, which seems to have been caused by the latest WordPress update.

    It looks fine, but when a user tries to sign up, they get an error message like…
    “Warning: mysql_query(): Access denied for user ‘seithcg’@’localhost’ (using password: NO) in ****.php on line 272

    Warning: mysql_query(): A link to the server could not be established in ****.php on line 272

    Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in ****.php on line 273″

    https://www.ads-software.com/plugins/mail-subscribe-list/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author noahkagan

    (@noahkagan)

    It’s working. Just confirmed.

    Its throwing warnings as stated above, any suggestions how to fix this issue?

    Thanks

    Same problem on 4.3.1 :
    Warning: mysql_query(): Access denied for user ”@’localhost’ (using password: NO) in /home/forge/default/public/www/wp-content/plugins/mail-subscribe-list/sml.php on line 272

    How to fix ?
    Thanks (a lot)

    I, too, am runnig WordPress 4.3.1. and getting the following mysql_query warning messaages when users submit their name and email address using the Mail Subscribe List plugin form:

    Warning: mysql_query(): Access denied for user ”@’localhost’ (using password: NO) in /…/mail-subscribe-list/sml.php on line 272

    Warning: mysql_query(): A link to the server could not be established in ccess denied for user ”@’localhost’ (using password: NO) in /…/mail-subscribe-list/sml.php on line 272

    Warning: mysql_num_rows() expects parameter 1 to be resource to be resource, booolean givn in /…/mail-subscribe-list/sml.php on line 273

    Note: the “…” represents parent folders.

    I was able to stop the warnings from appearing by commenting out the following lines in php.sml:

    if (is_email($email)) {

    $exists = mysql_query(“SELECT * FROM “.$wpdb->prefix.”sml where sml_email like ‘”.$wpdb->escape($email).”‘ limit 1″);
    if (mysql_num_rows($exists) <1) {
    $wpdb->query(“insert into “.$wpdb->prefix.”sml (sml_name, sml_email) values (‘”.$wpdb->escape($name).”‘, ‘”.$wpdb->escape($email).”‘)”);
    }
    }

    Of course, this means that this portion of the code (which appears to check for duplicate email address entries) is no longer working.

    I’m not sure if it matters, but my website is an addon domain (it’s not the primary domain). Also, I previously had ManageWP installed. I have since removed this plugin, and reinstalled the Mail Subscrible List plugin. However, it’s possible that installing ManageWP caused some configuration changes that have not been reversed. This might not be related to the issue — just a thought.

    It’s clear that the issue is related to the above code not being able to connect to to and/or query my database. Though, I’m not sure why. Hope this helps get this problem resolved.

    Why was this marked as resolved? Looks like the problem still exists despite the developer saying everything is fine. Update?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Not working with latest WordPress version’ is closed to new replies.