tjkelly

Forum Replies Created

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • tjkelly
    Participant

    I read through the articles, thank you for sharing them. I ran the one-time import and it brought in 80+ events. Things look good there.

    But.

    Here’s a screenshot of my Saved Recurring Imports screen. I set this up 2 days ago to run every 30 minutes and it says it hasn’t run in 2 days.

    I don’t know if any new events have been added to the Google Calendar in the last 2 days (I don’t maintain the calendar, just the website displaying it). But I’d still expect to see the “Last Update” date be more recent, even if there were no new events found.

    tjkelly
    Participant

    If the events were “found” that means the “deleted events saved notes” were successfully cleared, now you should be able to re-import those events or any others.

    They were “found,” when I ran the import. So I set the frequency to every 30 mins, but none appeared in my Events list, even after 24 hours.

    Do I need to do something manually to make it start pulling events from the iCal URL every 30 mins?

    tjkelly
    Participant

    Thanks Nico. I’m leaving this “I still need assistance” because I have a few follow-up questions.

    1) From your answer:

    Add this snippet to your theme functions.php file and re-load the page

    Your instruction makes it sound like I should load my functions.php directly? But there are a number of problems with that, not the least of which is that get_posts is undefined. Did you mean I should load the iCal import page? The code isn’t wrapped in any function or hook, so I’m curious how that’s intended to work.

    2) In order to run the code in your snippet, I converted it to a shortcode and pasted the shortcode in a post. I immediately got the ‘Done deleting!’ message, despite have 490 records in the database of type ‘deleted_event’.

    • I tried adjusting the ‘numberposts’ param to see if it any affect. It did not.
    • I var_dump’d $posts and it returned an empty array.

    What am I doing wrong?

    3) Lastly, now that I know about the ‘deleted_evet’ post type, I queried it in my wp_posts table and deleted the 490 records. That seems to have worked because my latest import attempt brought up results as expected.

    So the question here is: is it ok to delete those post records in phpmyadmin? Could that have any unforeseen consequences? (This is all on my staging site so I don’t mind breaking things right now. Just want to be sure for when I deploy!)

    Edit: Now that I’ve said that it worked as expected, I’m changing my mind:

    • The import looked good and the results looked right
    • When I load my /edit.php?post_type=tribe_events admin page, I don’t see any events
    • When I access my public-facing schedule page, I don’t see any events

    Now what? Were those events not actually imported, despite how the import looked?

    Thanks very much.

    • This reply was modified 10 years, 4 months ago by tjkelly. Reason: Additional info
    tjkelly
    Participant

    For additional info:

    On my staging URL, I disabled all other plugins and switched to Twentyfifteen theme. I tried the import again from an .ics file and I got a new error: “Unable to retrieve content from the provided URL.”

    I tried a different .ics file for testing and it worked perfectly. Does that mean my .ics is corrupt or too big or something?

Viewing 4 posts - 16 through 19 (of 19 total)