wp-block-styles | WP Block styles are custom styles | Content Management System library
kandi X-RAY | wp-block-styles Summary
kandi X-RAY | wp-block-styles Summary
WP Block styles are custom styles for existing blocks in the WordPress block editor
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of wp-block-styles
wp-block-styles Key Features
wp-block-styles Examples and Code Snippets
Community Discussions
Trending Discussions on wp-block-styles
QUESTION
I've been struggling for a few days with WooCommerce / Imagick timing out during creation of a product via the API.
Whenever I push up a batch of products (even a small batch) the Imagick thumbnail generation process times out after 70 seconds:
My phpinfo() page shows max_execution_time is set to 600 seconds (which I've definitely set inside plesk) but for whatever reason the Imagick / Thumbnail process seems to ignore that timeout.
I am at a loss as to where the 70 second timeout is coming from and how to control it.
I've tried:
- Specifying recursive php.ini in .htaccess - no change
- Setting php_value in .htaccess - This is no longer supported by Apache/Plesk
- Reading the source code - I get lost very quickly trying to reverse engineer this PHP
Any advice or help would be very much appreciated at this point. Thanks!
Extra Context:
Wordpress Site Health Info
...ANSWER
Answered 2021-Mar-26 at 00:53After a great deal of pain, I have an answer.
Firstly, I had to answer the question: how can a PHP script be ignoring the time limit set in my php.ini file, and my .htaccess files?
Answer: This function allows a script to set its own behaviour and essentially ignore the .ini file https://www.php.net/manual/en/function.set-time-limit.php
Next question, where is this being called? I found this reference in the native WooCommerce Stripe Payment gateway plugin. Even though I dont use the plugin, it was automatically activated and somehow globally affecting the WooCommerce /product/batch api
class-wc-stripe-connect-api.php line 115/116
QUESTION
When a guest user checks out, and he doesn’t choose to create an account, the account is created all the same. Besides this, when the user tries to “register” his account with the email he used to make the purchase, the system logs in even without requesting for a password.
Here I show with screenshots the steps that I took.
Failed solutions- Disabling all plugins, leaving only Woocommerce and the Storefront theme enabled.
- Enable/Disable the option “Allow customers to log into an existing account during checkout” in
Woocommerce > Settings > Account & Privacy
. - Checked this answer but I'm not selling any subscription products.
Other configurations I have enabled in Woocommerce > Settings > Account & Privacy
are the following:
- Allow customers to place orders without an account
- Allow customers to create an account during checkout
- Allow customers to create an account on the “My account” page
- When creating an account, automatically generate an account username for the customer based on their name, surname or email
- When creating an account, automatically generate an account password
And here is the information regarding the WordPress production instance (I also tested the same error in a WAMP instance in Windows):
...ANSWER
Answered 2020-Feb-26 at 10:12Answer from Joey (@jricketts4) in the woocommerce forum:
Hi @pirralhobat,
It took me a minute to grasp onto what you were reporting, but I finally got it. What we’re seeing here is expected behavior and doesn’t actually require the first 2 steps you documented with screenshots.
The reason this is happening is a combination of three settings:
- Allow customers to create an account on the “My account” page
- When creating an account, automatically generate an account username for the customer based on their name, surname or email
- When creating an account, automatically generate an account password
Disabling just one of the following will “fix” the problem you’re not wanting to see:
- Allow customers to create an account on the “My account” page
- When creating an account, automatically generate an account password
Either a) you won’t be allowing your customers to register via the My Account page, or b) you won’t be auto-generating a password during that registration (requiring your customers to enter their own password).
If any of this doesn’t make sense, please let me know!
The problem was indeed one of interpretation of the configurations.
I ended up disabling the “When creating an account, automatically generate an account password” and adding code to make email validation, so that users who used the website in the past to make purchases are validated. This ends up blocking any user that tries to create accounts with emails previously used to make purchases.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install wp-block-styles
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page