Page 1 of 1

Module causing 500 in admin when rebuilding modification cache

Posted: Thu Jan 30, 2020 9:50 pm
by andywoodrow
Each time I build the modification cache I get a 500 in the admin panel with this as the issue:

Code: Select all

Parse error: syntax error, unexpected 'UPDATE' (T_STRING) in
/{.....}/public_html/vqmod/vqcache/vq2-system_storage_modification_admin_model_catalog_product.php  on line 171
where {.....} is my hosting home path.

it adds sql query:

Code: Select all

$this->db->query("UPDATE " . DB_PREFIX . "product SET allow_preorder =
'" . (int) $data['allow_preorder'] . "' WHERE product_id = '" .
(int)$product_id . "'");
Can anyone help at all?

Re: Module causing 500 in admin when rebuilding modification cache

Posted: Thu Jan 30, 2020 10:07 pm
by xxvirusxx
If is a paid module then try to contact developer.

Re: Module causing 500 in admin when rebuilding modification cache

Posted: Fri Jan 31, 2020 5:03 pm
by andywoodrow
I don't know what module it might be. We've just installed 2 recently, and checking with both developers it's not theirs that does this action. I have a copy of the ocmod.log which may have some clue, but I don't know what I'm looking for. I might very well check the GIT logs too to see what has changed recently.

Re: Module causing 500 in admin when rebuilding modification cache

Posted: Sat Feb 01, 2020 2:08 am
by xxvirusxx
Then try to disable all vqmod extensions and all ocmod extensions, refresh ocmod and see if work..

Re: Module causing 500 in admin when rebuilding modification cache

Posted: Thu Sep 03, 2020 2:23 am
by Ledfords
The module list is fetched on the basis of files inside admin > controller > extension > modules
So one way to get rid of this error is remove the new / non default controller files from this folder and the WalmartOne list will populate on the basis of previous files and it will work fine unless the core files code has been modified.