Page 1 of 1

Options sometimes disappear when editing a product

Posted: Fri Nov 11, 2011 8:40 am
by Creativerty
Hi I have noticed on 2 of my shops running 1.5.1 sometimes when you edit products, options disappear or dont load properly. If you refresh the page they show again.

Any ideas?

Has this been fixed in the latest version?

Re: Options sometimes disappear when editing a product

Posted: Fri Nov 11, 2011 9:34 am
by Qphoria
This is related to older versions of vQmod. Get version 2.1.5 and this will go away:
http://forum.opencart.com/viewtopic.php ... ad#p218172

If you are still seeing it after upgrading to 2.1.5 vqmod, then the pseudo-cache in vQmod 2.1.5 may not be long enough. You can use the vQmod "UseCache" method and that should fix it.

if you are using useCache with vQmod or not using vQmod at all and still seeing this, then you may be reaching your server's max post size or max execution timeout, in which case you must have like 50 options and you are just posting too many fields.

Re: Options sometimes disappear when editing a product

Posted: Thu Nov 17, 2011 8:49 pm
by Creativerty
Great that seems to have done it!

Thanks ;D

Re: Options sometimes disappear when editing a product

Posted: Fri Nov 18, 2011 1:27 am
by Qphoria
I am actually seeing this issue now where vQmod is NOT installed, but there are like 60+ options. I think we need to change the way this form works to make each option save to the database separately and only show the text row as this is only going to get worse as more fields are added

Re: Options sometimes disappear when editing a product

Posted: Fri Nov 18, 2011 2:40 am
by Xsecrets
Qphoria wrote:I am actually seeing this issue now where vQmod is NOT installed, but there are like 60+ options. I think we need to change the way this form works to make each option save to the database separately and only show the text row as this is only going to get worse as more fields are added
I like the on the fly updating idea, but really all you would need to do to more or less eliminate this issue is to only pull the values list once for each option and reuse it instead of pulling it every single time an option value is loaded, especially when you are talking about the initial load.

Re: Options sometimes disappear when editing a product

Posted: Fri Nov 18, 2011 4:14 am
by Qphoria
Xsecrets wrote:
Qphoria wrote:I am actually seeing this issue now where vQmod is NOT installed, but there are like 60+ options. I think we need to change the way this form works to make each option save to the database separately and only show the text row as this is only going to get worse as more fields are added
I like the on the fly updating idea, but really all you would need to do to more or less eliminate this issue is to only pull the values list once for each option and reuse it instead of pulling it every single time an option value is loaded, especially when you are talking about the initial load.
But then you still run into max_post_upload limitations on some servers... options add so many fields and if you have a lot then you are risking running into that problem

Re: Options sometimes disappear when editing a product

Posted: Fri Nov 18, 2011 4:14 am
by Qphoria
Xsecrets wrote:
Qphoria wrote:I am actually seeing this issue now where vQmod is NOT installed, but there are like 60+ options. I think we need to change the way this form works to make each option save to the database separately and only show the text row as this is only going to get worse as more fields are added
I like the on the fly updating idea, but really all you would need to do to more or less eliminate this issue is to only pull the values list once for each option and reuse it instead of pulling it every single time an option value is loaded, especially when you are talking about the initial load.
But then you still run into max_post_upload limitations on some servers... options add so many fields and if you have a lot then you are risking running into that problem

Re: Options sometimes disappear when editing a product

Posted: Fri Nov 18, 2011 4:18 am
by Xsecrets
yeah I do like the idea of individual updates, but at the very least we need a bandaid on this problem. It never should have been done that way to begin with.

Re: Options sometimes disappear when editing a product

Posted: Fri Nov 18, 2011 10:24 pm
by Qphoria
Sometimes things work cool on a small scale and we forget the big picture (and big stores)