[[+error.message]]
[2015-07-05 14:18:04] (ERROR @ /index.php) Could not get table class for class: modAccess [2015-07-05 14:18:04] (ERROR @ /index.php) Could not get table name for class: modAccess [2015-07-05 14:18:04] (ERROR @ /index.php) Error 42000 executing statement: Array ( [0] => 42000 [1] => 1064 [2] => You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AS `modAccess` WHERE `modAccess`.`principal` = 55' at line 1 ) [2015-07-05 14:18:05] (ERROR @ /index.php) An error occurred while trying to send the email:
$message = 'Hi, a new user signed up: '.$hook->getValue('username') . ' with email '.$hook->getValue('email').'.'; $modx->getService('mail', 'mail.modPHPMailer'); $modx->mail->set(modMail::MAIL_BODY,$message); $modx->mail->set(modMail::MAIL_FROM,'[email protected]'); $modx->mail->set(modMail::MAIL_FROM_NAME,'My Site'); $modx->mail->set(modMail::MAIL_SENDER,'My Site'); $modx->mail->set(modMail::MAIL_SUBJECT,'New User Signed Up'); $modx->mail->address('to','[email protected]'); $modx->mail->setHTML(true); if (!$modx->mail->send()) { $modx->log(modX::LOG_LEVEL_ERROR,'An error occurred while trying to send the email: '.$err); } $modx->mail->reset(); /* tell our snippet we're good and can continue */ return true;
<?php $headers .= "From: COMPANY<[email protected]>\n"; $headers .= "BCC: <[email protected]>\n"; $headers .= "Content-Type: text/html; charset=iso-8859-1\n"; // $message = 'Hallo! <p>Ein neuer Benutzer hat sich angemeldet.</p> Benutzername: <strong>'.$hook->getValue('username') . '</strong><br /> Email-Adresse: <strong>'.$hook->getValue('email').'</strong></p> Mit freundlichen Grüßen <p>'; $to = "[email protected]"; $subject = "Neue Anmeldung"; if (mail($to, $subject, $message, $headers)) { echo("<p>Message successfully sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); }
[[+reg.error.message]] [[+reg.error]] [[+reg.errors]] [[!+reg.error.message]] [[!+reg.error]] [[!+reg.errors]]
[[!+reg.error.fullname]] [[!+reg.error.username]] [[!+reg.error.password]] [[!+reg.error.password_confirm]]
$message = 'Hi, a new user signed up: '.$hook->getValue('username') . ' with email '.$hook->getValue('email').'.'; $modx->getService('mail', 'mail.modPHPMailer'); $modx->mail->set(modMail::MAIL_BODY,$message); $modx->mail->set(modMail::MAIL_FROM,'[email protected]'); $modx->mail->set(modMail::MAIL_FROM_NAME,'My Site'); $modx->mail->set(modMail::MAIL_SENDER,'My Site'); $modx->mail->set(modMail::MAIL_SUBJECT,'New User Signed Up'); $modx->mail->address('to','[email protected]'); $modx->mail->setHTML(true); if (!$modx->mail->send()) { $modx->log(modX::LOG_LEVEL_ERROR,'An error occurred while trying to send the email: '.$err); } $modx->mail->reset(); /* tell our snippet we're good and can continue */ return true;
I can answer myself: the activationResource was wrongly call. I had [[ConfirmRegister]] when it should be [[!ConfirmRegister]].
[2013-07-31 00:47:20] (ERROR @ /links/security/user.php) Could not get table class for class: modAccess [2013-07-31 00:47:20] (ERROR @ /links/security/user.php) Could not get table name for class: modAccess [2013-07-31 00:47:20] (ERROR @ /links/security/user.php) Error 42000 executing statement: Array ( [0] => 42000 [1] => 1064 [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS `modAccess` WHERE `modAccess`.`principal` = 5' at line 1 ) [2013-07-31 00:56:04] (ERROR @ /links/security/user.php) Could not get table class for class: modAccess [2013-07-31 00:56:04] (ERROR @ /links/security/user.php) Could not get table name for class: modAccess [2013-07-31 00:56:04] (ERROR @ /links/security/user.php) Error 42000 executing statement: Array ( [0] => 42000 [1] => 1064 [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS `modAccess` WHERE `modAccess`.`principal` = 7' at line 1 ) [2013-07-31 00:57:32] (ERROR @ /links/security/user.php) Could not get table class for class: modAccess [2013-07-31 00:57:32] (ERROR @ /links/security/user.php) Could not get table name for class: modAccess [2013-07-31 00:57:32] (ERROR @ /links/security/user.php) Error 42000 executing statement: Array ( [0] => 42000 [1] => 1064 [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS `modAccess` WHERE `modAccess`.`principal` = 6' at line 1 ) [2013-07-31 00:57:42] (ERROR @ /links/security/user.php) Could not get table class for class: modAccess [2013-07-31 00:57:42] (ERROR @ /links/security/user.php) Could not get table name for class: modAccess [2013-07-31 00:57:42] (ERROR @ /links/security/user.php) Error 42000 executing statement: Array ( [0] => 42000 [1] => 1064 [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS `modAccess` WHERE `modAccess`.`principal` = 4' at line 1 ) [2013-07-31 01:06:43] (ERROR @ /links/security/user.php) Could not get table class for class: modAccess [2013-07-31 01:06:43] (ERROR @ /links/security/user.php) Could not get table name for class: modAccess [2013-07-31 01:06:43] (ERROR @ /links/security/user.php) Error 42000 executing statement: Array ( [0] => 42000 [1] => 1064 [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS `modAccess` WHERE `modAccess`.`principal` = 8' at line 1 ) [2013-07-31 01:06:51] (ERROR @ /links/security/user.php) Could not get table class for class: modAccess [2013-07-31 01:06:51] (ERROR @ /links/security/user.php) Could not get table name for class: modAccess [2013-07-31 01:06:51] (ERROR @ /links/security/user.php) Error 42000 executing statement: Array ( [0] => 42000 [1] => 1064 [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS `modAccess` WHERE `modAccess`.`principal` = 3' at line 1 )