Fatal Error Undefined Class Constant

Discussion in 'Troubleshooting' started by brap, Dec 16, 2015.

Thread Status:
Not open for further replies.
  1. brap

    brap aMember Pro Customer

    Joined:
    May 5, 2014
    Messages:
    5
    I have had an aMember Wordpress up and running without issue for a year and a half. Suddenly today my site is down, and I get a:

    Fatal error: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY' in /home1/.../member/library/DbSimple/Generic.php on line 1487

    error when I access anything, from /member down.

    I have no idea what to do in order to get my site back up and working. Can anyone offer guidance?

    Thank you very much.
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    I guess your hosting changed PHP configuration on your server. I suggest to contact hosting support and ask to enable pdo_mysql extension for php. It should resolve this issue.
    brap likes this.
  3. brap

    brap aMember Pro Customer

    Joined:
    May 5, 2014
    Messages:
    5
    That was it!!! Thank you very very much. The hosting raised the php version from 5.4 to 5.6. When I told him the whole story he put mine back to 5.4. I asked him, you can't leave it at 5.6 and enable the extension like the man at aMember suggested? He answered that php 5.6 currently has bugs. He recommends staying at 5.4 till things are worked out.

    Anyway, thanks again!
  4. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    You are welcome!
Thread Status:
Not open for further replies.

Share This Page