View Full Version : Missing Product Settings
MarkFL
12-13-2016, 08:15 AM
Hello,
On one of the forums I serve as Tech Admin, I have run into a situation I've never encountered before. When I import a product, sometimes the product settings are incomplete when I go to configure them, which renders the product useless.
For example, I imported my "Additional Thread Tools" product, and what I should see is:
https://vborg.vbsupport.ru/attachment.php?attachmentid=155541&stc=1&d=1481623411
But what I actually see is:
https://vborg.vbsupport.ru/attachment.php?attachmentid=155542&stc=1&d=1481623411
For now, I have asked the site owner to re-upload all files from the "admincp" folder to see if that resolves the issue, but in the meantime I thought I would ask here to see if anyone else has experienced this issue, and what was done to resolve it.
Does the page end after the "Auto-Prefixes" header or are the save/reset button also present on that page? Else it could be an internal server error that stops script execution.
MarkFL
12-13-2016, 03:31 PM
The page just ends, there are no save/reset buttons.
Dragonsys
12-13-2016, 04:08 PM
Have you checked the server error logs?
MarkFL
12-13-2016, 04:21 PM
Checking that now...it's a 6+ GB file so it will take some time to download it.
The page just ends, there are no save/reset buttons.
In that case I'm pretty sure it's a fatal error in php, maybe due to the php version on that server in combination with the php code that is bound to the auto prefix option?
Paul M
12-13-2016, 04:38 PM
6G :eek:
Sounds like you need some log file rotation.
Also sounds like you have some real issues, generating error logs that size.
MarkFL
12-13-2016, 04:48 PM
It's a file that has been going since 2013. I just started in earnest helping with this site in the last week or so. Once we get this issue resolved, I will definitely look into log file rotation.
MarkFL
12-13-2016, 04:55 PM
In that case I'm pretty sure it's a fatal error in php, maybe due to the php version on that server in combination with the php code that is bound to the auto prefix option?
The site is running vB 4.2.3 and has PHP 5.6.28. I'm not familiar with the "auto prefix option."
The site is running vB 4.2.3 and has PHP 5.6.28. I'm not familiar with the "auto prefix option."
I mean the "Auto-prefixes" option of that plugin, does that particular option have PHP code in the XML file where it checks the value or generates the value for "Auto-prefixes"?
MarkFL
12-13-2016, 06:44 PM
Oh...duh! Yes, it queries the db to get the prefixes, however, other products also have their settings truncated that use other types of option code. The first product I noticed with this issue seemed to have an issue with the option code:
<input title='Click To Choose Color' style='cursor: pointer' type='color' value='$setting[value]' name='setting[$setting[varname]]' id='sel_setting_$setting[varname]' >
When I removed that, and left it blank so the simple text box shows up, then the settings weren't truncated.
MarkFL
12-14-2016, 01:39 AM
Okay, I got the issue sorted. It had to do with a custom ad rotation product.
It has a function defined in a plugin hooked at "admin_options_print" that should be within the if-then construct, instead of outside of it, which causes the function to be re-declared, throwing a fatal error.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.