Forbidden error on single product page
-
Hello Everyone,
I have next issue. Site was down for a while cuz of hosting, and now i back and we cant add product to cart on single product page, getting next error:
Forbidden
You do not have permission to access this document.I am logged in as Admin.
I tried to deactivate all plugins and only activate woocommerce, and problem still exist. Does somebody haved similiar issue and how to fix it?Best regards.
- This topic was modified 2 years, 5 months ago by caminx197.
The page I need help with: [log in to see the link]
-
Hello @caminx197!
Thanks for reaching out!
I tried to deactivate all plugins and only activate woocommerce, and problem still exist. Does somebody haved similiar issue and how to fix it?
Could you please run a full theme/plugin conflict test by following the steps shown below?
- Temporarily switch your theme to Storefront
- Disable all plugins except for WooCommerce
- Repeat the action that is causing the problem
If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing the conflict.
Using a staging site would be a good idea. If your host doesn’t offer that option, we recommend WP Staging for quickly spinning up a new test site.
You can find a more detailed explanation on how to do a conflict test here.
Site was down for a while cuz of hosting, and now i back and we cant add product to cart on single product page, getting next error:
Forbidden
You do not have permission to access this document.If the above conflict test doesn’t resolve the issue, could you please share a copy of your site’s System Status to help us get more insight into the issue?
You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.
Could you also look for any fatal errors under WooCommerce → Status → Logs and look for any recent
Fatal Errors
listed there?We will be waiting for your update!
- This reply was modified 2 years, 5 months ago by Tamirat B. (a11n).
Hi @caminx197 ,
Thanks for reaching out!
I understand that you are receiving a Forbidden error when adding a product to the cart on a single product page.
I tried to deactivate all plugins and only activate woocommerce, and problem still exist.
Thanks for proactively eliminating this from the troubleshooting process. As a next step I would suggest clearing your site and browser cache:
If this makes no difference, please could you check the .htacess file. Please see the below guide, specifically Step 1: Check the .htaccess file, on how this can be accessed and what needs to be done:
https://www.hostinger.com/tutorials/what-is-403-forbidden-error-and-how-to-fix-it
Please let me know how this goes!
Hello,
I tried what Joseph said and error still exist.
Status and log files are bellow:
status:
### WordPress Environment ### WordPress address (URL): https://plastikaonline.rs Site address (URL): https://plastikaonline.rs WC Version: 6.5.1 REST API Version: ? 6.5.1 WC Blocks Version: ? 7.4.3 Action Scheduler Version: ? 3.4.0 Log Directory Writable: ? WP Version: 6.0 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: – Language: sr_RS External object cache: – ### Server Environment ### Server Info: nginx/1.16.1 PHP Version: 7.4.8 PHP Post Max Size: 64 MB PHP Time Limit: 60 PHP Max Input Vars: 1000 cURL Version: 7.38.0 OpenSSL/1.0.2l SUHOSIN Installed: – MySQL Version: 5.5.5-10.4.17-MariaDB-1:10.4.17+maria~jessie Max Upload Size: 63 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 6.5.1 WC Database Prefix: 0rDbv4qK_ Ukupna veli?ina baze podataka: 301.69MB Veli?ina baze podataka: 206.00MB Veli?ina indeksa baze podataka: 95.69MB 0rDbv4qK_woocommerce_sessions: Data: 3.52MB + Index: 0.06MB + Engine InnoDB 0rDbv4qK_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 0rDbv4qK_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 0rDbv4qK_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.17MB + Engine InnoDB 0rDbv4qK_woocommerce_order_items: Data: 1.52MB + Index: 0.41MB + Engine InnoDB 0rDbv4qK_woocommerce_order_itemmeta: Data: 5.52MB + Index: 7.55MB + Engine InnoDB 0rDbv4qK_woocommerce_tax_rates: Data: 0.02MB + Index: 0.08MB + Engine InnoDB 0rDbv4qK_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB 0rDbv4qK_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 0rDbv4qK_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 0rDbv4qK_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB 0rDbv4qK_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 0rDbv4qK_actionscheduler_actions: Data: 1.02MB + Index: 0.75MB + Engine InnoDB 0rDbv4qK_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 0rDbv4qK_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 0rDbv4qK_actionscheduler_logs: Data: 1.02MB + Index: 0.44MB + Engine InnoDB 0rDbv4qK_aws_cache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_aws_index: Data: 15.56MB + Index: 13.84MB + Engine InnoDB 0rDbv4qK_cli_cookie_scan: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_cli_cookie_scan_categories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 0rDbv4qK_cli_cookie_scan_cookies: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 0rDbv4qK_cli_cookie_scan_url: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_cli_scripts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 0rDbv4qK_comments: Data: 2.50MB + Index: 1.44MB + Engine InnoDB 0rDbv4qK_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 0rDbv4qK_e_notes: Data: 0.02MB + Index: 0.17MB + Engine InnoDB 0rDbv4qK_e_notes_users_relations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB 0rDbv4qK_e_submissions: Data: 0.02MB + Index: 0.27MB + Engine InnoDB 0rDbv4qK_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB 0rDbv4qK_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 0rDbv4qK_lecm_rewrite: Data: 0.42MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 0rDbv4qK_options: Data: 11.03MB + Index: 1.69MB + Engine InnoDB 0rDbv4qK_postmeta: Data: 56.47MB + Index: 45.11MB + Engine InnoDB 0rDbv4qK_posts: Data: 14.44MB + Index: 6.97MB + Engine InnoDB 0rDbv4qK_rednao_wc_invoice: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_rednao_wc_invoices_created: Data: 48.52MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_rednao_wc_invoices_custom_field: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_rednao_wc_invoice_tr: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_snippets: Data: 0.02MB + Index: 0.05MB + Engine InnoDB 0rDbv4qK_termmeta: Data: 0.06MB + Index: 0.06MB + Engine InnoDB 0rDbv4qK_terms: Data: 0.25MB + Index: 0.28MB + Engine InnoDB 0rDbv4qK_term_relationships: Data: 1.52MB + Index: 1.52MB + Engine InnoDB 0rDbv4qK_term_taxonomy: Data: 0.45MB + Index: 0.38MB + Engine InnoDB 0rDbv4qK_tm_taskmeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB 0rDbv4qK_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 0rDbv4qK_usermeta: Data: 0.09MB + Index: 0.03MB + Engine InnoDB 0rDbv4qK_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB 0rDbv4qK_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 0rDbv4qK_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_wc_customer_lookup: Data: 0.02MB + Index: 0.05MB + Engine InnoDB 0rDbv4qK_wc_download_log: Data: 0.02MB + Index: 0.05MB + Engine InnoDB 0rDbv4qK_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 0rDbv4qK_wc_order_product_lookup: Data: 0.02MB + Index: 0.11MB + Engine InnoDB 0rDbv4qK_wc_order_stats: Data: 0.02MB + Index: 0.17MB + Engine InnoDB 0rDbv4qK_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 0rDbv4qK_wc_product_attributes_lookup: Data: 1.52MB + Index: 1.50MB + Engine InnoDB 0rDbv4qK_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 0rDbv4qK_wc_product_meta_lookup: Data: 3.50MB + Index: 6.27MB + Engine InnoDB 0rDbv4qK_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 0rDbv4qK_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 0rDbv4qK_wc_webhooks: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 0rDbv4qK_wfblockediplog: Data: 1.52MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB 0rDbv4qK_wfconfig: Data: 1.45MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_wfcrawlers: Data: 0.05MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_wffilemods: Data: 15.55MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_wfhits: Data: 0.02MB + Index: 0.05MB + Engine InnoDB 0rDbv4qK_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 0rDbv4qK_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB 0rDbv4qK_wfknownfilelist: Data: 7.52MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 0rDbv4qK_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_wflogins: Data: 0.22MB + Index: 0.06MB + Engine InnoDB 0rDbv4qK_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 0rDbv4qK_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB 0rDbv4qK_wfpklist_template_data: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB 0rDbv4qK_wfstatus: Data: 0.13MB + Index: 0.09MB + Engine InnoDB 0rDbv4qK_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_wpmailsmtp_debug_events: Data: 0.16MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 0rDbv4qK_yoast_indexable: Data: 8.52MB + Index: 4.39MB + Engine InnoDB 0rDbv4qK_yoast_indexable_hierarchy: Data: 0.22MB + Index: 0.31MB + Engine InnoDB 0rDbv4qK_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 0rDbv4qK_yoast_primary_term: Data: 0.08MB + Index: 0.09MB + Engine InnoDB 0rDbv4qK_yoast_seo_links: Data: 0.22MB + Index: 0.13MB + Engine InnoDB ### Post Type Counts ### attachment: 7665 cmm4e_menu: 1 cmm4e_menu_theme: 1 cookielawinfo: 6 custom_css: 1 custom_order_status: 2 elementor_library: 9 elementskit_content: 2 mastermega_content: 3 nav_menu_item: 118 oembed_cache: 3 page: 15 polylang_mo: 1 popup: 1 popup_theme: 8 post: 2 product: 3622 product_variation: 9407 revision: 413 shop_order: 2538 wcs_ruleset: 3 wp_global_styles: 2 yaymail_template: 11 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (33) ### Polylang: od WP SYNTEX – 3.2.3 Disable Bloat for WordPress & WooCommerce: od Disable Bloat – 3.0.0 WooCommerce PDF Invoice Builder Pro: od – 1.2.58 Advanced Woo Search: od ILLID – 2.55 Code Snippets: od Code Snippets Pro – 3.1.0 Prilago?eni brojevi narud?bina za Vukomerc.: od Tyche Softwares – 1.3.5 Prilago?eni brojevi statusa za Vukomerc.: od Tyche Softwares – 2.0.3 Elementor Pro: od Elementor.com – 3.7.1 Elementor: od Elementor.com – 3.6.5 ElementsKit Lite: od Wpmet – 2.6.1 Essential Addons for Elementor: od WPDeveloper – 5.1.4 Site Kit by Google: od Google – 1.75.0 Header and Footer Scripts: od Digital Liberation – 2.2.1 Jetpack Boost: od Automattic – 1.4.2 Jetpack: od Automattic – 10.9.1 Loco Translate: od Tim Whitlock – 2.6.2 Perfect Brands for WooCommerce: od QuadLayers – 2.0.8 WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels: od WebToffee – 3.0.0 Product Sales Report for WooCommerce: od Aspen Grove Studios – 1.5.1 Regenerate Thumbnails: od Alex Mills (Viper007Bond) – 3.1.5 Astra Customizer Reset: od Brainstorm Force – 1.0.5 Transliteracija - WordPress transliteracija: od Ivijan-Stefan Stipi? – 1.8.0 Checkout Field Editor for WooCommerce: od ThemeHigh – 1.6.1 Premmerce Permalink Manager for WooCommerce: od premmerce – 2.3.5 WooCommerce Google Analytics Integration: od WooCommerce – 1.5.9 WooCommerce: od Automattic – 6.5.1 Wordfence Security: od Wordfence – 7.5.10 Yoast SEO: od Yoast Tim – 19.0 WP Image Zoom: od SilkyPress – 1.50 WP Mail SMTP: od WPForms – 3.4.0 WP Super Cache: od Automattic – 1.7.7 Widget Disable: od required – 2.1.0 YayMail - WooCommerce Email Customizer: od YayCommerce – 2.9.3 ### Inactive Plugins (0) ### ### Dropin Plugins (2) ### advanced-cache.php: advanced-cache.php maintenance.php: maintenance.php ### Settings ### API Enabled: – Force SSL: – Currency: RSD (rsd) Currency Position: right_space Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) subscription (subscription) variable (variable) variable subscription (variable-subscription) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – Enforce Approved Product Download Directories: – ### WC Pages ### Prodavnica: #6 - /prodavnica/ Korpa: #7 - /korpa/ Pla?anje: #8 - /zavrsi-kupovinu/ Moj nalog: #9 - /moj-nalog/ Op?ti uslovi kori??enja: #125 - /uslovi-kupovine-i-reklamacije/ ### Theme ### Name: Storefront Version: 4.1.0 Author URL: https://woocommerce.com/ Child Theme: ? – Ako menjate WooCommerce na roditeljskoj temi koju niste sami napravili preporu?ujemo vam da koristite izvedenu temu. Vidite: Kako napraviti izvedenu temu WooCommerce Support: ? ### Templates ### Overrides: – ### Action Scheduler ### Zavr?eno: 2.746 Oldest: 2022-05-03 22:40:24 +0000 Newest: 2022-06-03 14:52:08 +0000 Na ?ekanju: 1 Oldest: 2022-06-08 08:31:21 +0000 Newest: 2022-06-08 08:31:21 +0000 ### Status report information ### Generated at: 2022-06-03 14:59:03 +00:00
Fatal errors:
2022-04-24T00:18:08+00:00 CRITICAL Allowed memory size of 134217728 bytes exhausted (tried to allocate 65536 bytes) u /var/www/vhosts/pullover.rs/plastikaonline.rs/wp-content/plugins/wordpress-seo/src/helpers/indexable-helper.php u redu 112Roxanne, I tried what You said and now I getting this error:
404 Not found
Not Found
The requested document was not found on this server.I getting this error even I try to enter category, open product, open product directly on link. I tried to reupload httacces but the error is same now.
I can add prodcut to cart directly from home page, but when i enter i getting this new error.
What to do now?Hi @caminx197 ,
Thanks for providing an update.
2022-04-24T00:18:08+00:00 CRITICAL Allowed memory size of 134217728 bytes exhausted (tried to allocate 65536 bytes) u /var/www/vhosts/pullover.rs/plastikaonline.rs/wp-content/plugins/wordpress-seo/src/helpers/indexable-helper.php u redu 112
This error indicates your memory limit being exhausted. To resolve this issue you would need to increase your WordPress memory limit.
Below are some methods to try if you would like to do this on your own, alternatively you could reach out to your host provider to do this for you:
Edit your wp-config.php file
Add this to the top, before the line that says, “Happy Blogging”:define(‘WP_MEMORY_LIMIT’, ‘256M’);
Edit your PHP.ini file
If you have access to your PHP.ini file, change the line in PHP.ini
If your line shows 64M try 256M:memory_limit = 256M ;
Maximum amount of memory a script may consume (64MB)Edit your .htaccess file
If you don’t have access to PHP.ini try adding this to an .htaccess file:php_value memory_limit 256M
Please see the below documentation for more information:
https://woocommerce.com/document/increasing-the-wordpress-memory-limit/
Roxanne, I tried what You said and now I getting this error:
404 Not found
Not Found
The requested document was not found on this server.Please confirm that you did the following steps within the guide:
– “To generate a fresh .htaccess file, log in to your WordPress dashboard and click on Settings -> Permalinks.”
– “Without making any changes, click the Save Changes button at the bottom of the page.”Let me know how this goes.
Hello Roxane,
I already have 256mb memory limit.
When i try this:
– “To generate a fresh .htaccess file, log in to your WordPress dashboard and click on Settings -> Permalinks.”
– “Without making any changes, click the Save Changes button at the bottom of the page.”It doesnt generate new httacces and there is 404 error, when I reupload back up and refresh then error is in adding to cart on single product page.
Do you have any sugestion?Hello @caminx197!
I already have 256mb memory limit.
Please try increasing the memory limit to 512MB and see if that helps.
Fatal errors:
2022-04-24T00:18:08+00:00 CRITICAL Allowed memory size of 134217728 bytes exhausted (tried to allocate 65536 bytes) u /var/www/vhosts/pullover.rs/plastikaonline.rs/wp-content/plugins/wordpress-seo/src/helpers/indexable-helper.php u redu 112This error was coming from the plugin named “wordpress-seo”. Please consider disabling that.
Forbidden
You do not have permission to access this document.Can you please login to your site through a different browser and share a screenshot of the error you get. We recommend https://snipboard.io for easily sharing screenshots – please follow the instructions on that page, then paste the URL in this thread.
Look forward to hearing from you.
Hi,
I sent email to hosting to increase memory to 512mb.
https://snipboard.io/Ywq6BU.jpg error when I delete htacces file and try to enter any product or category
https://snipboard.io/NIzlbd.jpg error when I reupload htacces back, and try to add to cart product on single product page.
I fixed this, I haved backup version of website about month ago, and copy and replace httacces from there, reinstalled wordpress and deleted last added products from today and now working fine. I will wait 24h then i will mark subject resolved! ??
Thanks for Your help.
Hi @caminx197 ,
Awesome troubleshooting there!
Glad to hear that the issue has been resolved.
Should anything change within the next 24 hours, please do let me know.
Best,
Thats it works well. Tnx for your assist!
- The topic ‘Forbidden error on single product page’ is closed to new replies.