Permalinks problem
-
Hi,
I’m having issues with my permalinks using woocommerce 2.6.1.
In Settings->Permalinks->”Product Permalinks”, when I select any other parameter than the default one, I get a 404 error on every woocommerce page : shop, cart, product pages …
The new url of the product pages is the one expected but it can’t reach the page.
Thanks in advance.
Regards
-
Sounds like a plugin conflict to me. Have you tested on an install with just WC active?
Thanks for your response,
Yes, I’ve tested with a new installation of wordpress, I only installed a woocommerce compatible theme (store front) and woocommerce plugin. There are no other plugins installed …Sorry for the lack of information.
The website is not online already I’m working on it only on my computer.
The system status report :### WordPress Environment ### Home URL: http://test.local Site URL: http://test.local WC Version: 2.6.1 Log Directory Writable: ❌ Pour permettre les logs rendez /home/nico/www/test/wp-content/uploads/wc-logs/ accessible en écriture ou définissez un WC_LOG_DIR personnalisé. WP Version: 4.5.3 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: ✔ WP Cron: ✔ Language: fr_FR ### Server Environment ### Server Info: Apache/2.4.18 (Ubuntu) PHP Version: 7.0.4-7ubuntu2.1 PHP Post Max Size: 8 MB PHP Time Limit: 30 PHP Max Input Vars: 1000 cURL Version: N/A SUHOSIN Installed: – MySQL Version: 5.7.12 Max Upload Size: 2 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ❌ Votre serveur n’a pas la classe SoapClient activée - certaines extensions de passerelle utilisant SOAP peuvent ne pas fonctionner correctement. DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 2.6.1 : woocommerce_sessions: ✔ woocommerce_api_keys: ✔ woocommerce_attribute_taxonomies: ✔ woocommerce_downloadable_product_permissions: ✔ woocommerce_order_items: ✔ woocommerce_order_itemmeta: ✔ woocommerce_tax_rates: ✔ woocommerce_tax_rate_locations: ✔ woocommerce_shipping_zones: ✔ woocommerce_shipping_zone_locations: ✔ woocommerce_shipping_zone_methods: ✔ woocommerce_payment_tokens: ✔ woocommerce_payment_tokenmeta: ✔ MaxMind GeoIP Database: ❌ La base de données GeoIP de MaxMind n’existe pas - La géolocalisation ne fonctionnera pas. Vous pouvez la télécharger et l’installer manuellement à partir de http://dev.maxmind.com/geoip/legacy/geolite/ depuis : ### Active Plugins (2) ### WooCommerce: par WooThemes – 2.6.1 WP Log Viewer: par Maxwell Berkel – 1.0.5 ### Settings ### Force SSL: – Currency: DZD (د.ج) Currency Position: right Thousand Separator: . Decimal Separator: , Number of Decimals: 2 ### API ### API Enabled: ✔ ### WC Pages ### Base Boutique: #4 - /boutique/ Panier: #5 - /panier/ Commande: #6 - /commande/ Mon Compte: #7 - /mon-compte/ ### Taxonomies ### Product Types: external (external) grouped (grouped) simple (simple) variable (variable) ### Theme ### Name: Storefront Version: 2.0.4 Author URL: https://www.woothemes.com Child Theme: ❌ – Si vous modifiez WooCommerce sur un thème parent que vous n’avez pas construit personnellement nous vous recommandons d’utiliser un thème enfant. Voir : Comment créer un thème enfant WooCommerce Support: ✔ ### Templates ### Overrides: –Thanks for your help
Do permalinks work for normal pages/posts?
They work only when I choose the “simple” permalink option for the article. When I select another choice, I get a 404 error.
Then this means permalinks are not supported on your install. You need to use default.
What can I do to have them supported ? Should I change some options in my virtualhost file ?
I’m not sure, it depends what you’re running your local server with. We don’t support server config here, it’s not related to WooCommerce.
When you move your site live I doubt it will have the problem. Most hosts support it out of the box.
Okay, thank you for your help !
I finally find out what the problem was. In my VirtualHost file, I had the option : AllowOverride None (on my website folder).
That means that .htaccess file were ignored.
I changed it with : AllowOverride All
So now URL can be modified by Apache mod_rewrite using the rules in the .htaccess file.
The topic ‘Permalinks problem’ is closed to new replies.