I tried to figure out the "Undefined variable" errors as
my previous post.
Your installer’s index.php contains orphan variables, like $path and $modx, while it doesn’t include the path.
So I made a dirty work around in the install/index.php:
From origin
<?php
//include default language file
include_once($path . "../lang/english.inc.php");
//include other language file if set.
$form_language = isset($language)?$language:$modx->config['manager_language'];
if($form_language!="english" && $form_language!='') {
if(file_exists($path ."../lang/".$form_language.".inc.php"))
include_once $path ."../lang/".$form_language.".inc.php";
else
if( $isDebug ) $debugText .= "<strong>Language file '$form_language.inc.php' not found!</strong><br />"; //always in english!
}
?>
with
<?php
$docroot= $_SERVER['DOCUMENT_ROOT']."/modx-root/";
$path = $docroot."assets/modules/temailer";
include_once($docroot . "manager/includes/config.inc.php"); // to get $modx
//include default language file
include_once($path . "/lang/english.inc.php");
//include other language file if set.
$form_language = isset($language)?$language:$modx->config['manager_language'];
if($form_language!="english" && $form_language!='') {
if(file_exists($path ."/lang/".$form_language.".inc.php"))
include_once $path ."/lang/".$form_language.".inc.php";
else
if( $isDebug ) $debugText .= "<strong>Language file '$form_language.inc.php' not found!</strong><br />"; //always in english!
}
?>
Anyway, you seem forget to add several &_lang of these arrays into english.inc.php:
<?php
$_lang['optDbTable']='optDbTable';
$_lang['optEmailTpl']='optEmailTpl';
$_lang['optSubscrSnip']='optSubscrSnip';
$_lang['optUnsubscrSnip']='optUnsubscrSnip';
$_lang['optDefaultFromAddr']='optDefaultFromAddr';
$_lang['optDefaultFromName'] = 'optDefaultFromName';
$_lang['optNewsletterContainerId'] = 'optNewsletterContainerId';
?>
What is that all about?