• Hi,

    I have used the shortcode with the url that my provider has given me and when ran it though iCalendar Validator ot says Success! No errors found. and found the events but the plugin is not finding the events.

    Thanks
    Dan

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author room34

    (@room34)

    Would it be possible to get a feed URL for me to test? You can email it to the support email address on the plugin’s admin page if you don’t want to post it here.

    One caution —?I would avoid having this many calendars on one page. While the plugin does support having multiple calendars on the same page, there’s a fair bit of processing that goes into parsing each one. It’s not too much when you just have one or two calendars, but it could cause performance issues having 16 on one page. If there’s a way you could reconfigure so each property’s calendar is on its own page, it would work better.

    Thread Starter DanZ Digital Designs

    (@danzdigital)

    okay thanks for the info.

    Here is one of the feeds all are identical. https://new.rentalsunited.com/iCal/iCal.ashx?apa=2598068&google=1

    many thanks
    Dan

    Plugin Author room34

    (@room34)

    I think this may be a permission issue with the calendar. I tested your URL in the iCalendar Validator and also saw it was valid, but if I try to load the feed in Safari or Firefox, it comes up blank, and Chrome returns a 403 Forbidden error.

    I’m a little surprised the validator would return valid on an empty feed, but that seems to be what has happened.

    You should be able to enter your feed URL in a browser address bar and it will download an .ics file.

    You may also want to add debug="1" to your shortcode if you haven’t tried it; the plugin will add a debugging panel at the bottom of the page when you load it.

    Thread Starter DanZ Digital Designs

    (@danzdigital)

    Okay intresting, When i debug it outputs the following.

    Array
    (
        [args] => Array
            (
                [attach] => 
                [color] =>  #ff0000
                [columnlabels] => 
                [count] => 0
                [currentweek] => 
                [description] => 
                [debug] => 1
                [eventdesc] => 
                [feedlabel] => 
                [format] => 
                [formatmonthyear] => F Y
                [hidealldayindicator] => 
                [hidetimes] => 
                [legendinline] => 
                [limitdays] => 1095
                [limitdayscustom] => 1
                [linktitles] => 
                [location] => 
                [maskinfo] => Unavailabile
                [nolink] => 
                [nomobile] => 
                [pastdays] => 0
                [organizer] => 
                [reload] => 
                [showendtimes] => 
                [skip] => 0
                [skiprecurrence] => 
                [startdate] => 0
                [title] => 
                [toggle] => 
                [url] => https://new.rentalsunited.com/iCal/iCal.ashx?apa=2598068&google=1
                [view] => month
            )
    
        [https://new.rentalsunited.com/iCal/iCal.ashx?apa=2598068&google=1] => Array
            (
                [ICS Feed] => DOWNLOAD // VALIDATE
                [Load status] => Array
                    (
                        [0] => Attempted to load URL via cURL
                        [1] => HTTP response: 302
                    )
    
                [URL contents retrieved] => 186 bytes
            )
    
        [https://new.rentalsunited.com/iCal/iCal.ashx?apa=2598068&google=1] => Array
            (
                [Calendar name] => 
                [Calendar description] => 
                [Calendar time zone] => Europe/London
                [Parsed date range] => 2020/05/16 to 2023/06/12
                [Filter days after] => 1101
                [Filter days before] => 20
                [Errors] => Array
                    (
                        [0] => Calendar contains no events.
                    )
    
                [Events parsed] => 0
            )
    
        [Peak memory usage] => 35.71 MB
        [Plugin Data] => Array
            (
                [events] => Array
                    (
                        [2020] => Array
                            (
                                [06] => Array
                                    (
                                        [05] => Array
                                            (
                                            )
    
                                    )
    
                                [6] => 
                                [7] => 
                                [8] => 
                                [9] => 
                                [10] => 
                                [11] => 
                                [12] => 
                            )
    
                        [2021] => Array
                            (
                                [0] => 
                                [1] => 
                                [2] => 
                                [3] => 
                                [4] => 
                                [5] => 
                                [6] => 
                                [7] => 
                                [8] => 
                                [9] => 
                                [10] => 
                                [11] => 
                                [12] => 
                            )
    
                        [2022] => Array
                            (
                                [0] => 
                                [1] => 
                                [2] => 
                                [3] => 
                                [4] => 
                                [5] => 
                                [6] => 
                                [7] => 
                                [8] => 
                                [9] => 
                                [10] => 
                                [11] => 
                                [12] => 
                            )
    
                        [2023] => Array
                            (
                                [0] => 
                                [1] => 
                                [2] => 
                                [3] => 
                                [4] => 
                                [5] => 
                            )
    
                    )
    
                [urls] => Array
                    (
                        [0] => https://new.rentalsunited.com/iCal/iCal.ashx?apa=2598068&google=1
                    )
    
                [guid] => rc6170382-2454-4daa-a52a-546919530455
                [title] => 
                [description] => 
                [colors] => Array
                    (
                        [0] => Array
                            (
                                [base] => rgba(0,0,0,1)
                                [highlight] => rgba(191.25478136953,191.25478136953,191.25478136953,0.75)
                            )
    
                        [1] => Array
                            (
                                [base] => rgba(255,0,0,1)
                                [highlight] => rgba(255,191.25478136953,191.25478136953,0.75)
                            )
    
                    )
    
                [feed_titles] => Array
                    (
                        [0] => 
                    )
    
                [timezone] => Array
                    (
                        [https://new.rentalsunited.com/iCal/iCal.ashx?apa=2598068&google=1] => Europe/London
                    )
    
                [earliest] => 202006
                [latest] => 202305
            )
    
    )
    Array
    (
        [args] => Array
            (
                [attach] => 
                [color] =>  #ff0000
                [columnlabels] => 
                [count] => 0
                [currentweek] => 
                [description] => 
                [debug] => 1
                [eventdesc] => 
                [feedlabel] => 
                [format] => 
                [formatmonthyear] => F Y
                [hidealldayindicator] => 
                [hidetimes] => 
                [legendinline] => 
                [limitdays] => 1095
                [limitdayscustom] => 1
                [linktitles] => 
                [location] => 
                [maskinfo] => Unavailabile
                [nolink] => 
                [nomobile] => 
                [pastdays] => 0
                [organizer] => 
                [reload] => 
                [showendtimes] => 
                [skip] => 0
                [skiprecurrence] => 
                [startdate] => 0
                [title] => 
                [toggle] => 
                [url] => https://new.rentalsunited.com/iCal/iCal.ashx?apa=2599197&google=1
                [view] => month
            )
    
        [https://new.rentalsunited.com/iCal/iCal.ashx?apa=2599197&google=1] => Array
            (
                [ICS Feed] => DOWNLOAD // VALIDATE
                [Load status] => Array
                    (
                        [0] => Attempted to load URL via cURL
                        [1] => HTTP response: 302
                    )
    
                [URL contents retrieved] => 186 bytes
            )
    
        [https://new.rentalsunited.com/iCal/iCal.ashx?apa=2599197&google=1] => Array
            (
                [Calendar name] => 
                [Calendar description] => 
                [Calendar time zone] => Europe/London
                [Parsed date range] => 2020/05/16 to 2023/06/12
                [Filter days after] => 1101
                [Filter days before] => 20
                [Errors] => Array
                    (
                        [0] => Calendar contains no events.
                    )
    
                [Events parsed] => 0
            )
    
        [Peak memory usage] => 36.37 MB
        [Plugin Data] => Array
            (
                [events] => Array
                    (
                        [2020] => Array
                            (
                                [06] => Array
                                    (
                                        [05] => Array
                                            (
                                            )
    
                                    )
    
                                [6] => 
                                [7] => 
                                [8] => 
                                [9] => 
                                [10] => 
                                [11] => 
                                [12] => 
                            )
    
                        [2021] => Array
                            (
                                [0] => 
                                [1] => 
                                [2] => 
                                [3] => 
                                [4] => 
                                [5] => 
                                [6] => 
                                [7] => 
                                [8] => 
                                [9] => 
                                [10] => 
                                [11] => 
                                [12] => 
                            )
    
                        [2022] => Array
                            (
                                [0] => 
                                [1] => 
                                [2] => 
                                [3] => 
                                [4] => 
                                [5] => 
                                [6] => 
                                [7] => 
                                [8] => 
                                [9] => 
                                [10] => 
                                [11] => 
                                [12] => 
                            )
    
                        [2023] => Array
                            (
                                [0] => 
                                [1] => 
                                [2] => 
                                [3] => 
                                [4] => 
                                [5] => 
                            )
    
                    )
    
                [urls] => Array
                    (
                        [0] => https://new.rentalsunited.com/iCal/iCal.ashx?apa=2599197&google=1
                    )
    
                [guid] => r941c66df-8fa3-4f59-b25a-89360587499d
                [title] => 
                [description] => 
                [colors] => Array
                    (
                        [0] => Array
                            (
                                [base] => rgba(0,0,0,1)
                                [highlight] => rgba(191.25478136953,191.25478136953,191.25478136953,0.75)
                            )
    
                        [1] => Array
                            (
                                [base] => rgba(255,0,0,1)
                                [highlight] => rgba(255,191.25478136953,191.25478136953,0.75)
                            )
    
                    )
    
                [feed_titles] => Array
                    (
                        [0] => 
                    )
    
                [timezone] => Array
                    (
                        [https://new.rentalsunited.com/iCal/iCal.ashx?apa=2599197&google=1] => Europe/London
                    )
    
                [earliest] => 202006
                [latest] => 202305
            )
    
    )
    Array
    (
        [args] => Array
            (
                [attach] => 
                [color] =>  #ff0000
                [columnlabels] => 
                [count] => 0
                [currentweek] => 
                [description] => 
                [debug] => 1
                [eventdesc] => 
                [feedlabel] => 
                [format] => 
                [formatmonthyear] => F Y
                [hidealldayindicator] => 
                [hidetimes] => 
                [legendinline] => 
                [limitdays] => 1095
                [limitdayscustom] => 1
                [linktitles] => 
                [location] => 
                [maskinfo] => Unavailabile
                [nolink] => 
                [nomobile] => 
                [pastdays] => 0
                [organizer] => 
                [reload] => 
                [showendtimes] => 
                [skip] => 0
                [skiprecurrence] => 
                [startdate] => 0
                [title] => 
                [toggle] => 
                [url] => https://new.rentalsunited.com/iCal/iCal.ashx?apa=2597593&google=1
                [view] => month
            )
    
        [https://new.rentalsunited.com/iCal/iCal.ashx?apa=2597593&google=1] => Array
            (
                [ICS Feed] => DOWNLOAD // VALIDATE
                [Load status] => Array
                    (
                        [0] => Attempted to load URL via cURL
                        [1] => HTTP response: 302
                    )
    
                [URL contents retrieved] => 186 bytes
            )
    
        [https://new.rentalsunited.com/iCal/iCal.ashx?apa=2597593&google=1] => Array
            (
                [Calendar name] => 
                [Calendar description] => 
                [Calendar time zone] => Europe/London
                [Parsed date range] => 2020/05/16 to 2023/06/12
                [Filter days after] => 1101
                [Filter days before] => 20
                [Errors] => Array
                    (
                        [0] => Calendar contains no events.
                    )
    
                [Events parsed] => 0
            )
    
        [Peak memory usage] => 37.04 MB
        [Plugin Data] => Array
            (
                [events] => Array
                    (
                        [2020] => Array
                            (
                                [06] => Array
                                    (
                                        [05] => Array
                                            (
                                            )
    
                                    )
    
                                [6] => 
                                [7] => 
                                [8] => 
                                [9] => 
                                [10] => 
                                [11] => 
                                [12] => 
                            )
    
                        [2021] => Array
                            (
                                [0] => 
                                [1] => 
                                [2] => 
                                [3] => 
                                [4] => 
                                [5] => 
                                [6] => 
                                [7] => 
                                [8] => 
                                [9] => 
                                [10] => 
                                [11] => 
                                [12] => 
                            )
    
                        [2022] => Array
                            (
                                [0] => 
                                [1] => 
                                [2] => 
                                [3] => 
                                [4] => 
                                [5] => 
                                [6] => 
                                [7] => 
                                [8] => 
                                [9] => 
                                [10] => 
                                [11] => 
                                [12] => 
                            )
    
                        [2023] => Array
                            (
                                [0] => 
                                [1] => 
                                [2] => 
                                [3] => 
                                [4] => 
                                [5] => 
                            )
    
                    )
    
                [urls] => Array
                    (
                        [0] => https://new.rentalsunited.com/iCal/iCal.ashx?apa=2597593&google=1
                    )
    
                [guid] => reb808bde-1863-4208-98a9-66cb9a1d925f
                [title] => 
                [description] => 
                [colors] => Array
                    (
                        [0] => Array
                            (
                                [base] => rgba(0,0,0,1)
                                [highlight] => rgba(191.25478136953,191.25478136953,191.25478136953,0.75)
                            )
    
                        [1] => Array
                            (
                                [base] => rgba(255,0,0,1)
                                [highlight] => rgba(255,191.25478136953,191.25478136953,0.75)
                            )
    
                    )
    
                [feed_titles] => Array
                    (
                        [0] => 
                    )
    
                [timezone] => Array
                    (
                        [https://new.rentalsunited.com/iCal/iCal.ashx?apa=2597593&google=1] => Europe/London
                    )
    
                [earliest] => 202006
                [latest] => 202305
            )
    
    )
    Array
    (
        [args] => Array
            (
                [attach] => 
                [color] =>  #ff0000
                [columnlabels] => 
                [count] => 0
                [currentweek] => 
                [description] => 
                [debug] => 1
                [eventdesc] => 
                [feedlabel] => 
                [format] => 
                [formatmonthyear] => F Y
                [hidealldayindicator] => 
                [hidetimes] => 
                [legendinline] => 
                [limitdays] => 1095
                [limitdayscustom] => 1
                [linktitles] => 
                [location] => 
                [maskinfo] => Unavailabile
                [nolink] => 
                [nomobile] => 
                [pastdays] => 0
                [organizer] => 
                [reload] => 
                [showendtimes] => 
                [skip] => 0
                [skiprecurrence] => 
                [startdate] => 0
                [title] => 
                [toggle] => 
                [url] => https://new.rentalsunited.com/iCal/iCal.ashx?apa=2599158&google=1
                [view] => month
            )
    
        [https://new.rentalsunited.com/iCal/iCal.ashx?apa=2599158&google=1] => Array
            (
                [ICS Feed] => DOWNLOAD // VALIDATE
                [Load status] => Array
                    (
                        [0] => Attempted to load URL via cURL
                        [1] => HTTP response: 302
                    )
    
                [URL contents retrieved] => 186 bytes
            )
    
        [https://new.rentalsunited.com/iCal/iCal.ashx?apa=2599158&google=1] => Array
            (
                [Calendar name] => 
                [Calendar description] => 
                [Calendar time zone] => Europe/London
                [Parsed date range] => 2020/05/16 to 2023/06/12
                [Filter days after] => 1101
                [Filter days before] => 20
                [Errors] => Array
                    (
                        [0] => Calendar contains no events.
                    )
    
                [Events parsed] => 0
            )
    
        [Peak memory usage] => 37.70 MB
        [Plugin Data] => Array
            (
                [events] => Array
                    (
                        [2020] => Array
                            (
                                [06] => Array
                                    (
                                        [05] => Array
                                            (
                                            )
    
                                    )
    
                                [6] => 
                                [7] => 
                                [8] => 
                                [9] => 
                                [10] => 
                                [11] => 
                                [12] => 
                            )
    
                        [2021] => Array
                            (
                                [0] => 
                                [1] => 
                                [2] => 
                                [3] => 
                                [4] => 
                                [5] => 
                                [6] => 
                                [7] => 
                                [8] => 
                                [9] => 
                                [10] => 
                                [11] => 
                                [12] => 
                            )
    
                        [2022] => Array
                            (
                                [0] => 
                                [1] => 
                                [2] => 
                                [3] => 
                                [4] => 
                                [5] => 
                                [6] => 
                                [7] => 
                                [8] => 
                                [9] => 
                                [10] => 
                                [11] => 
                                [12] => 
                            )
    
                        [2023] => Array
                            (
                                [0] => 
                                [1] => 
                                [2] => 
                                [3] => 
                                [4] => 
                                [5] => 
                            )
    
                    )
    
                [urls] => Array
                    (
                        [0] => https://new.rentalsunited.com/iCal/iCal.ashx?apa=2599158&google=1
                    )
    
                [guid] => re86664f2-003f-47ed-938a-a6da4197ae2d
                [title] => 
                [description] => 
                [colors] => Array
                    (
                        [0] => Array
                            (
                                [base] => rgba(0,0,0,1)
                                [highlight] => rgba(191.25478136953,191.25478136953,191.25478136953,0.75)
                            )
    
                        [1] => Array
                            (
                                [base] => rgba(255,0,0,1)
                                [highlight] => rgba(255,191.25478136953,191.25478136953,0.75)
                            )
    
                    )
    
                [feed_titles] => Array
                    (
                        [0] => 
                    )
    
                [timezone] => Array
                    (
                        [https://new.rentalsunited.com/iCal/iCal.ashx?apa=2599158&google=1] => Europe/London
                    )
    
                [earliest] => 202006
                [latest] => 202305
            )
    
    )
    Thread Starter DanZ Digital Designs

    (@danzdigital)

    Looking at the debug above any idea what could be causing the no event import.

    Plugin Author room34

    (@room34)

    It looks like there are no events in the feed.

    Thread Starter DanZ Digital Designs

    (@danzdigital)

    This iCal has 4 events https://new.rentalsunited.com/iCal/iCal.ashx?apa=2598068&google=1
    Here are the results from iCalendar Validator

    Results
    File Size: 42 lines, 985 bytes
    Number of events found: 4
    Success! No errors found.

    and when I open in VSCode it looks like this.

    BEGIN:VCALENDAR
    VERSION:2.0
    CALSCALE:GREGORIAN
    METHOD:PUBLISH
    PRODID:-//rentalsunited.com//RentalMachine 1.0//EN
    X-WR-CALDESC:
    X-WR-CALNAME:Benarama Lovely Dog Friendly Two Bed Lodge\, Sleeps 4\, Close
    to Ryde.
    X-WR-TIMEZONE:UTC

    BEGIN:VEVENT
    DTEND;VALUE=DATE:20200704
    DTSTAMP:20200611T141823Z
    DTSTART;VALUE=DATE:20200611
    SEQUENCE:0
    SUMMARY:Unavailable
    UID:a2f4e9e9-1169-48c9-b216-51b6e57e8c9c
    END:VEVENT

    BEGIN:VEVENT
    DTEND;VALUE=DATE:20200808
    DTSTAMP:20200611T141823Z
    DTSTART;VALUE=DATE:20200731
    SEQUENCE:0
    SUMMARY:Unavailable
    UID:8e167024-7eec-46b4-b0da-0913b604c355
    END:VEVENT

    BEGIN:VEVENT
    DTEND;VALUE=DATE:20200901
    DTSTAMP:20200611T141823Z
    DTSTART;VALUE=DATE:20200827
    SEQUENCE:0
    SUMMARY:Unavailable
    UID:a24c1b9f-366f-44fd-bdae-1b5ece233fd7
    END:VEVENT

    BEGIN:VEVENT
    DTEND;VALUE=DATE:20230612
    DTSTAMP:20200611T141823Z
    DTSTART;VALUE=DATE:20220220
    SEQUENCE:0
    SUMMARY:Unavailable
    UID:0321aafa-fcff-46de-a11d-5119202c3678
    END:VEVENT

    END:VCALENDAR

    Don’t know if it is the way the plugin looks at the file but Google Calendar imports the file okay with no issues.

    Plugin Author room34

    (@room34)

    Ah-ha… it looks like the problem is the URL you are using is getting a 302 redirect. The parser in the plugin is not able to follow redirects so you need to use the URL it’s redirecting to. (I’ve built in some workarounds for common 301/302 redirects but it isn’t catching the one your feed is returning.)

    Using the URL Tester in the pro version of the plugin, I was able to see that the URL you entered is returning a message with a redirect to this URL:

    https://new.rentalsunited.com/iCal/iCal.ashx?apa=2598068&google=1

    Looks the same… but it’s the protocol that’s the issue. If you change your feed URL from https:// to https:// it should work.

    Thread Starter DanZ Digital Designs

    (@danzdigital)

    Thanks that worked, it had to be that simple, anyway, a new problem has arisen.

    Now it displays the following

    Notice: Trying to access array offset on value of type bool in /home/sites/6a/c/c72e909ea8/public_html/wp-content/plugins/ics-calendar/vendors/ics-parser/src/ICal/ICal.php on line 627

    Notice: Trying to access array offset on value of type bool in /home/sites/6a/c/c72e909ea8/public_html/wp-content/plugins/ics-calendar/vendors/ics-parser/src/ICal/ICal.php on line 628

    Thread Starter DanZ Digital Designs

    (@danzdigital)

    Rather weird just refreshed the cache and the error has disappeared.
    Thanks for your help.

    Plugin Author room34

    (@room34)

    I’m just checking in version 5.8.0 of the plugin. It should be available shortly. It includes a fix that will allow your URLs to redirect automatically. (That said, you really should be using https:// not https:// for these.)

    (Unrelated, this version also includes the latest release of the ICS Parser library, which now incorporates a bug fix that I had identified and previously patched directly in earlier versions of the plugin.)

    Thread Starter DanZ Digital Designs

    (@danzdigital)

    OKay Thank you for all your help. Will send a donation shortly for your help. ??

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘No Events Inported’ is closed to new replies.