daymobrew
Forum Replies Created
-
Brilliant.
Forum: Plugins
In reply to: [WooCommerce] Relocate coupon notices on cart page?While Jon’s situation is likely a rare case, adding flexibility to WooCommerce is always useful.
Maybe move ‘.cart-collaterals’ into a wp_localize_script() call. Even better would be to allow ‘.cart-collaterals’ to be filtered before the wp_localize_script() call.
I’d be game for writing a patch for this.
Thanks for explaining.
I managed to get something going using Ninja Forms.
https://www.damiencarbery.com/2018/05/product-enquiry-form-with-ninja-forms/That is understandable. I have reverted to 7.4.8. Thank you for your quick response.
Forum: Plugins
In reply to: [Easy Social Icons] Warning in PHP 7.2Brilliant.
Forum: Plugins
In reply to: [Easy Social Icons] Warning in PHP 7.2I think the warnings are related to quotes – the editor changes the single and double quotes to opening and closing quotes.
I copied my code to: https://pastebin.com/vGibW4RE
and I fixed the quotes. Please try that.Forum: Plugins
In reply to: [Easy Social Icons] Warning in PHP 7.2Here’s a simpler version that uses an anonymous function:
add_action( ‘widgets_init’, function() { register_widget( “Cnss_Widget” ); } );
- This reply was modified 8 years, 1 month ago by daymobrew. Reason: Include anonymous function version
Forum: Plugins
In reply to: [Easy Social Icons] Warning in PHP 7.2The code uses create_function() for the ‘widgets_init’ action.
The following fix worked for me:
At the bottom of easy-social-icons.php change:
add_action( ‘widgets_init’, create_function( ”, ‘register_widget( “Cnss_Widget” );’ ) );to:
//add_action( ‘widgets_init’, create_function( ”, ‘register_widget( “Cnss_Widget” );’ ) );
add_action( ‘widgets_init’, ‘cnss_widgets_init’ );
function cnss_widgets_init() {
register_widget( “Cnss_Widget” );
}Oh yeah, the reason I ask for this enhancement is so that I can view the message and then mark it as spam or trash.
At the moment I have to return to the list view to mark is as spam.Forum: Plugins
In reply to: [CMB2] Cannot have two taxonomy_* fieldsBrilliant, thank you.
Brilliant.
Thanks for your patience when getting access to the site and for checking stuff out.
I look forward to 1.3.5.As this is a contact form, I don’t know the email addresses that will be submitted.
CF7 has set the ‘From’ to be ‘wordpress@mydomain.com’ (and I have added this to the “Don’t Replace ‘From” field but still the ‘From’ in the settings (sales@mydomain.com) is shown.
It also sets ‘Reply-To’ to me the email address of the person that completes the form – that *is* working.I think I have found a workaround.
I am setting event_name, post_content, location_id, event_start_date, event_end_date, event_start_time, event_end_time, start and end fields of EM_Event.
When I add:
$EM_Event->event_rsvp = false;
then it works.Maybe this field should be initialised by Events Manager or maybe the new code mentioned above is causing a problem, preventing it from be initialised.
I ran it again and it generated an error message:
[06-Dec-2017 14:03:46 UTC] Query: INSERT INTO
em_em_events(post_id,event_slug,event_owner,event_name,event_start_time,event_end_time,event_all_day,event_start_date,event_end_date,post_content,event_rsvp,event_rsvp_date,event_rsvp_time,event_rsvp_spaces,event_spaces,location_id,recurrence_id,event_status,event_private,blog_id,group_id,recurrence,recurrence_interval,recurrence_freq,recurrence_days,recurrence_byday,recurrence_byweekno,recurrence_rsvp_days,event_date_created) VALUES (17, ’em-test-02′, ‘1’, ‘EM Test – 02′, ’12:02:14′, ’12:02:14’, NULL, ‘2017-12-07’, ‘2017-12-07’, ‘<p>This is the description of EM Test event.</p><p>It is on Thursday 07 December 2017 pm31 12:02:14.</p>’, NULL, NULL, ’00:00:00′, NULL, NULL, ‘1’, NULL, ‘1’, ‘0’, NULL, NULL, ‘0’, NULL, NULL, ‘0’, NULL, NULL, NULL, ‘2017-12-06 14:03:23’)
[06-Dec-2017 14:03:46 UTC] WordPress database error Column ‘event_rsvp’ cannot be null for query INSERT INTOem_em_events(post_id,event_slug,event_owner,event_name,event_start_time,event_end_time,event_all_day,event_start_date,event_end_date,post_content,event_rsvp,event_rsvp_date,event_rsvp_time,event_rsvp_spaces,event_spaces,location_id,recurrence_id,event_status,event_private,blog_id,group_id,recurrence,recurrence_interval,recurrence_freq,recurrence_days,recurrence_byday,recurrence_byweekno,recurrence_rsvp_days,event_date_created) VALUES (17, ’em-test-02′, ‘1’, ‘EM Test – 02′, ’12:02:14′, ’12:02:14’, NULL, ‘2017-12-07’, ‘2017-12-07’, ‘<p>This is the description of EM Test event.</p><p>It is on Thursday 07 December 2017 pm31 12:02:14.</p>’, NULL, NULL, ’00:00:00′, NULL, NULL, ‘1’, NULL, ‘1’, ‘0’, NULL, NULL, ‘0’, NULL, NULL, ‘0’, NULL, NULL, NULL, ‘2017-12-06 14:03:23’) made by EM_Event->save, EM_Event->save_meta
[06-Dec-2017 14:03:46 UTC] PHP Notice: Undefined variable: result_tickets in C:\xampp\htdocs\wordpress\wp-content\plugins\events-manager\classes\em-bookings.php on line 315
[06-Dec-2017 14:03:46 UTC] PHP Stack trace:
[06-Dec-2017 14:03:46 UTC] PHP 1. {main}() C:\xampp\htdocs\wordpress\create-em-event.php:0
[06-Dec-2017 14:03:46 UTC] PHP 2. EM_Event->save() C:\xampp\htdocs\wordpress\create-em-event.php:75
[06-Dec-2017 14:03:46 UTC] PHP 3. EM_Event->save_meta() C:\xampp\htdocs\wordpress\wp-content\plugins\events-manager\classes\em-event.php:852
[06-Dec-2017 14:03:46 UTC] PHP 4. EM_Bookings->delete() C:\xampp\htdocs\wordpress\wp-content\plugins\events-manager\classes\em-event.php:996This block of code in classes/em-event.php has changed quite a bit since 5.7.3 (“Update Post Meta” comment at top)
https://plugins.trac.wordpress.org/browser/events-manager/tags/5.8.1.1/classes/em-event.php#L891
It has gone from 16 lines of code to 38 lines and ‘event_rsvp’ is one of the fields in the new code.I mean, no error messages in the logs.