Hello,
I am running OC version 2.2.0
I got the following error note on page of Checkout setp 6: Confirm Order,
Notice: Undefined variable: order_id_user in /mysite.com/vqmod/vqcache/vq2-system_storage_modification_catalog_model_checkout_order.php on line 29
Notice: Undefined variable: order_id_user in /mysite.com/vqmod/vqcache/vq2-system_storage_modification_catalog_model_checkout_order.php on line 34
Can someone please help how to fix this problem?
Thanks in advance!
I am running OC version 2.2.0
I got the following error note on page of Checkout setp 6: Confirm Order,
Notice: Undefined variable: order_id_user in /mysite.com/vqmod/vqcache/vq2-system_storage_modification_catalog_model_checkout_order.php on line 29
Notice: Undefined variable: order_id_user in /mysite.com/vqmod/vqcache/vq2-system_storage_modification_catalog_model_checkout_order.php on line 34
Can someone please help how to fix this problem?
Thanks in advance!
Last edited by harap on Wed Jul 15, 2020 8:31 am, edited 1 time in total.
Find the vqmod that is adjusting the catalog/model/checkout/order.php file and have the developer fix it. It might be as simple as a isset check but it also should be looked into to make sure that is what is needed.
Mike
Mike
cue4cheap not cheap quality
Correct, by either looking at the code of the vQmod or disabling them one by one until the error goes away.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Legendary Member
The related error with vqmod code file line 29 and 34 are same as below:
$this->session->data['order_id'] = $order_id_user;
Can you please advise what is wrong with this?
Note: I turned off the error-log but it still displays. See the error screenshot: https://ibb.co/17YyssY
Thanks in advance!
$this->session->data['order_id'] = $order_id_user;
Can you please advise what is wrong with this?
Note: I turned off the error-log but it still displays. See the error screenshot: https://ibb.co/17YyssY
Thanks in advance!
I could not find $order_id_user, but $order_id in the catalog/model/checkout/order.php file.
Should I edit it to "$this->session->data['order_id'] = $order_id;" from "$this->session->data['order_id'] = $order_id_user;" in vqmod ?
Should I edit it to "$this->session->data['order_id'] = $order_id;" from "$this->session->data['order_id'] = $order_id_user;" in vqmod ?
Which is the vqmod that is causing the modification to your checkout? (that is a rhetorical question)
If you are not sure you can uninstall (NOT DELETE) one by one to find out, or look at the xml files of your extensions and see which xml file makes a modification to catalog/model/checkout/order.php
Contact the developer of the extension that causes the error and ask them to fix.
If you are not sure you can uninstall (NOT DELETE) one by one to find out, or look at the xml files of your extensions and see which xml file makes a modification to catalog/model/checkout/order.php
Contact the developer of the extension that causes the error and ask them to fix.
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
How can these errors not to displayed on that page? https://ibb.co/17YyssY
I checked all NO from the Error Handling / Settings, but still display.
I checked all NO from the Error Handling / Settings, but still display.
When you uninstalled did you refresh your cache each time?
You have a modification to the file - catalog/model/checkout/order.php
You need to find the vqmod xml file that does that - there is no way around it
The clues are that it is a modification to users orders and checkout - so what do you have that effects users, related to orders and requires some information from the checkout procedure .. because whilst EVEN IF you can remove the error .. if you have the modification then you are likely to cause bigger issues by ignoring this - IT IS YOUR CHECKOUT !
Go check again .. check each xml file manually for the line <file name="catalog/model/checkout/order.php"> .. or post viewforum.php?f=88 with this problem and people will contact you with a price to find it (and fix it)
You have a modification to the file - catalog/model/checkout/order.php
You need to find the vqmod xml file that does that - there is no way around it
The clues are that it is a modification to users orders and checkout - so what do you have that effects users, related to orders and requires some information from the checkout procedure .. because whilst EVEN IF you can remove the error .. if you have the modification then you are likely to cause bigger issues by ignoring this - IT IS YOUR CHECKOUT !
Go check again .. check each xml file manually for the line <file name="catalog/model/checkout/order.php"> .. or post viewforum.php?f=88 with this problem and people will contact you with a price to find it (and fix it)
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Yes, I found XML files containing:
<file path="catalog/model/checkout/order.php">
I uninstalled 3 modules that containing above code, refreshed page, deleted caches and restarted my computer, the problem persists.
<file path="catalog/model/checkout/order.php">
I uninstalled 3 modules that containing above code, refreshed page, deleted caches and restarted my computer, the problem persists.
Who is online
Users browsing this forum: No registered users and 8 guests