/* Debug only */
if (!defined('_PS_MODE_DEV_')) {
define('_PS_MODE_DEV_', false);
}
/* Debug only */
if (!defined('_PS_MODE_DEV_')) {
define('_PS_MODE_DEV_', true);
}
@marsiux
There is 2 way to fix your problem:
1. The nice way:
Open the file defines.inc.php with Notebook++
You will find it here:/yoursite/config/defines.inc.php
Open it and you will see that the file start with
Code:/* Debug only */ if (!defined('_PS_MODE_DEV_')) { define('_PS_MODE_DEV_', false); }
Change the "false" with "true" (on the 3rd line)
Like this
Code:/* Debug only */ if (!defined('_PS_MODE_DEV_')) { define('_PS_MODE_DEV_', true); }
Save it and reload your page.
Now your browser with show what cause a error 500, so you can indentify the problem and fix it
2. The hard way:
Hit violently and repeatedly your computer with a hammer while insulting it
public function registerPlugin(
Smarty_Internal_TemplateBase $obj,
$type,
$name,
$callback,
$cacheable = true,
$cache_attr = null
) {
$smarty = $obj->_getSmartyObj();
if (isset($smarty->registered_plugins[ $type ][ $name ]))
{
/** throw new SmartyException*/("Plugin tag '{$name}' already registered");
}
elseif (!is_callable($callback)) {
/** throw new SmartyException */ ("Plugin '{$name}' not callable");
} else {
$smarty->registered_plugins[ $type ][ $name ] = array($callback, (bool)$cacheable, (array)$cache_attr);
}
return $obj;
}
}
/**
public function registerPlugin(
Smarty_Internal_TemplateBase $obj,
$type,
$name,
$callback,
$cacheable = true,
$cache_attr = null
) * Registers plugin to be used in templates *{
$smarty = $obj->_getSmartyObj();
if (isset($smarty->registered_plugins[ $type ][ $name ])) {
throw new SmartyException("Plugin tag '{$name}' already registered");
} elseif (!is_callable($callback)) {
throw new SmartyException("Plugin '{$name}' not callable");
} else {
$smarty->registered_plugins[ $type ][ $name ] = array($callback, (bool)$cacheable, (array)$cache_attr);
}
return $obj;
}*/
}
Great. Thank you!If you need try another "better search" module, Advanced Search is easy to use, and the version is more recent
Demo : https://addons.prestashop.com/en/sea...-search-4.html
Advanced Search v4.12.4 is available here:
https://www.nulledfrm.com/threads/advanced-search-4-module.141/#post-2041