Page 1 of 1

Conflict OPC and CSVI Google Merchant Export (cron jobs)

PostPosted: Thu Sep 28, 2023 3:03 pm
by info@.....com
Hi Stan,

i got a problem using OPC and CSVI Google Merchant Export. When i run the export via cron jobs i get the following error report:

Code: Select all
Symfony\Component\ErrorHandler\Error\FatalError {#1089
  #message: "Compile Error: Cannot declare class vmPlugin, because the name is already in use"
  #code: 0
  #file: "./www/xxxx/administrator/components/com_virtuemart/plugins/vmplugin.php"
  #line: 24
  -error: array:4 [
    "type" => 64
    "message" => "Cannot declare class vmPlugin, because the name is already in use"
    "file" => "/home/babyonli/www/xxxx/administrator/components/com_virtuemart/plugins/vmplugin.php"
    "line" => 24
  ]
}


When i deactivate OPC it runs, but this is absolutly not an option for me :-).

In an other post i read this:
hello, opc backend loads it's vmplugin override to provide some features required by opc plugins at backend, but i can blacklist this override per csvi, let me know how do you run it (url / cron / cron cli / etc..). if csvi triggers frontend to get the shipping it will be a bit more complex.

i'll let you know by email in this subject.

best regards, stan


Could this be a solution for my problem?

Used Version:
Joomla: 4.3.2
VM: 4.0.22
OPC: 2.0.435.220523

Many thank's in advance

Greetings
Björn

Re: Conflict OPC and CSVI Google Merchant Export (cron jobs)

PostPosted: Wed Oct 18, 2023 12:59 pm
by admin
hello bjorn, i've sent you an email with an update which supresses opc system plugin for csvi (when the URL includes com_csvi - SEFed urls might not work correctly) and disables opc system plugin in CLI context as well.
let me know if this works good for you.
best regards, stan

Re: Conflict OPC and CSVI Google Merchant Export (cron jobs)

PostPosted: Fri Oct 20, 2023 5:14 pm
by info@.....com
Hi Stan,

thank's a lot! As already written per E-Mail, with the new version installed the cron job with CSVI runs.

Have a nice Weekend!

Greetings
Björn

Re: Conflict OPC and CSVI Google Merchant Export (cron jobs)

PostPosted: Tue Oct 24, 2023 12:24 pm
by admin
Hello, i released this last week as official version, i forgot to mention csvi in change log.

best regards, stan