Jump to content

canary100

Members
  • Content count

    32
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Luis
  1. canary100

    New UPS XML Shipping Module available

    I thought maybe this was as a result of having the REGISTER GLOBALS fix contribution, so I changed the $_POST and $_GET for $HTTP_POST_VARS, $HTTP_GET_VARS in the packaging.php file... Same problem.
  2. canary100

    New UPS XML Shipping Module available

    Hello All: A bit of an urgent request: I had this modle installed for a client WITHOUT dimensions support. he kept getting really bad quotes, then I decided to install the Dimensions Suport off the latest files (1.2.6). Everything seemed to go ok EXCEPT that the PACKAGING FORM under the TOOLS does not work. When I clik on the "NEW PACKAGE" button, nothing happens. The url shows without sessions (good) and it seems the form itself just does not get loaded, just the same screen. I have double checked avary file, every modification as indiacted in the Dimensions.txt support and no luck. Any hits at why this may be happening? Thanks
  3. Hello kiddos: So not another soul has to pay the price for waht happened to me tonight, here is a CLEANED UP version of how to fix the DECLINE/ERROR messages issue in LINKPOINT CONNECT 1.1 (and many other payment modules) WHILE using STS 3.0 or higher. May also work with STS below that, but it has not been tested. If you are using LinkpointConnect 1.1 and you are having problems getting your FAILED URL to work, here is what I did. A) Make sure in your linkpoincentral you have your return URL pointing to https//www.yourdomain.com/whateverdirectory/checkout_process.php . Check "URL is CGI script". To debug, leave Auto Forwarding off so you can just hit the back button and retest it without having to enter the credit card info evrytime. Turned back on when it is working B) In your sts_display_output.php file find this code: // Prepend any error/warning messages to $content if ($messageStack->size('header') > 0) { $template['content'] = $messageStack->output('header') . $template['content']; } and put this right after it: ////////Start Error Messages - Tom Wojcik if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) { $messageStack->add('error_message', $HTTP_GET_VARS['error_message']); $template['content'] = $messageStack->output('error_message') . $template['content']; } ////// End Error Messages so it looks like: // Prepend any error/warning messages to $content if ($messageStack->size('header') > 0) { $template['content'] = $messageStack->output('header') . $template['content']; } ////////Start Error Messages - Tom Wojcik if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) { $messageStack->add('error_message', $HTTP_GET_VARS['error_message']); $template['content'] = $messageStack->output('error_message') . $template['content']; } ////// End Error Messages This fix is credited to Tom Wojcik (whoever he is) C) IMPORTANT FOR MAC USERS!!!!!!!: And issue with copy and paste of code from browser to text editr. This was brought up by TABULA RASA "Just a note, if anybody comes up against it, there are invisible characters (3 of them), which looks like a bullet, if we copy and paste this code using a mac. The parse error says that an enexpected '{' was encountered. If you show invisibles and replace the character with space character, it solves the problem." This literary had me down for almost a whole night. So TABULA is referring to the code that was added. IF using BBEDIT, turn on the "show invisibles" and look for the symbols. Once you take them, it works like butter. KANNARY OUT!!!!
  4. canary100

    Register Globals Support

    To all: Just in case somebody has this set up: - Running Apache on Linux/Unix - Can' turn off Register Globals from the php.ini file (No access because on a shared server, etc.) - HAS to run the shop with Register Globals = off As you all know, in Apache you can use an .htaccess file in the root directory (or the shop's root directory) using the " php_value register_globals 0" to tun off Register Globals off locally. However, I kept having a session error ONLY in the administration similar to the one described in the README file. "Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0" The .htaccess did not seem to affect this warning. The .htaccess file was tested using the phpinfo.php in subdirectories and I saw the Register Global got to "off" as I moved around, so the .htaccess file is turning off Register Globals BUT ONLY on the Local Value column, not the Master value column. In any event, the README file continues by advicing to: "The scenario described by the warning does NOT apply to this patch (ie - this patch does NOT make use of the bug/feature in 4.2.3), so it is safe (indeed very desirable) to switch this functionality and warning off. To remove this functionality and stop the warning, set both of these parameters in php.ini as follows : session.bug_compat_42 = 0 session.bug_compat_warn = 0 " Which, of course I could not do since I had no access to the php.ini file. I searched the web and found this two lines of code than when added to the .htaccess file, turn off the warnings: <IfModule mod_php4.c> php_value register_globals 0 php_value session.bug_compat_42 0 php_value session.bug_compat_warn 0 </IfModule> I guess I just sharing this information because I could not find it anywhere here and in case some lost soul is looking for it. Also, if anyone has any commenst on this set up, possible unexpected results, thinks it is not really a solution, and so on...please, correct me. Thanks
  5. canary100

    Could not execute curl help! please

    Well, as far as the .pem file..I created a new (is just a ASCII text file) uploaded it... Now I do not not get the "could Not Execute curL error (ora at least that part of the error) I still get an error, but I think this one is because I am using a dummy card. However, the returning error STILL only shows up in the encoded in the URL, not anywhere in the page BUT.... see: .....whatever.com/osc_shop/checkout_payment.php?error_message=There+has+been+an+error+processing+your+credit+card%2C+please+try+again+:%20CC-4004:%20Order%20credit%20card%20number%20must%20be%20supplied.&osCsid=6af088e1917d5aa60b4118a7157f5869]https://www.zozzz.com/osc_shop/checkout_pay...b4118a7157f5869[/url] I am lost. And tired. And broke. Thanks
  6. canary100

    Could not execute curl help! please

    Hello everyone. Mr Robinson: Well, I have the similar runningprobelm with the curl execution, but with a twist. First a few things about my site: A) Heavily modified OSC. Only one payment module: linkpoint B)Running the Register Globals Contribution version with register_globals = off. C) Client is using the Linkpoint API service. D) The version I installed is the latest LinkpointMS1andMS2_1_3_1.zip by Mr. Murphy. E) My server config cURL field reads: CURL support = enabled CURL Information = libcurl 7.9.5 (OpenSSL 0.9.6b) (ipv6 enabled) F) Running the store in "good" mode, but I have no access to the Linkcentral account. Client does not trust me with access to it. To start with: A) All my error messages are not being shown in the page, only in the url address. Thsi means when I process the card. I get sent back to the CC page, but I see no error message anywhere. I do, however, see the following in URL address field http://..........error_message=There+has+been+an+error+processing+your+credit+card%2C+please+try+again+:%20Could%20not%20execute%20curl Could this be a rgister_globals = off issue. B) Like the rest of you , I get the Could Not Execute curl message. First, if anything I would like to take care of the error message issue, which seem to me like a simpler fix. I am also going to harras me client to get me access to teh Linkcentral admin side, or maybe use one of their test stores instead. Anyone used the test store to create a OSC site?... Thanks in advance
  7. canary100

    Register Globals Support

    Thanks CM. I knew at one point my luck would run out. As for "my fix" being wrong, well, not to argue back, but I have test it quite a few times , and it seems to work just fine..but then again, what do I know...I am just an idiot savant... Thanks man.
  8. canary100

    Wishlist 2.0 Support Thread

    Hello all: Well, I am the designated register_globals = off OSC test monkey as it is giving me all sorts of problems. I am cross posting to the Register Globals Contribution Support thread as more often than not the "big guns" aka "real coders" tend to stick to the contribution threads they work on and may miss issues that affect both: As it stands now, the WISHLIST 2.3 contribution (aka 2.0 aka 2.0 Extended aka who-knows-what-else) does not seem to work well with the Register Globals contribution. It seems none of the form variables are making it through: I can't add anything to either the wishlist nor the cart. The problem MUST be a register_globals issue because the behavior of the forms is similar to problems I had with other contributions. One things I DID fix using a little piece of code from another Register Globals issue in another contribution: The "buy now" button code in the application_top.php; It was ginving me the SQL delete syntax error some of you got. Adding the fix took care of it, WHICH tells me it definetily must be a REGISTER GLOBALS = off problem. (By the way this fix only applies if you are using the REGISTER GLOBALS contribution. If you need this fix, head to the Register Globals topic in the Contribution Support and look it up as it is posted there. So...Any of you running wishlist with Register Globals Contribution (register_globals=off) and got it running? If not...any ideas on how to take care of this? Upon fixing/testing this problem I will upload a TXT file to the contribution so the next person that runs into this can fix it. If you look up the contributions you will see I have been posting teh fixes given (and tested) for the Register Globals = off. Thanks in advance. Luis
  9. canary100

    Register Globals Support

    Sorry to wonder back in here with another issue: I just installed (Just..more like 8 hours ago actually) WISHLIST 2.0 and as expected, I am running into another register_globals=off issue. (or at least I think so) The installation went smooth, but as it stands now, no fucntionality. Since this is a multiple page problem, I paste the code for the pages where I suspect the problem may be: ##########APPLICATION_TOP.PHP MODIFICATION # 1 THIS ONE I SOLVED using the link_get_variable CMOTD showed me for the Admin Paging problem just before this post. This code was giving me an SQL sytax error, but as I said, it is fixed: OLD CODE ? ? ?// performed by the 'buy now' button in product listings and review page ? ? ?case 'buy_now' : ? ? ? ?if (isset($HTTP_GET_VARS['products_id'])) { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?// Wish List 2.3 Start ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?if (tep_session_is_registered('customer_id')) { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_db_query("delete from " . TABLE_WISHLIST . " WHERE customers_id=$customer_id AND products_id=$products_id"); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_db_query("delete from " . TABLE_WISHLIST_ATTRIBUTES . " WHERE customers_id=$customer_id AND products_id=$products_id"); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?// Wish List 2.3 End ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?if (tep_has_product_attributes($HTTP_GET_VARS['products_id'])) { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id'])); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} else { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?$cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+1); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?break; NEW FIXED CODE using "link_get_variables" ? case 'buy_now' : ? ? ? ?if (isset($HTTP_GET_VARS['products_id'])) { ? ? ? ?link_get_variable('customer_id'); ? ? ? ?link_get_variable('products_id'); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?// Wish List 2.3 Start ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?if (tep_session_is_registered('customer_id')) { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? tep_db_query("delete from " . TABLE_WISHLIST . " WHERE customers_id=$customer_id AND products_id=$products_id"); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? tep_db_query("delete from " . TABLE_WISHLIST_ATTRIBUTES . " WHERE customers_id=$customer_id AND products_id=$products_id"); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?// Wish List 2.3 End ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?if (tep_has_product_attributes($HTTP_GET_VARS['products_id'])) { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id'])); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} else { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?$cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+1); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?break; MODIFICATION # 2 ?case 'cust_order' : ? ? if (tep_session_is_registered('customer_id') && isset($HTTP_GET_VARS['pid'])) { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?// Wish List 2.3 Start ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_db_query("delete from " . TABLE_WISHLIST . " where products_id = '" . $HTTP_GET_VARS['pid'] . "' and customers_id = '" . $customer_id . "'"); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_db_query("delete from " . TABLE_WISHLIST_ATTRIBUTES . " WHERE customers_id=$customer_id AND products_id='" . $HTTP_GET_VARS['pid']."'"); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?// Wish List 2.3 End ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?if (tep_has_product_attributes($HTTP_GET_VARS['pid'])) { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['pid'])); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} else { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?$cart->add_cart($HTTP_GET_VARS['pid'], $cart->get_quantity($HTTP_GET_VARS['pid'])+1); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?break; // Wish List 2.3 Start // ***************************************** ? ? ?// Remove item from the Wish List ? ? ?case 'remove_wishlist': ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_db_query("delete from " . TABLE_WISHLIST . " where products_id = '" . $HTTP_GET_VARS['pid'] . "' and customers_id = '" . $customer_id . "'"); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_db_query("delete from " . TABLE_WISHLIST_ATTRIBUTES . " WHERE customers_id=$customer_id AND products_id= '" . $HTTP_GET_VARS['pid'] . "'"); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_redirect(tep_href_link(FILENAME_WISHLIST)); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?break; ? ?} // end switch $HTTP_GET_VARS['action'] ?} // end if is set $HTTP_GET_VARS['action'] ?// Shopping cart actions through POST variables from forms ?if (isset($HTTP_POST_VARS['wishlist_action'])) { ? ?// redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled ? ?if ($session_started == false) { ? ? ?tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE)); ? ?} ? ?$goto = basename($PHP_SELF); ? ?switch ($HTTP_POST_VARS['wishlist_action']) { ? ? ?// Customer wants to update the product quantity in their shopping cart ? ? ?case 'add_wishlist' : ?if (ereg('^[0-9]+$', $HTTP_POST_VARS['products_id'])) { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?if ($HTTP_POST_VARS['products_id']) { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?if ($customer_id > 0) { ? ? ? ? ? ?// Queries below replace old product instead of adding to queatity. ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_db_query("delete from " . TABLE_WISHLIST . " where products_id = '" . $HTTP_POST_VARS['products_id'] . "' and customers_id = '" . $customer_id . "'"); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_db_query("insert into " . TABLE_WISHLIST . " (customers_id, products_id, products_model, products_name, products_price) values ('" . $customer_id . "', '" . $products_id . "', '" . $products_model . "', '" . $products_name . "', '" . $products_price . "' )"); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_db_query("delete from " . TABLE_WISHLIST_ATTRIBUTES . " where products_id = '" . $HTTP_POST_VARS['products_id'] . "' and customers_id = '" . $customer_id . "'"); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?// Read array of options and values for attributes in id[] ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?if (isset ($id)) { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?foreach($id as $att_option=>$att_value) { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?// Add to customers_wishlist_attributes table ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_db_query("insert into " . TABLE_WISHLIST_ATTRIBUTES . " (customers_id, products_id, products_options_id , products_options_value_id) values ('" . $customer_id . "', '" . $products_id . "', '" . $att_option . "', '" . $att_value . "' )"); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?break; ? ? ?case 'wishlist_add_cart' :if (ereg('^[0-9]+$', $HTTP_POST_VARS['products_id'])) { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?if ($HTTP_POST_VARS['products_id']) { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?if ($customer_id > 0) { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_db_query("delete from " . TABLE_WISHLIST . " where products_id = '" . $HTTP_POST_VARS['products_id'] . "' and customers_id = '" . $customer_id . "'"); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_db_query("delete from " . TABLE_WISHLIST_ATTRIBUTES . " where products_id = '" . $HTTP_POST_VARS['products_id'] . "' and customers_id = '" . $customer_id . "'"); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?// Read array of options and values for attributes in id[] ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?break; ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?break; ? ? ? // Wishlist Checkboxes ? ? ? case 'add_delete_products_wishlist': ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?if (isset($HTTP_POST_VARS['add_wishprod'])) { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? if ($HTTP_POST_VARS['borrar'] == 0) { ? ? ? ? ? ? ? ? // 'borrar' form variable refers to deleting products in array $add_wishprod[] from wishlist ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? foreach ($HTTP_POST_VARS['add_wishprod'] as $value) { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?if (ereg('^[0-9]+$', $value)) { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?$cart->add_cart($value, $cart->get_quantity(tep_get_uprid($value, $HTTP_POST_VARS['id'][$value]))+1, $HTTP_POST_VARS['id'][$value]); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_db_query("delete from " . TABLE_WISHLIST . " where products_id = $value and customers_id = '" . $customer_id . "'"); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_db_query("delete from " . TABLE_WISHLIST_ATTRIBUTES . " where products_id = '$value' and customers_id = '" . $customer_id . "'"); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? } ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? } ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? if ($HTTP_POST_VARS['borrar'] == 1) { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? foreach ($HTTP_POST_VARS['add_wishprod'] as $value) { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?if (ereg('^[0-9]+$', $value)) { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? tep_db_query("delete from " . TABLE_WISHLIST . " where products_id = $value and customers_id = '" . $customer_id . "'"); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_db_query("delete from " . TABLE_WISHLIST_ATTRIBUTES . " where products_id = '$value' and customers_id = '" . $customer_id . "'"); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? } ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? tep_redirect(tep_href_link(FILENAME_WISHLIST)); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? } ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?break; ? ?} // end switch ($HTTP_POST_VARS['wishlist_action']) ?} // end isset($HTTP_POST_VARS) // ***************************************** // Wish List 2.3 End // include the who's online functions I also suspect the products_info.php and wishlist.php pages may also have code that needs patching, but I get the feeling the problem is in this page. As always, upong fixing/texting this problem, I will posted a TXT file to the WISHLIST 2.0 contribution so anyone else with this problem can fix it next time around. Thanks in advanced
  10. man , this whole register globals = off issue is grinding my projects to the ground. Anyway, here we go.....again...Installed Wishlist 2.3, I am running a HEAVILY modified OSC shop with the register_globals = off contribution, which pretty much has made all others a pain in teh ass to install. So far I got headers Controller, ultrspics, QTpro, Product Sorting, Admin Paging, Register Globals. Wishlist was my last contribution, and this one has turned out to be the hardest to break. I list the issues I am having: A) Nothing gets added to the wishlist or cart ever. B) When adding a product by hand via phpMyAdmin, I STILL do not see it in the infobix or the wishlist page. Looks to me like none of the form variables are making it throught. I know it has tobe be a register_globals = off because the problems are similar to other issues I had with other contributions. Also, some of you have had the SQL problem when clicking on the "Buy Now" button, which I did (SQL error = can't delete from TABLE..etc, etc)..In my case I added code from another fix related to the register_globals = off and it took care of it, which ledas me to belive the problems are variable-related: I suspect the error is taking place in the application_top.php file, and if not definetly on the product_info.php page. I assume the wishlist.php may also be adding to the problem. Anyone ever installed Wishlist 2.0 in a register_globals = off oscand how did y9ou went about it? Also, I am using the lastest mod that controls the maximun display number in teh Wishlist page from the Admin> Maximun Values panel. Thanks folks.
  11. The PATCH for this issue is here now: http://www.oscommerce.com/community/contributions,1965
  12. canary100

    Register Globals Support

    Posted the fix to the ADMIN PAGING contribution http://www.oscommerce.com/community/contributions,1965 THX
  13. canary100

    Register Globals Support

    Rich, my man, you are THE man. Worked like butter man, almost made me cry. .....I shall promptly take your instructions, make a quick TXT file and place it on the Admin Paging contributions for future ref, giving youu of course all good credit. Awesome.
  14. canary100

    Admin Products Paging

    Which version of the admin pagination did you install? There are two versions, one by Giussepe and the other by Jordi. The one by Jordi (Admin Products Paging) is a better version. It is based on Giussepe's, but it was made from scratch by Jordi. However, for what I read, it is quite buggy. This Jordi dude is spanish and posted this contribution in an spanish OSC commerce site (find the addresss in the OSC contribution page for the Admin Products Paging) Once there, look for him (do a user search) and his name comes up, then you can look up his profile and find his address there.. However, I emailed him once, never heard from him. In the spanish froums there are only but a handful of threads, none really dealing with neither your nor my problem. His last post basically said he was aware of the problems and would look into them. Other than that, there is almost 0 support for this contribution. What I can't figure out is since this SEEEMS like such an important feature and this such a weak contribution....Are people using something else, some other contribution, to get the same results? I looked, see none.
  15. 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.
×