mystique71 Posted September 24, 2015 Share Posted September 24, 2015 greetings everyone, I am getting a little desperate here :( I finally thought I had my shop working for but today I found out that my add to cart button isn't working anymore :( in dutch it is in winkelwagen the order now button does work and puts the product in the shopping cart but I need the other button to work as well otherwise people cannot use the product attributes :( when I click on the add to cart button it takes me to my shopping cart is empty (duh) the only change that was made last week is that my SSL certificate was installed, I can't remember making any other changes??? I sure hope some one can please help me with this issue. this is my shop link: https://www.uniquegiftcreations.nl/webwinkel/index.php Link to comment Share on other sites More sharing options...
burt Posted September 24, 2015 Share Posted September 24, 2015 Multiple Problems: 1. you are not using the Responsive osCommerce. 2. you appear to have english half installed ? Lots of missing data in the english language version of the site. Delete english if you do not intend to use it. 3. Error on adding to cart "Fatal error: Cannot redeclare do_magic_quotes_gpc()" so you have declared this more than once. Most likely an incorrectly named backup file. Solve at least #2 and #3. Solve #1 if you value what Google thinks about your site. Link to comment Share on other sites More sharing options...
tgely Posted September 24, 2015 Share Posted September 24, 2015 You missed the updateuse $request_type variable in tep_draw_form() <?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?> change to: <?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')). 'action=add_product', $request_type), 'post'); ?> osCommerce based shop owner with minimal design and focused on background works. When the less is more.Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store. Link to comment Share on other sites More sharing options...
mystique71 Posted September 24, 2015 Author Share Posted September 24, 2015 Multiple Problems: 1. you are not using the Responsive osCommerce. 2. you appear to have english half installed ? Lots of missing data in the english language version of the site. Delete english if you do not intend to use it. 3. Error on adding to cart "Fatal error: Cannot redeclare do_magic_quotes_gpc()" so you have declared this more than once. Most likely an incorrectly named backup file. Solve at least #2 and #3. Solve #1 if you value what Google thinks about your site. Hi Burt, no that's correct that I am not using the responsive one, cause I didnt know there was one before I installed this. about the english language yes I am stil working on it to get most of the stuff done in dutch but eveyrthing was just working normally till a few days ago also the add to cart button. pss how do I solve number 3???? @@Gergely in what file do i need to change the text?? Link to comment Share on other sites More sharing options...
mystique71 Posted September 24, 2015 Author Share Posted September 24, 2015 Gergely you are my hero :D that did the trick. I had disabled the automatic updates because I was afraid it would mess up my shop :( but since there was an update could this also cause that some other thingfs aren't working anymore? like when I add a new product to my store and I add an image I can't add a larger image anymore thath link is also not working, it's directing me to the admin main page *sigh* plus the admin menu doesn't fold up anymore is that also part of the non update at my site? Link to comment Share on other sites More sharing options...
tgely Posted September 24, 2015 Share Posted September 24, 2015 in product_info.phpWhat automatic updates do you use? I should always do it by hand :wacko: osCommerce based shop owner with minimal design and focused on background works. When the less is more.Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store. Link to comment Share on other sites More sharing options...
♥John W Posted September 24, 2015 Share Posted September 24, 2015 @@mystique71 Do yourself a favor and switch now to the Responsive version. Also, in the future don't output errors to the screen on a live shop. Output errors to a file that's only accessible to you. You might want to consider paying someone like Burt to help you get setup. I'm not really a dog. Link to comment Share on other sites More sharing options...
mystique71 Posted September 24, 2015 Author Share Posted September 24, 2015 uuhh guys........ my webhost has powertools installation and that's how I had setup my store, it was my very fist time that I worked with oscommerce since someone had promised to help me with a webshop but never kept his promise I had to do it all bymyself. PS i don't understand John: which output errors are seen on my shop?? I try to check everything every day and I have no clue what you mean or where to look??? and although it would be a great idea to pay someone for setting up a shop for me responsive or not) I just don't have the money for it. that's why I have to figure everything out for myself . I know there might still be some minor issues but i am not sure if that's visible for costumers, only thing that bothers me is that I can't find the tell a friend box on my site (vertel een vriend) Link to comment Share on other sites More sharing options...
♥John W Posted September 24, 2015 Share Posted September 24, 2015 Any errors you have are displaying on the screen for everyone to see. That's a very bad idea. You have a long road ahead of you but you need to understand more before proceeding or you're in for trouble. I started just like you in 2002, but I ended up paying for a little help. If you can't pay someone and I understand that, then you need to read a ton. First learn how to install OSC by using the documents instead of powertools. Read all the OSC documents and most problems you'll encounter have been asked on this forum before so you can search them out. Search is your friend and Google is good for php errors too. There are home versions of a server like WAMP that you can use as a local test server(a great idea). The only thing that will happen really fast is dissaster. I'm not really a dog. Link to comment Share on other sites More sharing options...
mystique71 Posted September 24, 2015 Author Share Posted September 24, 2015 trust me I have already read a lot of both forums ( dutch forum and here) and still reading every single day, but I still don't know what errors you mean? cause somehow I don't see them??? and the reason i used powertolls is because it was the easiest and fastest way for me to create a shop. cause I was in a hurry, not knowing I had to add so manu contributions myself, if I had known all this before i problably might never have used oscommerce. i know about wamp but i really need my concentration to install it all on my computer and due to my helth that's a major problem sometimes,the same with remembering things. very hard for me. but for now I really need to fix the tiny problems as mentioned before like why I can't add a larger image anymore ?? and how I find my tell a friend box on my site and this problem: 3. Error on adding to cart "Fatal error: Cannot redeclare do_magic_quotes_gpc()" so you have declared this more than once. Most likely an incorrectly named backup file. Link to comment Share on other sites More sharing options...
♥John W Posted September 24, 2015 Share Posted September 24, 2015 Read the documentation http://library.oscommerce.com/and it will help a lot. This is an error I see by clicking add to cart on your site. This means you're outputting errors to the screen. Maybe this is too advanced a thing to worry about now.Fatal error: Cannot redeclare do_magic_quotes_gpc() (previously declared in /home/pevt275047/domains/uniquegiftcreations.nl/public_html/webwinkel/includes/functions/compatibility.php:18) in /home/pevt275047/domains/uniquegiftcreations.nl/public_html/webwinkel/includes/functions/compatibility.php on line 30 I'm not really a dog. Link to comment Share on other sites More sharing options...
douglaswalker Posted September 25, 2015 Share Posted September 25, 2015 I remember having this error when I accidentally uploaded the the main file eg shopping_cart.php which is in catalog or the root of your site to the /languages file this then overwrites the language file. Would make sense if you have been editing language files. It is easy to do if you forget which folder you are in. Open up you languages/shopping_cart.php file and have a look. It should just be language defines. Doug Link to comment Share on other sites More sharing options...
mystique71 Posted September 25, 2015 Author Share Posted September 25, 2015 welll the weird part is: I have no problem or errors when I add something to the cart??? it all works fine, so that's why I dont understand why John gets this error? Link to comment Share on other sites More sharing options...
oscMarket Posted September 25, 2015 Share Posted September 25, 2015 @@mystique71 , you might have to switch to the english language to see the error @@John W sees. As he explained, you might overwrote a language file with a code file, as they are named the same but used in a different directory. Link to comment Share on other sites More sharing options...
douglaswalker Posted September 25, 2015 Share Posted September 25, 2015 I get the error too which is why i suggested the language file was overwritten. As i don't use different languages i hadn't thought that you may have only overwritten the English version of shopping_cart.php. :thumbsup: Link to comment Share on other sites More sharing options...
mystique71 Posted September 25, 2015 Author Share Posted September 25, 2015 the only error I am getting is when i want to reset a password. I do get the email with the link to reset the password but when i go to that link it says: emailadress is unknown??? but it really is in my database and admin so I just don't understand where to look for the error and how to solve it Link to comment Share on other sites More sharing options...
douglaswalker Posted September 25, 2015 Share Posted September 25, 2015 I get the error when trying to add to cart viewing the english version of your site. Doug Fatal error: Cannot redeclare do_magic_quotes_gpc() (previously declared in /home/pevt275047/domains/uniquegiftcreations.nl/public_html/webwinkel/includes/functions/compatibility.php:18) in/home/pevt275047/domains/uniquegiftcreations.nl/public_html/webwinkel/includes/functions/compatibility.php on line 30 Link to comment Share on other sites More sharing options...
mystique71 Posted September 25, 2015 Author Share Posted September 25, 2015 okay I don't want to use the english version anyway so would it safe for me to just remove the english language folder? Link to comment Share on other sites More sharing options...
♥John W Posted September 25, 2015 Share Posted September 25, 2015 The error is a php error and not affected by any language file. It will output in English always. On the php site they state not to output php errors to the screen on a production server/site because of security concerns. In application_top you can change this by adding this code after where error_reporting is set. Or, above that. This will create a log in your includes folder that you can see. ini_set('display_errors', FALSE); ini_set('error_log', DIR_WS_INCLUDES . 'catalog_errors.log'); I'm not really a dog. Link to comment Share on other sites More sharing options...
mystique71 Posted September 25, 2015 Author Share Posted September 25, 2015 probably a dumb question but do I change the application_top in catalog or admin or in both? Link to comment Share on other sites More sharing options...
♥John W Posted September 25, 2015 Share Posted September 25, 2015 changine that in catalog will affect the catalog end. Changing it in admin will change the admin end. Realize that doing this will stop you from seeing the error on screen and you will have to look in the log created to get your errors. This is your call to do or not to do. There are tons of posts in this forum with people outputing errors but it's not good practice. You should still switch to the responsive version Burt mentioned if you want to sell more. Look at your site on an iPad. Find Google webmaster tools and read there. I'm not really a dog. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.