Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter criself

    (@criself)

    I don’t think there are other processes modifying the wp-config.php.

    I have a WP_CACHE variable set to true but not WPCACHEHOME. I see the troubleshooting states:

    make sure WPCACHEHOME points at the right place.

    But I don’t know what the “right place” should be. Should it be ./wp-content/cache?

    Thread Starter criself

    (@criself)

    Actually I tested this further after upgrading to 4.6.10.1 today.
    I’m back to handling my event url update like this. It won’t delete the date on the event but I still lost venue and organizer so I need to pass those in on the update.

    
    $url = tribe_get_event_website_url($eventId);
                $post_url = get_the_permalink($post->ID);
                if (! isset($url) || $post_url != $url) {
                    $venue_id = tribe_get_venue_id($eventId);
                    $organizer_id = tribe_get_organizer_id($eventId);
                    $rc = tribe_update_event($eventId, 
                        array("EventURL" => $post_url,
                            "Venue" => array("VenueID" => $venue_id),
                            "Organizer" => array("OrganizerID" => $organizer_id))
                        );
                }
    
    Thread Starter criself

    (@criself)

    Thread Starter criself

    (@criself)

    So I’ve been backed down to the version 4.5.12.3 for a few weeks now because none of the release notes have mentioned anyone looking at this bug. I figured it would be a big deal that an API call deletes the dates of an event entry considering that’s the key feature of the software. Are there no plans to fix this API call?

    Yes, the settings page renders now. Thanks!

    Sorry that’s hard to read:

    [03-Jun-2017 23:52:19 UTC] PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in /Users/cris/Sites/www.mysite.dev/wp-content/plugins/simple-csv-xls-exporter/settings.php on line 364 and exactly 2 expected in /Users/cris/Sites/www.mysite.dev/wp-admin/includes/template.php:1321
    Stack trace:
    #0 /Users/cris/Sites/www.mysite.dev/wp-content/plugins/simple-csv-xls-exporter/settings.php(364): do_settings_fields('wp_ccsve-group')
    #1 /Users/cris/Sites/www.mysite.dev/wp-includes/class-wp-hook.php(298): SIMPLE_CSV_EXPORTER_SETTINGS->plugin_settings_page('')
    #2 /Users/cris/Sites/www.mysite.dev/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('', Array)
    #3 /Users/cris/Sites/www.mysite.dev/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #4 /Users/cris/Sites/www.mysite.dev/wp-admin/admin.php(222): do_action('tools_page_simp...')
    #5 /Users/cris/Sites/www.mysite.dev/wp-admin/tools.php(10): require_once('/Users/c in /Users/cris/Sites/www.mysite.dev/wp-admin/includes/template.php on line 1321

    I’m experiencing the same error and am using PHP 7.1. The final line of the trace is odd.
    Stack trace:

     [03-Jun-2017 23:52:19 UTC] PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in /Users/cris/Sites/www.mysite.dev/wp-content/plugins/simple-csv-xls-exporter/settings.php on line 364 and exactly 2 expected in /Users/cris/Sites/www.mysite.dev/wp-admin/includes/template.php:1321
    Stack trace:
    

    #0 /Users/cris/Sites/www.mysite.dev/wp-content/plugins/simple-csv-xls-exporter/settings.php(364): do_settings_fields(‘wp_ccsve-group’)

     #1 /Users/cris/Sites/www.mysite.dev/wp-includes/class-wp-hook.php(298): SIMPLE_CSV_EXPORTER_SETTINGS->plugin_settings_page('')
    

    #2 /Users/cris/Sites/www.mysite.dev/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array)

     #3 /Users/cris/Sites/www.mysite.dev/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    

    #4 /Users/cris/Sites/www.mysite.dev/wp-admin/admin.php(222): do_action(‘tools_page_simp…’)
    ` #5 /Users/cris/Sites/www.mysite.dev/wp-admin/tools.php(10): require_once(‘/Users/c in /Users/cris/Sites/www.mysite.dev/wp-admin/includes/template.php on line 1321

    • This reply was modified 8 years, 12 months ago by criself.
    Thread Starter criself

    (@criself)

    Since 4.2.4 didn’t fix the problem, I added a workaround. I don’t consider this a fix, because I don’t think updating an event without attaching the linked venues or organizations should be considered an update to the event to remove the venues or organizations. Basically I’m fetching the venue and organizer and passing them in again on the update to re-add the linked posts. Now my venue and organizers don’t disappear. Hopefully this will be useful to someone.

    $venue = tribe_get_venue_id($eventId);
    $organizers = tribe_get_organizer_ids($eventId);
    $record = array (
    		'EventURL' => array (get_the_permalink ( $post->ID ),
    				),
    		'Venue' => array ('VenueID' => array($venue)
    				),
    		'Organizer' => array('OrganizerID' => $organizers
    				)
    		);
    $rc = tribe_update_event ( $eventId, $record );

    Thread Starter criself

    (@criself)

    Cool. Hope it makes it to the maintenance release and the maintenance release is soon. The workaround of fixing the event to add back the venue and organizer has been a bit cumbersome (though at least now I know when to expect it will happen!)

Viewing 9 replies - 1 through 9 (of 9 total)