View Full Version : RP 3.11 Upload Issue
November 18th, 2005, 05:15 PM
We're testing out the RP 3.11 upgrade on our test install (going from 3.1 to 3.11) and have encountered an odd error.
After uploading the files, when we try to upload a product on step 2:
Step 2 of 3
Choose the category you wish to place your product:
the category selection pulldown is empty and grayed out so we can't select a category.
I double checked and we have uploaded all of the changed files.
Where does that pulldown get its data from and any thoughts about where to look to see what the issue is?
In other places, like the search page, in the admin interface, etc. the categories all show up fine as far as we can tell.
November 18th, 2005, 05:26 PM
How about your cat move box is that filled out?
That box is filled out by what you have set in categories editor UPLOAD PERMISSIONS for usergroups. Each category you select which templates the categories use and in template types in admin you select the active templates. By default the normal template is selected and you can also select the customer service template as well
I dont show any issues with 3.11 in this respect. Try rebuilding your cache by setting it to 0 after going to admin and checking all your cat upload permissions in edit categories
You can try my install
November 18th, 2005, 05:50 PM
Yes, cat move box is filled out.
I think it may be a bug with the cache.
If I cut the cache off, I can see the categories and it works fine.
If I cut the cache on (with any value), the issue returns.
Are there separate code segments for pulling in the categories on that page based on whether the cache is on or not? That might explain the differences if there is an issue in one segment when the cache is on (might even be an interaction with another setting which would explain why it might not show up under all installs).
We do have the customer service template active and all categories are using it so perhaps that is another difference.
November 18th, 2005, 05:59 PM
I am using the cache and my cats list fine on the uploads page.
I think your issue might have to do with not having the default template active is that your case?
November 19th, 2005, 07:02 AM
Yes, I think you've hit the nail on the head.
The default template is enabled but isn't in use for any category.
If I cut the cache on and then make a new test category that uses the regular template, the categories show up as intended.
If I switch that new category to using the customer service template so that all categories are using it again, with the cache on, no categories in the pulldown.
So it appears that the values in the pulldown are dependent on the regular template being used in a category which I assume shouldn't be the case as some sites will have it enabled but not in use.
November 19th, 2005, 07:47 AM
Well if your selecting the regular template on upload but have no cats using it and the cats box is empty well this isnt a bug. Thats just the way you have it set up. Yes depending on your answer on the first step it pulls the cats assigned to that template type and is exactly why there is this step on upload
November 19th, 2005, 08:06 AM
Thanks. I think there is a bug. Just to be explicit about what I was referring to in my last post:
If there are no categories using the regular template, then no categories show for the customer service template when the cache is enabled, so that's where the bug lies. I wouldn't expect any categories to show for the regular templates since there are none that use it but the categories that use the customer service template should show when it is selected.
If one category has the regular template and the others have the customer service, then both show as intended when the cache is on.
But if no categories have the regular template and all have the customer service template, then no categories show for the customer service template.
November 19th, 2005, 08:12 AM
Well you will need to post a test login account and url for me to look as your post above sounded like your talking about no cats showing when you select regular
On my install where I use the cache I have regular and customer service categories and depending on what I select on the first step the proper cats appear.
November 19th, 2005, 09:42 AM
Try this in uploadproduct.php
list( $pptemplate, $reviewtype ) = mysql_fetch_row($reviewtypes);
$Globals['cattemp'] = $pptemplate;
$Globals['cattemp'] = $pptemplate;
$cat = 0;
htmlspecialchars was the cause
November 19th, 2005, 09:53 AM
Yes, that's exactly what I see. In our case we don't want any to be the main template, hence the issue.
For now we've cut the cache off.
November 19th, 2005, 10:04 AM
try what is posted above we where posting at the same time when I was editing my post with a fix
November 21st, 2005, 03:27 PM
Thanks. I'll try that out.
November 22nd, 2005, 02:29 PM
Thanks, works as expected now after applying the fix.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.