solagirl
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Fastest Cache] Fatal error when preloading the cacheThe website is a woocommerce website on cloudways, the server resource is a bit tight without varnish cache, so I still hope it can be fixed. But before that I will disable the feature, thanks for the reply.
Forum: Themes and Templates
In reply to: [Astra] Single Post – Feature Image NOT showI’m facing the same issue. I think this is a bug of the theme.
The setting which controls display of single post feature image is named
ast-dynamic-single-post-structure
.If I import a website then everything works great. If I start anew, I can’t find anyway to update this value. It is just empty. Then fallback to the default value of get_option() which only contains post title and post meta, no post image.
Anyway, I fixed it by adding the code below to my theme’s function.php.
add_filter( 'astra_get_option_ast-dynamic-single-post-structure', function( $value ){ array_unshift( $value, 'ast-dynamic-single-post-image'); return $value; });
Hi,
Thank you for the reply. I just found out that the issue is not that simple. Thesgo_ignored_query_params
andsgo_bypass_cookies
filters are not working.1. I think the logic of the function below is incorrect. First the
bypass_query_params
is supposed to beignored_query_params
.
Secondly, thebypass_query_params
variable is currently empty, as a result the cache will be bypassed as long as there is a parameter in the url.public function has_ignore_query_params() { // Iterate through the query array and unset the unneeded params. foreach ( $_GET as $param => $value ) { if ( ! in_array( $param, $this->bypass_query_params, true ) ) { return true; } } return false; }
I think the correct logic should be like below,
public function has_ignore_query_params() { // Iterate through the query array and unset the unneeded params. foreach ( $_GET as $param => $value ) { if ( in_array( $param, $this->ignored_query_params, true ) ) { return true; } } return false; }
2. The two filters I mentioned above are only used to create the config file, when generating cache files, they are not used at all. So no matter what I passes to the filter, it won’t work.
To bypass cache-spawn process by cookie or parameters I have to directly modify the two variables below in File_Cacher.phpprivate $bypass_cookies = array( 'woocommerce_items_in_cart', 'edd_items_in_cart', 'wordpress_logged_in_', 'wpSGCacheBypass', 'comment_author_', 'my_cookie' );
private $bypass_query_params = array('my_param');
If I add my cookie and parameters to those two, it will work as expected.
I’m using a currency switcher for a woocommerce website and I don’t want pages cached when the currency is not the default one. This is my situation, please help me out.
Thank you for your help.
Hello @adamdunnage, thank you for your help, I will see what I can do on my end and mark this thread solved.
Best regards
Hi Simeon,
Thanks for the reply, I fully understand the situation. It’s my client who keeps thinking there was something wrong with the website. Your reply is quite helpful.
Thanks for the great work.
Forum: Plugins
In reply to: [Woocommerce Partial Shipment] WordPress Fatal Error?Hello,
I was about to report the same error. Lucky to see that you have posted it.The error happens when you deleted your products and made $product null. To fix it, just be sure to check $product exists before using it.
Hope this get fixed soon.
Thank you very much.
Hi,
The sandbox is not for global alipay either. However, I haven’t actually use that for myself.I am only sure that you can’t test the website integration with that.Of course I’m interested in coding, that’s what I do. As I mentioned I am with a team, and if you are interested please do learn more about us at https://www.codingpet.com/ and maybe leave us a message about your websites.
1. After login, the transaction records are right in front of you labeled as “交易记录”, you should be able to find some orange buttons that say “确认收货” or “等待发货”. The buttons in orange color indicate that you need to take some actions.
2. I’m not sure of your business type, the direct payment requires you have a company registered in China. If you do have such an account, you need to apply for the direct payment service in your alipay account. If it gets approved, you can use this method. The ILLEGAL_PARTNER_EXTRAFACE error means you are trying to use a service that is not enabled for you.
3. Sadly there is no sandbox account for alipay.com in China, well most Chinese companies just don’t provide such useful features for the Chinese. The sandbox you mentioned is not for such cases. But if you use alipay’s service for people from other countries(global.alipay.com), you do get a sandbox but that’s another story. Because you need to register a new account for that and use a paid plugin called Alipay Cross Border Payment Gateway which has nothing to do with me. For testing, the best way for now is to pay 0.01 RMB.
BTW, I’m the author of the alipay for woocommerce plugin. Just use the team account to publish it.
Hi, are you using escrow payment method? If yes then has your friend released the money to you from his/her alipay account?
The way of alipay dealing with payment is quite different from payment methods like paypal.
When your friend placed an order and made the payment on your store, the money didn’t go to your account, instead it was sent to Alipay and supervised by Alipay.
Your friend must go to his/her alipay account and confirms that the order is received. Then the money can be released to you, then you can actually see the 1.99 RMB in your account.
For now you should be able to find the transition record in your alipay account, although the money is still held by Alipay.
I’m sorry but alipay’s process is really difficult for foreigners to understand. I once explained it to one of my client with several emails and illustrators and he took days to know what really happened.
Forum: Plugins
In reply to: [Contact Form 7, BWP reCaptcha] Fatal error after updateI got this issue today with WordPress 4.1, and I solved it by going to “BWP reCAPT->General options”.
At the bottom of the page find section “Contact Form 7 Integration”, from the dropdown menu select the Use “recaptcha” shortcode tag option.Forum: Plugins
In reply to: Any plugin like "Elegant Builder 2.4"?I don’t recommend elegant builder, not because of its price but the way it works is out of date.
You should try Visual Composer which is more modern, easier to use and much promising.
Forum: Plugins
In reply to: [CKEditor for WordPress] annoying alert on click publish in postJust ignore the alert, nothing will be lost. Since the author doesn’t update this plugin anymore, I guess you can either live with it or switch to another editor.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Not working in WP 3.7The new update fixed the problem. Love this plugin!
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Not working in WP 3.7Same here, every search generates a sql error loged in error_log, no search results.
Forum: Plugins
In reply to: [WooCommerce] WooCommerce Multi Currency?Is this plugin compatible with cache plugins like wp super cache?
Thanks.