WordPress.org

Ready to get started?Download WordPress

Forums

All-in-One Event Calendar
[resolved] Import and ICS feed don't work (46 posts)

  1. damarusama
    Member
    Posted 2 years ago #

    HI there,

    I am having a similar problem and I followed all the steps in this thread. I activated the php.ini allow_url_fopen = On. I didn't do the .htaccess because it give me a 500 error and I read these only work in php 6 anyhow.

    I am hosted on 1and1.com.

    I also tested the :

    <?php
    error_reporting(E_ALL); ini_set('display_errors','On');
    echo file_get_contents( 'http://www.google.com/calendar/ical/161hkrdo0qrhfc6sj4s613gib4%40group.calendar.google.com/public/basic.ics' );
    
    ?>

    You can see the result here :
    http://radhayogacenter.org/wordpress/test.php

    Which display the actual calendar. I looked into the error trough the firebug ajax-admin script and it cleanly give an error that there is no event.

    I tried the calendar on a different site and it worked so it's defenitly my settings or my host :S.

    The calendar I am working with is :

    https://www.google.com/calendar/ical/p2cair4pvme86jk5jk8hiidufk%40group.calendar.google.com/private-e7c7f3286e569f11085df6510f1c54ec/basic.ics

    which is also copied locally to test here :

    http://radha.org/basic.ics

    The php info shows that I have these on :

    allow_url_fopen On On
    allow_url_include On On

    http://radhayogacenter.org/wordpress/phpinfo.php

    What else should I be looking for ?

  2. rasaacharya
    Member
    Posted 2 years ago #

    Having the same exact problems as @damarusama. Also hosted on 1and1.com.

    I've followed the previous fixes and my info.php shows that allow_url_fopen is on.

    Would really like to figure out a fix. Thanks in advance.

  3. MrMEEE
    Member
    Posted 2 years ago #

    Hi...

    I have the same problem here..

    Trying to sync/import:

    http://filer.herlev-basket.dk/public.php?service=calendar&t=f2199594f043fdc

    seems like file is being fetched ok:

    http://herlev-basket.dk/test/

    index.php in this folder:

    <?php
    error_reporting(E_ALL); ini_set('display_errors','On');
    echo file_get_contents( 'http://filer.herlev-basket.dk/public.php?service=calendar&t=f2199594f043fdc' );

    ?>

    Any ideas????

  4. Yani Iliev
    Member
    Plugin Contributor

    Posted 2 years ago #

    Can you set WP_DEBUG to true in your wp-config.php then tell me the result of the ajax call as shown here (I need the content in network tab that I copied, in my case it was {"error":false,"message":"Imported 1 event","ics_id":8}): http://youtu.be/QlZ7K9PYUZU

  5. MrMEEE
    Member
    Posted 2 years ago #

    Hi

    I get:

    {"error":true,"message":"Ingen begivenheder fundet"}

  6. MrMEEE
    Member
    Posted 2 years ago #

    "Ingen begivenheder fundet" = "No events found"

  7. Yani Iliev
    Member
    Plugin Contributor

    Posted 2 years ago #

    @MrMEEE
    It has to be something server-side as I cannot get it on my install. Would you like me to assist you in debugging it? If so, I'll need ftp access and wp-admin access. You can create a ticket with the credentials here: http://help.time.ly/customer/portal/emails/new

  8. MrMEEE
    Member
    Posted 2 years ago #

    Hi

    I have no problem in giving you a wp-admin access.. but we are using a hosting provider, where I can not easily change password on the ftp account... so I am not that happy in giving up the ftp password...

    Can you do anything with the wp-admin access alone?? or is there something I can do??

  9. Yani Iliev
    Member
    Plugin Contributor

    Posted 2 years ago #

    okay, let's try with wp-admin and if I need you to do any changes to the files, I will let you know

  10. MrMEEE
    Member
    Posted 2 years ago #

    Hi

    Just figured out something, if I switch from PHP 5.2 -> 5.3, then it works... But then some of my other stuff in wordpress breaks...

  11. Yani Iliev
    Member
    Plugin Contributor

    Posted 2 years ago #

    ah okay,
    so we supply 2 libraries for ICS parsing. one is for php 5.2. The newer library for ics parsing requires php 5.3, it has more features and supports more cases. I guess that's why it doesn't work :/

  12. MrMEEE
    Member
    Posted 2 years ago #

    ok...

    But after switching to 5.3 i get:

    Warning: Parameter 1 to ec3_filter_posts_where() expected to be a reference, value given in /home/www/herlev-basket.dk/wp-includes/plugin.php on line 227

    Warning: Parameter 1 to ec3_filter_posts_join() expected to be a reference, value given in /home/www/herlev-basket.dk/wp-includes/plugin.php on line 227

    Warning: Parameter 1 to ec3_filter_posts_groupby() expected to be a reference, value given in /home/www/herlev-basket.dk/wp-includes/plugin.php on line 227

    Warning: Parameter 1 to ec3_filter_posts_orderby() expected to be a reference, value given in /home/www/herlev-basket.dk/wp-includes/plugin.php on line 227

    Warning: Parameter 1 to ec3_filter_posts_fields() expected to be a reference, value given in /home/www/herlev-basket.dk/wp-includes/plugin.php on line 227

    and NO events shows...

    Do you know a quickfix to this error???

  13. Yani Iliev
    Member
    Plugin Contributor

    Posted 2 years ago #

    Yes, just set WP_DEBUG to false in wp-config.php

  14. MrMEEE
    Member
    Posted 2 years ago #

    ok.. and this was caused by the old version of event calendar, that I forgot to uninstall.. thanks for your help...

  15. Yani Iliev
    Member
    Plugin Contributor

    Posted 2 years ago #

    Excellent! I hope you enjoy using the plugin.

  16. symbolplus
    Member
    Posted 1 year ago #

    Hi,

    I am using all-in-one calendar to download the events from an external site. This works OK with a different hosting. The same code did not work in 1and1 hosting. I have tried all the above steps. Every thing is fine, when the feeder runs the script. It gives

    {"error":false,"message":"No Events found","ics_id":2}):

    Can you please help? This is preventing us to complete the other tasks.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic