Coppermine ecard database error

Discussion in 'Integration' started by swissbliss, Dec 28, 2006.

  1. swissbliss

    swissbliss New Member

    Joined:
    Jul 17, 2006
    Messages:
    3
    After installing the Amember plugin for Coppermine, I got an error when trying to send ecards from Coppermine. Ecards worked fine before installing the plugin.

    The error I got was:

    This message could be the result of other issues (check using Coppermine debug) but in my case, there were two lines needed adding to:

    /yoursite/your_coppermine_dir/bridge/amember.inc.php

    I added two lines to the end of this:

    Code:
               // Table field names
                    $this->field = array(
                            'username' => 'login', // name of 'username' field in users table
                            'user_id' => 'member_id', // name of 'id' field in users table
                            'password' => 'pass', // name of 'password' field in users table
                            'email' => 'email', // name of 'email' field in users table
                            'regdate' => 'added' // name of 'registered' field in users table
                    );

    to look like this:

    Code:
               // Table field names
                    $this->field = array(
                            'username' => 'login', // name of 'username' field in users table
                            'user_id' => 'member_id', // name of 'id' field in users table
                            'password' => 'pass', // name of 'password' field in users table
                            'email' => 'email', // name of 'email' field in users table
                            'regdate' => 'added', // name of 'registered' field in users table
    			'location' => "''", // name of 'location' field in users table
    			'website' => "''" // name of 'website' field in users table
                    );
    Don't forget to update the syntax; as the line 'regdate' => 'added' is no longer the last line in the array, you will need to add a comma, look at the example above.

    Hope this helps someone!
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Thank you for your message, we will add this to the plugin!

Share This Page