Jump to content

Error in SMARTYFRONT.CONFIG.INC.PHP


Recommended Posts

Hello, 

I am having some trouble understanding this error message,

can anyone please tell me how to fix this error.

Thank You.

 

Error Message

NOTICE: UNDEFINED INDEX: S IN /HOME/SITES/DOMAIN/PUBLIC_HTML/CONFIG/SMARTYFRONT.CONFIG.INC.PHP ON LINE 44

NOTICE: UNDEFINED INDEX: S IN /HOME/SITES/domain/PUBLIC_HTML/CONFIG/SMARTYFRONT.CONFIG.INC.PHP ON LINE 54

 

File: 
 
line44 - $string = str_replace('\'', '\\\'', $params['s']);
$filename = ((!isset($smarty->compiler_object) || !is_object($smarty->compiler_object->template)) ? $smarty->template_resource : $smarty->compiler_object->template->getTemplateFilepath());
 
$basename = basename($filename, '.tpl');
$key = $basename.'_'.md5($string);
 
if (isset($smarty->source) && (strpos($smarty->source->filepath, DIRECTORY_SEPARATOR.'override'.DIRECTORY_SEPARATOR) !== false))
$key = 'override_'.$key;
 
if ($params['mod'])
lin54 - return Translate::getModuleTranslation($params['mod'], $params['s'], $basename, $params['sprintf'], $params['js']);
else if ($params['pdf'])
return Translate::getPdfTranslation($params['s']);
 
Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...