Recntly my hosting provider made changes to the VPS envoirment that I am hosted in, and this error began to show. The update was to Mysql 5.5 and Joomla! 3.4. Please take a look below.
- Code: Select all
[Thu Dec 17 20:01:00.432566 2015] [fcgid:warn] [pid 22464] [client 172.16.0.108:59018] mod_fcgid: stderr: PHP Notice: Use of undefined constant DS - assumed 'DS' in /home/upncomershiphop/public_html/plugins/system/plg_gkextmenu/plg_gkextmenu.php on line 27
- Code: Select all
<?php
/**
* Menu parameters plugin
* @Copyright (C) 2009-2011 Gavick.com
* @ All rights reserved
* @ Joomla! is Free Software
* @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
* @version $Revision: GK4 1.0 $
**/
defined( '_JEXEC' ) or die();
jimport( 'joomla.plugin.plugin' );
jimport('joomla.application.module.helper');
jimport( 'joomla.event.plugin' );
jimport( 'joomla.html.parameter' );
class plgSystemGKExtMenu extends JPlugin {
var $_params;
var $_pluginPath;
function __construct( &$subject ) {
parent::__construct( $subject );
$this->_plugin = JPluginHelper::getPlugin( 'system', 'gkextmenu' );
$this->_params = new JRegistry( $this->_plugin->params );
$this->_pluginPath = JPATH_PLUGINS."/system/gkextmenu/";
}
//Add Gavick menu parameter
function onContentPrepareForm($form, $data) {
if ($form->getName()=='com_menus.item') {
JForm::addFormPath($this->_pluginPath);
$form->loadFile('parameters', false);
}
}
}
?>