403 Error when trying to update Databank
-
Hi,
after updating to Woocommerce to 9.1.1 I get the message Woocommerce Databank needs update.
Trying to update I get an error 403 no permission.
I also get 403 errors at All produkts when I`m trying to Filter my products.
Would be nice if anyone had an Idea.
-
Hi there @chefchiller,
Thanks for reaching out!
after updating to Woocommerce to 9.1.1 I get the message Woocommerce Databank needs update.
If I understand you correctly, you are referring to the database when you say databank. Is that correct?
I updated my test store to the latest version and all updated with no apparent issues. So that we can have a better understanding on your site setup, please share with us your system status report, which you can find via WooCommerce > Status > Get system report > Copy for support.
Also, check for any fatal error logs (if any) under WooCommerce > Status > Logs. You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.
Our Systemreport:
WordPress Environment
WordPress address (URL): https://www.evelynsdottir.de
Site address (URL): https://www.evelynsdottir.de
WC Version: 9.1.1
Legacy REST API Package Version: Auf dieser Website ist das alte REST-API-Plugin nicht installiert.
Action Scheduler Version: ? 3.8.1
Log Directory Writable: ?
WP Version: 6.5.5
WP Multisite: –
WP Memory Limit: 512 MB
WP Debug Mode: –
WP Cron: ?
Language: de_DE
External object cache: – Server Environment
Server Info: Apache/2.4.59 (Unix)
PHP Version: 8.2.20
PHP Post Max Size: 128 MB
PHP Time Limit: 240
PHP Max Input Vars: 4000
cURL Version: 8.8.0
OpenSSL/3.0.14
SUHOSIN Installed: –
MySQL Version: 10.6.15-MariaDB-log
Max Upload Size: 128 MB
Default Timezone is UTC: ?
fsockopen/cURL: ?
SoapClient: ?
DOMDocument: ?
GZip: ?
Multibyte String: ?
Remote Post: ?
Remote Get: ? Database
WC Database Version: 9.0.2
WC Database Prefix: p7s7_
Datenbank-Gesamtgr??e: 45.05MB
Datenbank-Datengr??e: 34.17MB
Datenbank-Indexgr??e: 10.88MB
p7s7_woocommerce_sessions: Daten: 7.52MB + Index: 0.14MB + Engine InnoDB
p7s7_woocommerce_api_keys: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
p7s7_woocommerce_attribute_taxonomies: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
p7s7_woocommerce_downloadable_product_permissions: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB
p7s7_woocommerce_order_items: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
p7s7_woocommerce_order_itemmeta: Daten: 0.05MB + Index: 0.03MB + Engine InnoDB
p7s7_woocommerce_tax_rates: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB
p7s7_woocommerce_tax_rate_locations: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
p7s7_woocommerce_shipping_zones: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
p7s7_woocommerce_shipping_zone_locations: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
p7s7_woocommerce_shipping_zone_methods: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
p7s7_woocommerce_payment_tokens: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
p7s7_woocommerce_payment_tokenmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
p7s7_woocommerce_log: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
p7s7_actionscheduler_actions: Daten: 1.03MB + Index: 0.31MB + Engine InnoDB
p7s7_actionscheduler_claims: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
p7s7_actionscheduler_groups: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
p7s7_actionscheduler_logs: Daten: 0.19MB + Index: 0.16MB + Engine InnoDB
p7s7_commentmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
p7s7_comments: Daten: 0.13MB + Index: 0.09MB + Engine InnoDB
p7s7_e_events: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
p7s7_e_notes: Daten: 0.02MB + Index: 0.17MB + Engine InnoDB
p7s7_e_notes_users_relations: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
p7s7_e_submissions: Daten: 0.05MB + Index: 0.27MB + Engine InnoDB
p7s7_e_submissions_actions_log: Daten: 0.02MB + Index: 0.11MB + Engine InnoDB
p7s7_e_submissions_values: Daten: 0.05MB + Index: 0.03MB + Engine InnoDB
p7s7_links: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
p7s7_mollie_pending_payment: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
p7s7_options: Daten: 5.13MB + Index: 0.20MB + Engine InnoDB
p7s7_postmeta: Daten: 10.42MB + Index: 3.00MB + Engine InnoDB
p7s7_posts: Daten: 4.52MB + Index: 0.42MB + Engine InnoDB
p7s7_rank_math_404_logs: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
p7s7_rank_math_analytics_gsc: Daten: 2.52MB + Index: 3.42MB + Engine InnoDB
p7s7_rank_math_analytics_inspections: Daten: 0.22MB + Index: 0.11MB + Engine InnoDB
p7s7_rank_math_analytics_objects: Daten: 0.11MB + Index: 0.05MB + Engine InnoDB
p7s7_rank_math_internal_links: Daten: 0.08MB + Index: 0.02MB + Engine InnoDB
p7s7_rank_math_internal_meta: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
p7s7_rank_math_redirections: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
p7s7_rank_math_redirections_cache: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
p7s7_termmeta: Daten: 0.09MB + Index: 0.11MB + Engine InnoDB
p7s7_terms: Daten: 0.08MB + Index: 0.09MB + Engine InnoDB
p7s7_term_relationships: Daten: 0.27MB + Index: 0.17MB + Engine InnoDB
p7s7_term_taxonomy: Daten: 0.11MB + Index: 0.09MB + Engine InnoDB
p7s7_tm_taskmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
p7s7_tm_tasks: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
p7s7_usermeta: Daten: 0.06MB + Index: 0.03MB + Engine InnoDB
p7s7_users: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
p7s7_wc_admin_notes: Daten: 0.06MB + Index: 0.00MB + Engine InnoDB
p7s7_wc_admin_note_actions: Daten: 0.08MB + Index: 0.02MB + Engine InnoDB
p7s7_wc_category_lookup: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
p7s7_wc_customer_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
p7s7_wc_download_log: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
p7s7_wc_orders: Daten: 0.02MB + Index: 0.11MB + Engine InnoDB
p7s7_wc_orders_meta: Daten: 0.05MB + Index: 0.03MB + Engine InnoDB
p7s7_wc_order_addresses: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB
p7s7_wc_order_coupon_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
p7s7_wc_order_operational_data: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
p7s7_wc_order_product_lookup: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB
p7s7_wc_order_stats: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
p7s7_wc_order_tax_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
p7s7_wc_product_attributes_lookup: Daten: 0.19MB + Index: 0.14MB + Engine InnoDB
p7s7_wc_product_download_directories: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
p7s7_wc_product_meta_lookup: Daten: 0.06MB + Index: 0.11MB + Engine InnoDB
p7s7_wc_rate_limits: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
p7s7_wc_reserved_stock: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
p7s7_wc_tax_rate_classes: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
p7s7_wc_webhooks: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
p7s7_woocommerce_gzd_dhl_im_products: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
p7s7_woocommerce_gzd_dhl_im_product_services: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
p7s7_woocommerce_gzd_packaging: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
p7s7_woocommerce_gzd_packagingmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
p7s7_woocommerce_gzd_shipmentmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
p7s7_woocommerce_gzd_shipments: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
p7s7_woocommerce_gzd_shipment_itemmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
p7s7_woocommerce_gzd_shipment_items: Daten: 0.02MB + Index: 0.08MB + Engine InnoDB
p7s7_woocommerce_gzd_shipment_labelmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
p7s7_woocommerce_gzd_shipment_labels: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
p7s7_woocommerce_gzd_shipping_provider: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
p7s7_woocommerce_gzd_shipping_providermeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB Post Type Counts
acf-field: 2
acf-field-group: 2
attachment: 1001
elementor_library: 16
elementor_snippet: 3
nav_menu_item: 34
page: 19
post: 28
product: 252
revision: 298
rm_content_editor: 1
shop_coupon: 1
shop_order_placehold: 18
wp_global_styles: 1
wp_navigation: 1
wp_template: 2 Security
Secure connection (HTTPS): ?
Hide errors from visitors: ? Active Plugins (14)
Advanced Custom Fields: von WP Engine – 6.3.3
consentmanager: von consentmanager – 3.0.6
Elementor Pro: von Elementor.com – 3.22.1
Elementor: von Elementor.com – 3.22.3
Embedder für Google Bewertungen: von ReviewsEmbedder.com – 1.6.1
Rechtstexte-Schnittstelle der IT-Recht Kanzlei: von IT-Recht Kanzlei – 1.0.8
Limit Login Attempts Reloaded: von Limit Login Attempts Reloaded – 2.26.11
Wartungsmodus für WooCommerce: von netfett – 1.2
Mollie Payments for WooCommerce: von Mollie – 7.6.0
Rank Math SEO: von Rank Math – 1.0.223
CTX Feed: von WebAppick – 6.5.6
Germanized für WooCommerce: von vendidero – 3.17.0
WooCommerce: von Automattic – 9.1.1
WP-Optimize - Clean, Compress, Cache: von David Anderson
Ruhani Rabin
Team Updraft – 3.4.2 Inactive Plugins (0) Dropin Plugins ()
advanced-cache.php: advanced-cache.php Must Use Plugins (1)
WordPress automation by Installatron: von – Settings
API Enabled: –
Force SSL: ?
Currency: EUR (€)
Currency Position: right_space
Thousand Separator: .
Decimal Separator: ,
Number of Decimals: 2
Taxonomies: Product Types: external (external)
grouped (grouped)
simple (simple)
variable (variable)
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: ?
HPOS feature enabled: ?
Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore
HPOS data sync enabled: – Logging
Enabled: ?
Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2
Retention period: 30 Tage
Level threshold: –
Log directory size: 12 MB WC Pages
Shop-Basis: #129 - /shop-evelynsdottir
Warenkorb: ? Die Seite enth?lt nicht den [woocommerce_cart]-Shortcode oder woocommerce/cart-Block.
Kasse: ? Die Seite enth?lt nicht den [woocommerce_checkout]-Shortcode oder woocommerce/checkout-Block.
Mein Konto: #97 - /my-account
Allgemeine Gesch?ftsbedingungen: #94 - /agb Theme
Name: Hello Elementor Child
Version: 1.0.0
Author URL:
Child Theme: ?
Parent Theme Name: Hello Elementor
Parent Theme Version: 3.1.0
Parent Theme Author URL: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
WooCommerce Support: ? Templates
Overrides: hello-elementor-child/woocommerce/emails/customer-processing-order.php Admin
Enabled Features: activity-panels
analytics
product-block-editor
coupons
core-profiler
customize-store
customer-effort-score-tracks
import-products-task
experimental-fashion-sample-products
shipping-smart-defaults
shipping-setting-tour
homescreen
marketing
mobile-app-banner
navigation
onboarding
onboarding-tasks
product-custom-fields
remote-inbox-notifications
remote-free-extensions
payment-gateway-suggestions
shipping-label-banner
subscriptions
store-alerts
transient-notices
woo-mobile-welcome
wc-pay-promotion
wc-pay-welcome-page
launch-your-store
Disabled Features: experimental-blocks
minified-js
pattern-toolkit-full-composability
product-pre-publish-modal
printful
settings
async-product-editor-category-field
product-editor-template-system
Daily Cron: ? Next scheduled: 2024-07-13 17:53:04 +02:00
Options: ?
Notes: 73
Onboarding: completed Action Scheduler
Canceled: 72
Oldest: 2024-06-23 11:51:08 +0200
Newest: 2024-07-07 17:15:54 +0200
Complete: 556
Oldest: 2024-06-23 11:17:10 +0200
Newest: 2024-07-12 21:20:47 +0200
Failed: 42
Oldest: 2024-02-12 17:16:00 +0100
Newest: 2024-05-29 13:54:57 +0200
Pending: 3
Oldest: 2024-07-13 04:11:09 +0200
Newest: 2024-07-14 11:27:41 +0200 Status report information
Generated at: 2024-07-12 23:46:55 +02:00Hi again @chefchiller,
Thanks for reaching out with your SSR.
Looking at the report, I could not notice any discrepancies, however, I’d like to share that there is a new WooCommerce version, 9.1.2, could you please test it on a staging site if updating helps solve this issue?
You can find steps to creating a staging site from this guide.
Looking forward to your reply.
Updated to 9.1.2, but still get error 403 when i want to use search funktion in products. Also get 403 when I want to change something in categories. I already heard of three other users having these issues, but all are hosted by Strato. Since there are no other users having these problems I start to think it`s a Strato problem.
Hi @chefchiller
This issue seems to be related to your hosting provider, Strato, as you mentioned that other users hosted by Strato are experiencing the same problem.
I suggest reaching out to Strato’s support team to check if any server-side restrictions are causing these 403 errors. In some cases, security settings or
mod_security
rules can cause such issues.Additionally, it might be beneficial to check your site’s
.htaccess
file. Sometimes, incorrect rules or configurations in this file can lead to similar issues. Please ensure that the file’s rules are correct and up to date.If the issue persists after these steps, please get back to us with any additional information or error messages, and we’ll be happy to assist you further.
Thanks!
As expected, Strato said they can
t see any problems on their side. And the don
t have other users having those problems. The only thing they mentioned is a php warning that is flooding my Logfiles:15.07.2024 08:27:58 evelynsdottir.de [client 54.236.1.0] AH01215: PHP Warning: Constant WP_MEMORY_LIMIT already defined in /mnt/web221/a1/28/511285728/htdocs/STRATO-apps/wordpress_02/app/wp-config.php on line 87: /home/strato/http/premium/rid/57/28/511285728/htdocs/STRATO-apps/wordpress_02/app/index.php
I
m investigating this, but I don
t think thats the solution.I changed .htaccess to standard default file but still get 403 errors when I want to
-use filters and/or sorting options in “all products”
(https://www.evelynsdottir.de/wp-admin/edit.php?post_type=product works,
-try to delete a product
-try to edit any category
(https://www.evelynsdottir.de/wp-admin/edit-tags.php?taxonomy=product_cat&post_type=product works
On the verge of going crazy
Chefchiller
Hi @chefchiller
Thanks for sharing further detailed information.
The PHP warning you’re seeing in your log files is related to the WP_MEMORY_LIMIT being defined more than once in your WordPress setup. This usually happens when it’s defined in both your wp-config.php file and your PHP.ini file. You might need to check both files and ensure it’s only defined once. However, you’re correct that this warning shouldn’t be causing the 403 errors you’re experiencing.
The 403 errors you’re seeing are typically related to permissions. This could be due to a variety of reasons such as file permissions, server configurations, or even security plugins.
Since you’ve already checked your .htaccess file and reached out to your hosting provider, the next step would be to check if a plugin or theme is causing this issue. You can do this by temporarily deactivating all your plugins and switching to a default theme like Twenty Twenty-Four. If the issue is resolved, reactivate each plugin one by one until you find the one causing the issue.
If the issue persists, take a backup and try reinstalling WooCommerce to see whether it helps or not.
Let us know how that goes. Looking forward to helping you.
Thanks for ur reply,
deactivated all plugins except Woocommerce – 403
changed theme to twenty-tentyfour – still 403
So the last thing would be to reinstall Woocommerce.
Does a reinstallation of Woocommerce have any effects on my settings or products in Woocommerce ?
Do I have to think of something special before reinstalling ?
To reinstall, I download the Woocommerce file and just add it as a new plugin from zip-file ?
Thanks for ur help
Chefchiller
Hi @chefchiller,
Reinstalling WooCommerce should not affect your settings or products as they are stored in your database, not within the plugin itself.
However, as a best practice, it is always wise to take a full backup of your site (including your database) before making such changes.
Before reinstalling, make sure to deactivate and delete the current WooCommerce plugin from your WordPress plugins page.
To reinstall WooCommerce, you’re correct. You would download the WooCommerce .zip file from the WordPress repository and then upload it as a new plugin on your WordPress site. After uploading, ensure to activate the plugin.
Please let us know how it goes.
The Problem seems to be the Apache-version of our provider STRATO.
The solution seems to be described here:
https://stackoverflow.com/questions/78729429/403-forbidden-when-url-contains-get-with-encoded-question-mark-unsafeallow3fThe solution could be to add the flag [UnsafeAllow3F] to RewriteRules in .htaccess like
RewriteRule Pattern Substitution [flags,UnsafeAllow3F]Maybe someone could give me a hint how to realize this because the .htaccess part of WP should not be changed by hand, but by WP-filters.
Would be great if someone could help
ChefchillerHi @chefchiller
To add the
[UnsafeAllow3F]
flag to your RewriteRules, you could use themod_rewrite_rules
filter. This filter allows you to modify the array of rewrite rules that WordPress generates.Although writing or providing custom code is not within the scope of our support policy, here’s an example to understand it:
function custom_rewrite_rules($rules) {
$new_rules = array();
foreach($rules as $rule => $rewrite) {
$new_rules[$rule] = $rewrite . '[UnsafeAllow3F]';
}
return $new_rules;
}
add_filter('mod_rewrite_rules', 'custom_rewrite_rules');Worth to read:
- https://weplugins.com/wordpress/how-to-use-mod_rewrite_rules-filter-in-wordpress/
- https://developer.www.ads-software.com/reference/hooks/mod_rewrite_rules/
- https://konstantin.blog/2009/adding-mod_rewrite-rules-to-htaccess-in-wordpress/
If you are still need assistance, we recommend asking development questions on the #developers channel of the WooCommerce Community Slack. Many of our developers hang out there and will be able to offer insights into your question. You can also seek help from the following:
- A local web developer
- Codeable.io
- WooExperts
I wish I could help more, but hopefully, this gets you going in the right direction to get the job done.
-
This reply was modified 4 months, 1 week ago by
Shameem R. a11n. Reason: code format
OK, the problem spreads wider. Hope Strato moves their asses now.
https://forum.t3academy.de/d/507-neues-problem-bei-strato-create-content-element-forbidden-error-403
Thanks fo ur reply @shameemreza , I hope Strato gets the problems fixed quickly now after more and more people realize these Errors. (see my latest post).
I also encounter these problems (I use Strato too) and called with them 2 times. They do believe (for now) that it’s not their problem and that I should fix it on my side. I will follow this post for possible solutions. But I hope Strato will fix the problem on their side since more and more customers have this issue.
Strato schein sich in Bewegung zu setzen, hier ein Teil der letzten Antwort:
vielen Dank für Ihre Anfrage und das Feedback.
Wir m?chten Ihnen mitteilen, dass uns der Fehler seit den frühen Morgenstunden bekannt ist. Dieser Fehler ist auf ein kürzlich durchgeführtes Apache-Update zurückzuführen, wie Sie bereits richtig vermutet haben.
Unser Team arbeitet intensiv an einer L?sung für das Problem, damit Ihre Webseite bald wieder einwandfrei funktioniert
- You must be logged in to reply to this topic.