MySQL Error

Discussion in 'Troubleshooting' started by yoeoo, Apr 16, 2008.

  1. yoeoo

    yoeoo New Member

    Joined:
    Apr 12, 2008
    Messages:
    2
    Before I submit a ticket, I wanted to see if anyone has a resolution or knows why this error message is happening. This shows up in my aMember CP.

    WARNING: mysql_query() [function.mysql-query]: Access denied for user 'nobody'@'localhost' (using password: NO) in line 53 of file SmartyNoWrite.class.php(216) : eval()'d code
    WARNING: mysql_query() [function.mysql-query]: A link to the server could not be established in line 53 of file SmartyNoWrite.class.php(216) : eval()'d code
    WARNING: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in line 53 of file SmartyNoWrite.class.php(216) : eval()'d code

    Any idea for a fix?
  2. aelias

    aelias New Member

    Joined:
    Feb 11, 2008
    Messages:
    27
    Did you create a mysql database in your hosting CP and assigned it a user and password?
  3. jaddle

    jaddle New Member

    Joined:
    Apr 24, 2008
    Messages:
    2
    Sorry to resurrect a (somewhat) old thread, but I'm seeing the same error. I have two databases - one for amember, and one for wordpress. Both are configured with their usernames and passwords. The error seems to happen every time the admin page is reloaded.

    I'm not sure if it's actually causing this issue, problems, but the wordpress plugin isn't currently working on my site. That might just be because wordpress 2.5 isn't supported yet, but maybe it's related to this error message.
  4. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    I've seen this error on sites that don't use localhost.

    But even with this error, you should be getting users copied over to wordpress when you rebuild.

    2.5 should be working.
    1) get the latest plugin from amember
    2) set the secret key in wp-config and the amember plugin form

    If everything else is working- amember gave me this file to fix the error:
    place it in your /amember/templates/admin/ folder


    David

Share This Page