1. carusopianos
  2. RO CSVI
  3. Wednesday, 25 January 2017
  4.  Subscribe via email
Hello,

I have a VM Google Merchant export template that works correctly when triggered manually, but fails when triggered from a cron job with the following error message:
X-Powered-By: PHP/5.3.25
Set-Cookie: b27ec749881a5b770d86e797db55bc4e=f3ec000bd2a357462cdd5e4c05a1cfd4; path=/; secure; HttpOnly

Content-type: text/html

Use --help to see the help information
Processing started...
Template bb_acoustic
Install VirtueMart first<br />
<b>Fatal error</b>: Class 'vmPlugin' not found in <b>/home/pianov2/public_html/administrator/components/com_csvi/addon/com_virtuemart/helper/com_virtuemart_vmpsplugin.php</b> on line <b>26</b><br />

Using Joomla 3.6.5, CSVI Pro 7.0.2 w/ VM Plugin 7.0.2

Template file: csvi_templates_20170125.xml
Debog log: com_csvi.log.31.zip
Accepted Answer Pending Moderation
Hello,
The error looks like there is a missing file in VirtueMart component. Do you see the file at location administrator/components/com_virtuemart/plugins/vmplugin.php?
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Thanks for your input. I solved the problem by editing 'administrator/components/com_virtuemart/plugins/vmplugin.php', lines 21-22, which were calling for the incorrect path to 'administrator/components/com_virtuemart/helpers/config.php'.

I changed:

if(file_exists(VMPATH_ADMIN.DS.'com_virtuemart'.DS.'helpers'.DS.'config.php')){
require(VMPATH_ADMIN.DS.'com_virtuemart'.DS.'helpers'.DS.'config.php');

...to:

if(file_exists( JPATH_ADMINISTRATOR . '/components/com_virtuemart/helpers/config.php')){
require( JPATH_ADMINISTRATOR . '/components/com_virtuemart/helpers/config.php');
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Hello,
Just to know on this, Does the variable VMPATH_ADMIN gets path like 'administrator/components/com_virtuemart/' and so the path becomes like administrator/components/com_virtuemart/com_virtuemart/helpers/ when calling the config.php file?
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
Yes, that's right. I think CSVI correctly defines VMPATH_ADMIN as 'administrator/components/com_virtuemart/'. The rest of 'administrator/components/com_virtuemart/plugins/vmplugin.php' expects this path. Lines 21-22 just call for an extra 'com_virtuemart' directory in the path. It only showed up on a cron job since class 'VmConfig' is probably already defined when logged in to administrator.
  1. more than a month ago
  2. RO CSVI
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!