Woocommerce customer registration process not working
-
Hi Folks,
I’m running a Woocommerce shop and changed from W3 Total Cache to Swift Performance light a few weeks ago. After configuring Swift with custom cache exceptions for some pages like cart and checkout (and some more) everything seemed to work fine. Even the action-based cache update for single products/posts/etc. is working fine.But there is one issue I can’t get fixed.
If a customer wants to create an customer account the registration process thows following error:Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Swift_Performance_Cache' does not have a method 'clear_cache_after_post' in /www/htdocs/xxxx/xxxx/wordpress/wp-includes/class-wp-hook.php on line 288 Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/xxxx/xxxx/wordpress/wp-includes/class-wp-hook.php:288) in /www/htdocs/xxxx/xxxx/wordpress/wp-includes/pluggable.php on line 1251 Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/xxxx/xxxx/wordpress/wp-includes/class-wp-hook.php:288) in /www/htdocs/xxxx/xxxx/wordpress/wp-includes/pluggable.php on line 1254
The point where the error occours is the point where the customer should be redirected to the woocommerce /my-account page for checking if the account has been activated. In a properly working registration the URL should be /my-account/?account=activate
It is necessary to use e-mail verification during the regisration process because of european laws.So I’m wondering what is Swift doing here. It should not interfere with dynamic requests. Also the option for dynamic caching is disabled.
The complete /my-account area with all sub-pages is excluded from caching. Once by selecting the “My-Account” Page from the dropdown at the “Exclude Pages” Section. But this seems to affect only the parent page, not the sub pages like Orders or Adresses.
Secondly by entering “/my-account” in a Field at “Exclude Content Parts”. This seems to affect the sub pages also. Since this is active all dynamic functions, like displaying new orders or notifications after account changes are working well again.Only the registration still doesn’t work…
So could you please give me advice how to “teach” Swift not to interfere with dynamic stuff at all? Or how to exclude this specific call?
Thanks in advice.
- The topic ‘Woocommerce customer registration process not working’ is closed to new replies.