VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Development & Testing => Topic started by: piekielko on October 27, 2014, 16:10:06 PM

Title: I show errors in server logs
Post by: piekielko on October 27, 2014, 16:10:06 PM
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
Title: Re: I show errors in server logs
Post by: Milbo on October 27, 2014, 18:12:56 PM
You should understand why your shop does not work with this
defined ('VMPATH_THEMES') or define ('VMPATH_THEMES',VMPATH_ROOT.DS.'templates');