kostrovakira / vqmod

Automatically exported from code.google.com/p/vqmod
0 stars 0 forks source link

Pathing issue? #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install vQmod
2. Install MIGS_Payment_Gateway
3. Create a vQmod patch for migs payment gateway
4. Try to check out

What is the expected output? What do you see instead?
Migs payment form should show up after clicking ok on step 5 but instead I get 
an error about unexpected <.

The ajax request that gets step6 is getting the following error back off the 
server
<b>Notice</b>: Error: Could not load language 
payment/vq2-catalog_controller_payment_migs_gateway! in 
<b>docs/cart/vqmod/vqcache/vq2-system_library_language.php</b> on line <b>27</b>

What version of the product are you using? On what operating system?
vqmod-2.1.2-opencart
opencart-1.5.1.3
migs_gateway-150.1

Please provide any additional information below.
I've attached the xml file for the patch I'm trying to apply

I suspect it's because of the path "payment", the actual migs file is:
catalog/controller/payment/migs_gateway.php

The actual vqcache file is:
vqmod/vqcache/vq2-catalog_controller_payment_migs_gateway.php

It looks like it's attempting to include
vqmod/vqcache/payment/vq2-catalog_controller_payment_migs_gateway.php

Original issue reported on code.google.com by fre...@gmail.com on 11 Oct 2011 at 4:35

Attachments:

GoogleCodeExporter commented 9 years ago
Further investigation shows that the error is actually because 
vq2-system_library_language.php is trying to load a language for 
payment/vq2-catalog_controller_payment_migs_gateway.

Perhaps the vqmod patch for system/library/language is chewing up the file too 
soon?

Original comment by fre...@gmail.com on 11 Oct 2011 at 5:02

GoogleCodeExporter commented 9 years ago
I've actually found the source of this error, the migs gateway payment 
controller sets $self->name to basename(__FILE__);

Patch suggestion: Ability to map back from the cached filename to the original 
filename? so I can add something like

<operation>
    <search position="replace"><![CDATA[__FILE__]]></search>
    <add>$vqmod->original_file_name(__FILE__)</add>
<operation>

Original comment by fre...@gmail.com on 11 Oct 2011 at 5:25

GoogleCodeExporter commented 9 years ago
This is not a vQmod issue, and shouldn't be considered one. There are a number 
of better ways to do this, as pointed out in the Official vQmod 2.0 thread on 
the OpenCart forums

Original comment by DJG6...@gmail.com on 20 Oct 2011 at 6:52