Guest Posted November 23, 2004 Posted November 23, 2004 I guess I may as well put this on its own topic so the next php-handicapable like myself that looks for this error may (asuming one of you cats anwers the problem) find the answer: I have what I belive looks like a register_globals = off issue with one contribution, a small one which is the Admin Listing Paging one. There are two versinos, one created by Italian Giussepe Urso (Admin products listing custom limit), that is old and outdated, and a new one (better commented one, Admin Products Paging) by Jordi. This last one is the one I used and it is this one here: http://www.oscommerce.com/community/contri...ons,1965/page,3 This bug is concerning the "categories.php" file only. If you want to look at the code, download it from the osc server. I rarther do the fixing in a clean one, then move it over to mine later as it currently has about 5 contributions in it (QTPro, Ultrspics, Header Tags Controller, Products Sort, a few more) This shop was buit upon a register_globals = off ammended OSC shop. This contribution basically adds a maximun limit of products to be listed in the Categories/Products section of the Admin, and adds a simple numbered page link for extra pages (1, 2,3) You set the maximun number of products per page in the Configuration>Maximun Values (example: 5). Anyway, I assume most of you know what that is. My problem is that when clicking on any of the other page numbers, it opens the same page. I see the link kick in, I see the browser send it, get it back, but it its the same page, same page number. I look at the url and I see the read out is correct: Examples : Page 1 = http://www.zozzz.com/osc_shop/zozzz_admin/...es.php?cPath=21 Page 2: = http://www.zozzz.com/osc_shop/zozzz_admin/..._1=5&limite_2=5 Page 3: = http://www.zozzz.com/osc_shop/zozzz_admin/...1=10&limite_2=5 Yet, it still spits out page 1, even when the url address reads out differently No errors, everything appears fine, all othe links work. I run into a similar issue with QTPro, and as I suspected, it was a register_globals issue, which fortunately for me, someone had just figured out and posted almost at the same time. This bug seems to be similar in action and form as the QTpro one I metioned. Ok, so my question and proposal is: A) Any ideas, any hope for a miserable PHP-poser like myself to get any of you PHP-gods to throw me a bone scrap and see what you think?...I can't fix it, but I can tell it is not a major issue..I feel like I am just one inch away from fixing it. I smell the problem maybe in teh way the page link is generated (<a href=categories.php?cPath=$cPath&limite_1=$lim_1&limite_2=$lim_2>), maybe not If fixed, I will clean up the code and posted as a REGISTER_GLOBALS=OFF version of Admin Products Paging so the next pair of php-posers like myself don't annoy anyone else with that one. Thanks. Quote
Guest Posted November 26, 2004 Posted November 26, 2004 The PATCH for this issue is here now: http://www.oscommerce.com/community/contributions,1965 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.