I am getting the following error when I try to load the XMLRPC URL in my browser directly: Fatal error: Cannot redeclare class IXR_IntrospectionServer in /usr/www/users/zzz/mydomain.com/member/xmlrpc/ixr.inc.php on line 823 I am trying to get xmlrpc integrated with Ultracart. I am really familiar with ultracart, use it for a few ecommerce sites but this is my first attempt at a membership site. Any help would be appreciated.
So, I have been tinkering around a bit. My site is also running wordpress. I removed to code that integrates my wordpress theme and the fatal error goes away. There is 2 parts to the code. In the config.inc.php file I added: define('WP_USE_THEMES', false); require_once(dirname(__FILE__).'/../wp-config.php'); // assuming amember is installed to folder in root of wp install global $wp; if($wp){ $wp->init(); $wp->parse_request(); $wp->query_posts(); $wp->register_globals(); } Then in site.inc.php I added: <? setup_plugin_hook('get_header', 'my_custom_header'); function my_custom_header(&$header, $vars) { global $wp; ob_start(); get_header(); $header = ob_get_contents(); ob_end_clean(); $header .= '<div id="container" class="one-column">'."\n"; $header .= ' <div id="content" role="main">'."\n"; $header .= ' <div id="amember_wrap">'."\n"; $header .= ' <h1 class="entry-title">'.$vars['title'].'</h1>'."\n"; } setup_plugin_hook('get_footer', 'my_custom_footer'); function my_custom_footer(&$footer, $vars) { global $wp; $footer = ' </div><!-- amember_wrap -->'."\n"; $footer .= ' </div><!-- content -->'."\n"; $footer .= '</div><!-- container -->'."\n"; ob_start(); //get_sidebar(); $footer .= ob_get_contents(); ob_end_clean(); ob_start(); get_footer(); $footer .= ob_get_contents(); ob_end_clean(); } // end footer ?> If I remove this code there are no problems. I want the code to work, there has got to be a simple fix that I am not seeing...
Add this to the top of /amember/xmlrpc/ixr.inc.php: just after <?php line: PHP: if(class_exists('IXR_IntrospectionServer')) return; let me know if this will not help.