Mariusz Szatkowski
Forum Replies Created
-
Forum: Plugins
In reply to: [HyperDB] Uncaught Error: Call to undefined function wp_kses()Thanks but it did not help at all. And this line is at 28.
EDIT:It finally worked. Line 28:
require_once ABSPATH . WPINC . '/class-wpdb.php';
- This reply was modified 7 months, 4 weeks ago by Mariusz Szatkowski.
Forum: Plugins
In reply to: [WP Extended Search] API request changed?Nailed it.
You need to add
&wpessid
parameter to make it work again- This reply was modified 1 year, 9 months ago by Mariusz Szatkowski.
Ok, I found the reason. It conflicts not with WP but with https://www.ads-software.com/plugins/flying-scripts/
Nevermind then ??Forum: Plugins
In reply to: [The Events Calendar] Critical Error on Events PagePlease try to lower the PHP version to make it work. :/
We’re all waiting for an official update.Here is the only diff I found:
https://drive.google.com/file/d/1t2GLy0aEDw19shDHI0XLinwGFtXNZ994/view?usp=sharingThe last notification I got in error_log was 2h ago, before I made a process. Maybe it was bot, trying to access a page that I didn’t meet?
[17-Sep-2020 14:07:27 UTC] PHP Fatal error: Uncaught Error: Call to undefined function ZGllKHBpKCkqNDIpOw==() in /home/fun/public_html/wp-content/plugins/multibanco-ifthen-software-gateway-for-woocommerce/class-wc-multibanco-ifthen-webdados.php:5 Stack trace: #0 /home/fun/public_html/wp-content/plugins/multibanco-ifthen-software-gateway-for-woocommerce/multibanco_ifthen_for_woocommerce.php(42): require_once() #1 /home/fun/public_html/wp-includes/class-wp-hook.php(287): mbifthen_init('') #2 /home/fun/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #3 /home/fun/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #4 /home/fun/public_html/wp-settings.php(409): do_action('plugins_loaded') #5 /home/fun/public_html/wp-config.php(81): require_once('/home/fun/...') #6 /home/fun/public_html/wp-load.php(37): require_once('/home/fun/...') #7 /home/fun/public_html/wp-blog-header.php(13): require_once('/home/fun/...') #8 /home/fun/public_html/index.php in /home/fun/public_html/wp-content/plugins/multibanco-ifthen-software-gateway-for-woocommerce/class-wc-multibanco-ifthen-webdados.php on line 5
I went through all the process with WP_DEBUG activated and I couldn’t spot the issue.
So that’s weird, the notification is delivered to the administrator’s email.
I’ll try to follow what might cause the problem.
Thanks!
Hi Marco,
Thank you for reply.
This message doesn’t affect the functionality of the page but the admin of the website receives it in the email notification.
If I change WP_DEBUG to true in wp-config.php, probably I’d get the same error.
I’ll try to use the plugin and follow your recommendations.I’ll update you afterwards.
Thanks.
MForum: Plugins
In reply to: [Crayon Syntax Highlighter] Plugin breaks with php 7.3Thanks for the hint!
Forum: Plugins
In reply to: [WooCommerce] WooCommerce Tag…Try
<?php echo wc_get_product_tag_list( $product->get_id(), '', '<ul class="tag_styles"><li class="$product">', '</li></ul>' ); ?>
or retrive the product id to get a class name inside your code.Forum: Plugins
In reply to: [WooCommerce] WooCommerce Tag…I’m sorry I can’t make it work
Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /2/product/small-case-dc-171305x/. Reason: Error reading from remote server
Forum: Plugins
In reply to: [WooCommerce] WooCommerce Tag…Yes you can paste it to customizer.
PHP code can be included in file whre you want to display those tags of your child theme.Forum: Plugins
In reply to: [WooCommerce] searching for price range in myPHPAdminHi Andy,
You can try this query:SELECT DISTINCT ID, post_parent, post_type FROM $wpdb->posts INNER JOIN $wpdb->postmeta ON ID = post_id WHERE post_type IN ( 'product', 'product_variation' ) AND post_status = 'publish' AND meta_key = '_price' AND meta_value BETWEEN 7000 AND 9000
Otherwise you can try to build a function like:
$query = array( 'post_status' => 'publish', 'post_type' => 'product', 'posts_per_page' => 10, 'meta_query' => array( array( 'key' => '_price', 'value' => array(7000, 9000), //or just set 8000 here 'compare' => 'BETWEEN', 'type' => 'NUMERIC' ) ) ); $wpquery = WP_Query($query);
And try to display it on your page.
I hope that will help.
M
Forum: Plugins
In reply to: [WooCommerce] How to insert a div only in the HomepageHi Lukasz,
You can build a function to display it like:function jk_storefront_header_content(){ if(is_home() || is_front_page()) { echo 'display hero div or do_shortcode below'; } }; add_action( 'storefront_before_content', 'jk_storefront_header_content', 40 );
I hope that will help.
MForum: Plugins
In reply to: [WooCommerce] Backend Customization@zenixnet
Sure,
You may add a function that swaps this particular text for a certain product like:
This can be done using the built in WordPress add filter function. For example, if we had a product with an id of 55 and we wanted to change the text of the “Sale Price Text” field to “Your new Sale Price Text”, the function would like this:function change_before_sale_price( $woo_rrp_before_sale_price ) { global $post; if ( '55' == $post->ID ) : return 'Your new Sale Price Text'; else : return $woo_rrp_before_sale_price; endif; } add_filter( 'woo_rrp_before_sale_price', 'change_before_sale_price' );
Otherwise, you can use this plugin to modify it from admin panel eg: https://www.ads-software.com/plugins/woocommerce-rrp/
I hope that will help you!