aMember 3.2.3 and Wordpress 4.0

Discussion in 'Integration' started by microvb, Oct 1, 2014.

  1. microvb

    microvb Member

    Joined:
    Nov 23, 2007
    Messages:
    62
    As alexander stated

    What should I change in aMember 3.2.3 in order to allow it to continue to work using existing integration methods. Any time I include WordPress files (wp-config.php or wp-blog-header.php), it kills aMemeber.

    Currently, I have only begin the integration on a fresh install by adding my code (which has worked perfect until now) to the /members/config.inc.php file as follows :

    PHP:
    /* ************************************************** */
    /* Added by MicroVB INC - Wordpress Integration Patch */
    /* ************************************************** */
    define('WP_USE_THEMES'false);
    require(
    "$config[root_dir]/../wp-blog-header.php");
    /* ************************************************** */
    The results vary depending on placement of this code when testing http://www.mysite.com/members/

    If placed anywhere inside the braces {}, I get an error: Fatal error: Call to undefined function new_smarty() in /home/weighlos/public_html/members/admin/login.inc.php on line 164

    If placed at the end of the file after the last closing brace } , I get the aMember admin login.


    Any assistance in this matter would be appreciated. Thanks.

Share This Page