Per correggere l’errore “CHANGE AVATAR undefined ” che si presenta nel cms Oxwall nel momento in cui ci si vuole registrare ed inserire un avatar nel form di registrazione bisogna seguire questi step:
- andate nella cartella /ow_system_plugins/base/classes/event_handler.php
linea 822
sostituisci questo:
public function onAddMembersOnlyException( BASE_CLASS_EventCollector $event )
{
$event->add(array(‘controller’ => ‘BASE_CTRL_Join’, ‘action’ => ‘index’));
$event->add(array(‘controller’ => ‘BASE_CTRL_Join’, ‘action’ => ‘joinFormSubmit’));
$event->add(array(‘controller’ => ‘BASE_CTRL_Join’, ‘action’ => ‘ajaxResponder’));
$event->add(array(‘controller’ => ‘BASE_CTRL_Captcha’, ‘action’ => ‘index’));
$event->add(array(‘controller’ => ‘BASE_CTRL_Captcha’, ‘action’ => ‘ajaxResponder’));
$event->add(array(‘controller’ => ‘BASE_CTRL_User’, ‘action’ => ‘forgotPassword’));
$event->add(array(‘controller’ => ‘BASE_CTRL_User’, ‘action’ => ‘resetPasswordRequest’));
$event->add(array(‘controller’ => ‘BASE_CTRL_User’, ‘action’ => ‘resetPassword’));
$event->add(array(‘controller’ => ‘BASE_CTRL_User’, ‘action’ => ‘ajaxSignIn’));
$event->add(array(‘controller’ => ‘BASE_CTRL_ApiServer’, ‘action’ => ‘request’));
$event->add(array(‘controller’ => ‘BASE_CTRL_Unsubscribe’, ‘action’ => ‘index’));
$event->add(array(‘controller’ => ‘BASE_CTRL_BaseDocument’, ‘action’ => ‘redirectToMobile’));
- con questo:
public function onAddMembersOnlyException( BASE_CLASS_EventCollector $event )
{
$event->add(array(‘controller’ => ‘BASE_CTRL_Join’, ‘action’ => ‘index’));
$event->add(array(‘controller’ => ‘BASE_CTRL_Join’, ‘action’ => ‘joinFormSubmit’));
$event->add(array(‘controller’ => ‘BASE_CTRL_Join’, ‘action’ => ‘ajaxResponder’));
$event->add(array(‘controller’ => ‘BASE_CTRL_Captcha’, ‘action’ => ‘index’));
$event->add(array(‘controller’ => ‘BASE_CTRL_Captcha’, ‘action’ => ‘ajaxResponder’));
$event->add(array(‘controller’ => ‘BASE_CTRL_User’, ‘action’ => ‘forgotPassword’));
$event->add(array(‘controller’ => ‘BASE_CTRL_User’, ‘action’ => ‘resetPasswordRequest’));
$event->add(array(‘controller’ => ‘BASE_CTRL_User’, ‘action’ => ‘resetPassword’));
$event->add(array(‘controller’ => ‘BASE_CTRL_User’, ‘action’ => ‘ajaxSignIn’));
$event->add(array(‘controller’ => ‘BASE_CTRL_ApiServer’, ‘action’ => ‘request’));
$event->add(array(‘controller’ => ‘BASE_CTRL_Unsubscribe’, ‘action’ => ‘index’));
$event->add(array(‘controller’ => ‘BASE_CTRL_BaseDocument’, ‘action’ => ‘redirectToMobile’));
$event->add(array(‘controller’ => ‘BASE_CTRL_AjaxLoader’, ‘action’ => ‘init’));
$event->add(array(‘controller’ => ‘BASE_CTRL_AjaxLoader’, ‘action’ => ‘component’));
$event->add(array(‘controller’ => ‘BASE_CTRL_Avatar’, ‘action’ => ‘ajaxResponder’));