Nevermind, I combined the bAK file to original file and I got it to work. Thanks anyway.
Now, understand that the htaccess file is itself a sort of program. When you combined the two, which set of rules went first?
Please remember that the forums are not about just helping you but also allowing others to work through similar problems. Understanding the solution and why the problem occurred can help a lot. :)
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Hoping someone can help me.
I installed Utimate URL and the installation went fine and i could see the ultimate URL option under my config page. But the URLs were not changing. Then i pinpointed it to the includes/html_output.php file and changed the HTML href link wrapper function to
The URLs work now but the problem now is when adding a product to cart. Adding a product to cart gives me a 403 Forbidden error.Code:function zen_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true, $static = false, $use_dir_ws_catalog = true) { global $request_type, $session_started, $http_domain, $https_domain, $zco_notifier; // START alternative URLs patch global $altURLs; // END alternative URLs patch $link = null; $zco_notifier->notify('NOTIFY_SEFU_INTERCEPT', array(), $link, $page, $parameters, $connection, $add_session_id, $static, $use_dir_ws_catalog); // START alternative URLs patch if(isset($altURLs)) { $link = $altURLs->href_link($page, $parameters, $connection, $add_session_id, $static, $use_dir_ws_catalog); if($link !== null) return $link; } // END alternative URLs patch
I researched online and some suggested to modify the htaccess file in the admin folder and add a line at the end. But if i do that, it gives me a 500 error and I cannot access the admin page of my website.Code:e.g. SecFilterInheritance Off or this: SecFilterScanPOST Off
Does anybody have a similar problem and a fix to it? Any help would be appreciated.
Thanks
#1, look at the posting tips. specifically what version of ZC are you using, PHP version, plugins etc.
#2, changing anything on the admin when you are having a problem adding to your cart is most probably not the solution.
#3, what is the URL for your site?
#4, prior to implementing the ultimate URL, were you able to add things to the cart and then check out?
Thanks for your help,
#1 i am using zencart v1.5.5d. PHP Version 5.4.45, Database: MySQL 5.5.51-38.2. Only other plugins i have is ckeditor, COWOA.
#2 that is what i figured but i am out of ideas so just trying whatever solutions there are out there.
#3 my url is pro2a-tactical.com
#4. Yes my site was fully functioning before i installed the Ultimate URL. It is even working now as long as i turn off the feature in config. But if i turn it on, i will not be able to add to cart.
can you turn it on right now so that i can see what is happening?
in addition, you should talk to your host about moving your php version to php5.6. see:
https://www.zen-cart.com/content.php...o-run-zen-cart
you might be able to do it on your cpanel configuration.
Last edited by carlwhat; 13 Jul 2017 at 11:59 PM.
in addition, you could turn off rewriting for the shopping cart. go to:
admin -> configuration -> ultimate seo
and on that page look for the:
Enter pages to allow rewrite
and explicitly allow certain pages, and not including the shopping cart, ie for that value add:
index, product_info, document_general_info, document_product_info, product_free_shipping_info, products_new, products_all, featured_products, specials, conditions, privacy, reviews, shippinginfo, faqs_all, site_map, gv_faq, discount_coupon, page, page_2, page_3, page_4
it "may" resolve your problem. but tough to tell unless i see the actual problem happening.
good luck!
the problem is NOT with the shopping cart page. it is with the product info page and specifically with how the form is getting created. when you have ultimate urls turned on, the form creates an action on post of something like this:
http://pro2a-tactical.com/ar15-upper...on=add_product
which fails. and goes to the 403 page....
the buy now button works as demonstrated by this page:
http://pro2a-tactical.com/ar15-uppers-9mm-c-1_10/
and you go to the shopping cart.
it will require a little more digging to see why that 403 is happening. but its specifically with the posting of the form. and U Urls is somehow not properly parsing the data, and specifically the product_number. so that if the form had this action, it would work:
http://pro2a-tactical.com/ar15-upper...on=add_product
Bookmarks