$newProfile = $modx->newObject('modUserProfile');
$newProfile->set('fullname', $newFullName);
$newProfile->set('internalKey', $newUser->get('id'));
$newProfile->set('email', $newEmail);
$newProfile->save();
$newProfile->set('firstName', $newFirstName);
$newProfile->set('lastName', $newLastName);
Notice: Use of undefined constant MODX_BASE_URL - assumed 'MODX_BASE_URL' in /Applications/MAMP/revo/core/model/modx/modx.class.php on line 991 Notice: Use of undefined constant MODX_MANAGER_URL - assumed 'MODX_MANAGER_URL' in /Applications/MAMP/revo/core/model/modx/modx.class.php on line 1005 Notice: Use of undefined constant MODX_ASSETS_URL - assumed 'MODX_ASSETS_URL' in /Applications/MAMP/revo/core/model/modx/modx.class.php on line 1009 Notice: Use of undefined constant MODX_CONNECTORS_URL - assumed 'MODX_CONNECTORS_URL' in /Applications/MAMP/revo/core/model/modx/modx.class.php on line 1013 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /Applications/MAMP/revo/core/components/extenduser/trunk/_build/build.config.php:3) in /Applications/MAMP/revo/core/model/modx/modx.class.php on line 2570 Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/revo/core/components/extenduser/trunk/_build/build.config.php:3) in /Applications/MAMP/revo/core/model/modx/modx.class.php on line 2579 Execution time: 0.0748 s [2009-09-29 23:43:42] (WARN @ /Applications/MAMP/revo/core/xpdo/om/xpdoobject.class.php : 932) PHP notice: A non well formed numeric value encountered
[2009-09-29 23:40:10] (ERROR @ /index.php) Could not load class: extenduser from mysql.extenduser.
Fatal error: Call to a member function fromArray() on a non-object in /Applications/MAMP/revo/core/components/extenduser/trunk/core/components/extenduser/snippet.extenduser.php on line 23
require_once dirname(__FILE__) . '/build.config.php';
Did you perhaps forget this line in your build.schema.php?:
require_once dirname(__FILE__) . '/build.config.php';
require_once dirname(__FILE__) . '/build.config.php';
include_once MODX_CORE_PATH . '/model/modx/modx.class.php';
$modx = new modX();
// $modx->initialize('mgr');
$modx->loadClass('transport.modPackageBuilder','',false, true);
define('MODX_BASE_PATH', dirname(dirname(dirname(dirname(dirname(__FILE__))))) . '/MODxRevolution/');define('MODX_CORE_PATH', dirname(dirname(dirname(dirname(dirname(dirname(dirname(__FILE__)))))))."/revo/core/");<?php
$base_path = $modx->getOption('core_path').'components/extenduser/trunk/core/components/extenduser/';
$o = '';
$f = $base_path.'snippet.extenduser.php';
if (file_exists($f)) {
$o = include $f;
} else {
$modx->setLogTarget('ECHO');
$modx->log(MODX_LOG_LEVEL_ERROR,'extenduser not found at: '.$f);
}
return $o;
?>
I think you hit the same problem as I did. There seem to be a bug in the tutorial, see http://modxcms.com/forums/index.php/topic,40565.0.html