News:

Looking for documentation? Take a look on our wiki

Main Menu

I show errors in server logs

Started by piekielko, October 27, 2014, 16:10:06 PM

Previous topic - Next topic

piekielko

I have errors in server logs

Quote[warn] mod_fcgid: stderr: PHP Notice:  Use of undefined constant VMPATH_THEMES - assumed 'VMPATH_THEMES' in /root/administrator/components/com_virtuemart/helpers/vmjsapi.php on line 182, referer: mydomain.com/administrator/index.php?option=com_virtuemart&view=config

before I removed this line, because my store did not work:
In /administrator/components/com_virtuemart/helpers/config.php
// defined ('VMPATH_THEMES') or define ('VMPATH_THEMES',VMPATH_ROOT.DS.'templates');

If i have normal VM - i have error in my template:
Quote[Mon Oct 27 16:43:57 2014] [warn] mod_fcgid: stderr: PHP Notice:  Undefined property: stdClass::$id in /root/templates/tribune2/XTC/XTC_library.php on line 150


function xtcLoadParams($style=0) {
// Load raw params*.ini file and returns param object (also set on $GLOBALS)
// public parameters on URL or cookie will override template parameters
$xtc =& $GLOBALS['xtc'];

if (empty($style)) {
$app = JFactory::getApplication();
$template = $app->getTemplate(true);
$style = $template->id; //<--------- this is 150 line
}

// Get cookie variables array
$cookieName=$xtc->template.'Template';
$cookie=array();


Joomla 3.3.6
Virtuemart 2.9.9.2
PHP 5.4

Milbo

You should understand why your shop does not work with this
defined ('VMPATH_THEMES') or define ('VMPATH_THEMES',VMPATH_ROOT.DS.'templates');
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/