Support » Plugins » [Plugin: Events Calendar] What’s wrong with my Event Calendar ?

Viewing 12 replies - 1 through 12 (of 12 total)
  • gatineau,

    It sounds like your host has file_get_contents turned off. Maybe for security reasons.

    You can ask your host or you can install the wp-serverinfo plugin and check for yourself.

    You could check and see if your host has cURL installed and turned on.

    Ron

    hey. I’ve got same problem – and it’s all clear that’s my hosting problem. However:
    1) I had earlier version of that and there was no problem
    2) what about .htaccess or something ?

    and one more, how to localize this thing ? if anyone can tell me that i’ll really grateful 😉

    I had the same Warning: file_get_contents(): problem and how now resolved it using CURL instead. I don’t really know what CURL is, but this worked for me. This might not work on your host, but worth a try if you’re in limbo.

    Open ec_calendar.class.php
    On line 42 comment out the file_get_contents bit like so:
    //$ecData = file_get_contents($ecFile);

    and underneath it put:

    $ch = curl_init();
    $timeout = 5; // set to zero for no timeout
    curl_setopt ($ch, CURLOPT_URL, $ecFile);
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
    $ecData = curl_exec($ch);
    curl_close($ch);

    That’s all.
    Hope that helps someone.

    Ian, thanks a lot man. I had the same problem and your solution really helped. After that it was like I never had that problem.

    FWIW, I was having this same problem, and Ian’s solution worked for me as well.

    Solved my problem too. Ian, you rock!

    I had the same problem after starting to use .htaccess.
    Ian72 solved my problem too.

    Thank you!

    Just wanted to add my voice to the thanks, that worked really well for me too.

    I tried this but it didn’t help. I still get the error:

    Warning: file_get_contents(): URL file-access is disabled in the server configuration in /home/domains/thegildedpen.com/web/wp-content/plugins/events-calendar/ec_calendar.class.php on line 42
    
    Warning: file_get_contents(http://thegildedpen.com/wp-content/themes/gilded1/style.css): failed to open stream: no suitable wrapper could be found in /home/domains/thegildedpen.com/web/wp-content/plugins/events-calendar/ec_calendar.class.php on line 42

    Anybody else have a suggestion?

    I’m getting that also:
    Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /nfs/c03/h01/mnt/48340/domains/blog.inikoa.com/html/wp-content/plugins/events-calendar/ec_calendar.class.php on line 42

    Warning: file_get_contents(http://blog.inikoa.com/wp-content/themes/mistylook/style.css) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /nfs/c03/h01/mnt/48340/domains/blog.inikoa.com/html/wp-content/plugins/events-calendar/ec_calendar.class.php on line 42

    right on my page….. don’t know what to do..
    is there another calendar that works better?
    liz

    If you have tried ian72’s fix and it didn’t work, check to make sure that your host has cUrl turned on.

    If not, you might want to ask your host why these are turned off.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘[Plugin: Events Calendar] What’s wrong with my Event Calendar ?’ is closed to new replies.