Carret
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Go Maps (formerly WP Google Maps)] 3 dots keeps circlingThe above error in js has disappeared when I have fixed notice:
Deprecated: Unparenthesized
a ? b : c ? d : eis deprecated. Use either
(a ? b : c) ? d : eor
a ? b : (c ? d : e)in /opt/lampp/htdocs/viveubeda-v5/wp-content/plugins/wp-google-maps/includes/class.rest-api.php on line 668
Changed line 668:
$id = (isset($m[3]) ? ltrim($m[3], '/') : isset($m[2]) ? ltrim($m[2], '/') : -1);
to this:
$id = ( isset($m[3]) ? ltrim($m[3], '/') : (isset($m[2]) ? ltrim($m[2], '/') : -1) );
Now the 3 dots have disappeared and the markers are already displayed.
- This reply was modified 4 years, 2 months ago by Carret.
Forum: Plugins
In reply to: [WP Go Maps (formerly WP Google Maps)] 3 dots keeps circlingHi all,
I think this error is related to the issue:Uncaught Error: SyntaxError: Unexpected token < in JSON at position 0 at Object.params.error (wp-google-maps.combined.js:7750) at i (load-scripts.php?c=0&load[chunk_0]=jquery-core,utils&ver=5.5.3:2) at Object.fireWith [as rejectWith] (load-scripts.php?c=0&load[chunk_0]=jquery-core,utils&ver=5.5.3:2) at x (load-scripts.php?c=0&load[chunk_0]=jquery-core,utils&ver=5.5.3:4) at XMLHttpRequest.c (load-scripts.php?c=0&load[chunk_0]=jquery-core,utils&ver=5.5.3:4)
Forum: Plugins
In reply to: [Reviews and Rating – Google Reviews] PHP Notices: Undefined indexThanks for updating.
I have seen that php notices keep appearing when edit a page where there is a shortcode like this [reviews_rating sort = “date_desc”]PHP Notice: Undefined index: author_url in /opt/lampp/htdocs/test-site/wp-content/plugins/g-business-reviews-rating/index.php on line 4549 PHP Notice: Undefined index: profile_photo_url in /opt/lampp/htdocs/test-site/wp-content/plugins/g-business-reviews-rating/index.php on line 4549 PHP Notice: Undefined index: author_url in /opt/lampp/htdocs/test-site/wp-content/plugins/g-business-reviews-rating/index.php on line 4549 PHP Notice: Undefined index: profile_photo_url in /opt/lampp/htdocs/test-site/wp-content/plugins/g-business-reviews-rating/index.php on line 4549
Avoid php messages:
PHP Notice: Undefined offset: 0 in /wp-includes/plugin.php on line 924
PHP Notice: Undefined offset: 0 in /wp-includes/plugin.php on line 927Change in class-wcnotifications-admin.php:
add_action( 'activated_plugin', $this->plugin_install() );
by
add_action( 'activated_plugin', array( $this, 'plugin_install' ) );
Avoid php message:
PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘do_email_actions’ not found or invalid function name in /wp-includes/class-wp-hook.php on line 287Change in class-wcnotifications-admin.php:
add_action( 'woocommerce_new_order', 'do_email_actions', 10, 2 );
by
add_action( 'woocommerce_new_order', array( $this, 'do_email_actions' ), 10, 2 );
It seems to work fine to me, I hope this can help and does not introduce any other errors.
Hi, yes I have debug mode active, I am testing a site on localhost.
Wocoomerce messages like this:
“shipping_address_1 was called incorrectly. Order properties should not be accessed directly”I have tested that they can be removed in the convert_template() function using:
$this->placeholders['{order_shipping_address_1}'] = $this->object->get_billing_address_1();
instead of
$this->placeholders['{order_shipping_address_1}'] = $this->object->shipping_address_1;
The “PHP Notice: Undefined offset: 0” is very annoying because it fills up the debug.log file non-stop with each load of any page on the web.
Hello.
Something I forgot to comment is that in the description you can see the html tags, in the first screenshot that I attached you can see “ … ”
The currency symbol does not appear to the right of the price, as I have it configured in woocommerce.
As a suggestion, it might be nice if products without stock cannot be added to cart.
For the rest, everything I mentioned works now, a great job.
Thanks.
- This reply was modified 4 years, 8 months ago by Carret.
Screenshot:
Must be the name of the product or service on which the opinion is being given
The “Location Reviewed / Product Reviewed / Item Reviewed” option must be filled so that in the schema data of your capture, the “missing reviewed item name” error disappears.
“Location Reviewed / Product Reviewed / Item Reviewed” = “reviewed item name”
Easy Tetimonials options capture: https://postimg.cc/MftTZd2h
If you have not done, try to complete the option
“Location Reviewed / Product Reviewed / Item Reviewed”
when you add / edit a testimonial
Forum: Plugins
In reply to: [Easy Testimonials] Bugs with latest WordPress/GutenbergSame here, error message “Sorry, you are not allowed to access this page.”
when
– Changed to other option tab
– Click to Flush Cache NowRegards
Forum: Plugins
In reply to: [Grid Plus - Unlimited grid layout] Disable image download option?HI, try this Custom CSS:
.lg-download.lg-icon{display:none;}
Forum: Plugins
In reply to: [YITH WooCommerce Review Reminder] Every hour cron reports this: array ()Hi Fsanya.
I have disabled the internal cron of WordPress and use cron from the hosting. My hosting sends me if there is an error.
In this case the plugin in the file:
yith-woocommerce-review-reminder/includes/class-ywrr-schedule.phphas the line:
error_log (print_r ($ orders, true));
with what I get the result although there is no error.
I have made an arrangement for me in the hourly_schedule() function and now the reminders email are send.
public function hourly_schedule() { global $wpdb; $number = get_option( 'ywrr_hourly_send_number' ); // FIX $number = 10; // FIX $orders = $wpdb->get_results( $wpdb->prepare( " SELECT order_id, order_date, request_items FROM {$wpdb->prefix}ywrr_email_schedule WHERE mail_status = 'pending' AND scheduled_date <= %s ORDER BY id DESC LIMIT {$number} ", current_time( 'mysql' ) ) ); //error_log(print_r($orders, true));
Only I added $number=10; and commented error_log (print_r ($ orders, true)); to not receive notices. With this every hour a maximum of 10 emails are sent out of those that are pending.
Checking the code I see that only emails are sent if there are 12 reminders or more pending. If there are less, they will never be sent.
$number = round($count / 24);
$number is the maximum number of emails that will be sent every hour. And it is recalculated once every 24 hours.
If there are 11 pending reminders or less then the email will stop, as long as there are no more completed orders that are 7 days old or more.
Great to hear that.
And yes, I have made those changes in css. For more than a year now I believe. That capture is from a real web.
Forum: Plugins
In reply to: [Mailchimp for WooCommerce] Prices without VATHi,
Same here, in the automation of abandoned carts, in the emails the prices appear without including taxes, both in the abandoned products and in the recommended products.