Page 1 of 1

Notice: Undefined index: in_stock_status_id 2.3.0.2

Posted: Wed Jun 20, 2018 1:01 am
by nealt
Hi All,

I tried to install a modification to add a custom in stock field and now setting errors. https://www.opencart.com/index.php?rout ... r_rating=4

I have deleted the database entry for the modification, cleaned out the vqmod folder and there are no oc or vq mod files relating to that mod that I can find.

Attempting to access admin gives 500 error.

Code: Select all

Notice: Undefined index: in_stock_status_id in /home/domains/vol1/567/1603567/user/htdocs/vqmod/vqcache/vq2-system_modification_catalog_model_catalog_product.php on line 12
Line 12 of file

Code: Select all

$st_status=$this->db->query("SELECT ss.name FROM " . DB_PREFIX . "stock_status ss WHERE ss.stock_status_id ='".$query->row['in_stock_status_id']."' AND ss.language_id = '" . (int)$this->config->get('config_language_id') . "'");
Opencart Version 2.3.0.2 (i think, not 100% sure without access to admin)

Shop URL https://www.teknomodeltrucks.co.uk/

Would appreciate any help to fix.

Re: Notice: Undefined index: in_stock_status_id 2.3.0.2

Posted: Wed Jun 20, 2018 1:46 am
by rgbrewer
This is an error by the developer. The part thats incorrect is ....

$query->row['in_stock_status_id']

Your best bet is contact him and show him this thread.

Re: Notice: Undefined index: in_stock_status_id 2.3.0.2

Posted: Wed Jun 20, 2018 6:30 pm
by nealt
I have solved this issue.

There were files in system/modification/ that I deleted. I had made a backup before I did delete any files.

Using the error message I was able to find the correct file.

Code: Select all

vq2-system_modification_catalog_model_catalog_product.php

Code: Select all

system/modification/catalog/model/catalog/product.php
There was another file affecting the admin section creating a 500 internal server error. Adding the below code to index.pvp showed the affecting file.

Code: Select all

error_reporting(E_ALL);
ini_set('display_errors', 1);


Hope this helps someone with a similar issue.