Quote:
Originally Posted by AWJunkies
Ok I figured it out, the function: plugin_edit_handler()
Is now a global so his code in the xml (product file becomes redundant) and causing the error. So you need to remove this code from the product xml file (product-adv_plugin_mngr.xml):
PHP Code:
<plugins>
<plugin active="1" executionorder="5">
<title>Plugin System Adjustments</title>
<hookname>admin_global</hookname>
<phpcode><![CDATA[if (preg_match('/plugin\.php$/', $_SERVER['PHP_SELF']))
{
if (!$_REQUEST['do'] OR $_REQUEST['do'] == 'modify' OR $_REQUEST['do'] == 'product')
{
exec_header_redirect('advplugins.php');
}
if ($_REQUEST['do'] == 'updateactive')
{
if (!function_exists('plugin_updateactive_handler'))
{
function plugin_updateactive_handler()
{
exec_header_redirect('advplugins.php');
}
}
ob_start('plugin_updateactive_handler');
}
if ($_REQUEST['do'] == 'edit' OR $_REQUEST['do'] == 'add')
{
if (!function_exists('plugin_edit_handler'))
{
function plugin_edit_handler($output)
{
global $vbphrase, $vbulletin;
$output = str_replace("<input type=\"reset\"", "<input type=\"submit\" class=\"button\" tabindex=\"1\" name=\"return\" value=\"$vbphrase[save] & $vbphrase[reload]\" accesskey=\"e\" />\n<input type=\"reset\"", $output);
return $output;
}
}
ob_start('plugin_edit_handler');
$vbulletin->nozip = true;
}
if ($_REQUEST['do'] == 'update' AND $_REQUEST['return'])
{
if (!function_exists('plugin_update_handler'))
{
function plugin_update_handler($output)
{
global $_REQUEST;
return str_replace('plugin.php', 'plugin.php?do=edit&pluginid=' . $_REQUEST[pluginid], $output);
}
}
$vbulletin->nozip = true;
ob_start('plugin_update_handler');
}
}]]></phpcode>
</plugin>
Or if you already have it installed you can delete the plugin:
System Adjustments admin_global Advanced Plugin Manager - Reloaded
or
/*
*/
bracket all the data within the plugin
I have checked all functionality and this to work perfect. 3.6.8 P2
|
Thanks!
I uninstalled, changed the product xml and installed again.
But I have another error after the normal product manager.
I am not sure that it is an error from this mod, but...