Forums

[Plugin: Events Calendar] What's wrong with my Event Calendar ? (13 posts)

  1. gatineau
    Member
    Posted 3 years ago #

    I tried to install the Event Calendar for my blog with Wordprss 2.5.1.

    But it seems that something is wrong in somewhere. So Can you help me resolve it? Thank a lot.

    The folloing information is the wrong notice :

    Warning: file_get_contents(): URL file-access is disabled in the server configuration in /home/content/c/h/i/chinatownlw/html/lwireless/wp-content/plugins/events-calendar/ec_calendar.class.php on line 42

    Warning: file_get_contents(http://www.livingwireless.ca/wp-content/themes/ProSense/style.css): failed to open stream: no suitable wrapper could be found in /home/content/c/h/i/chinatownlw/html/lwireless/wp-content/plugins/events-calendar/ec_calendar.class.php on line 42

    Please visit it at : http://www.livingwireless.ca/

    http://wordpress.org/extend/plugins/events-calendar/

  2. ronbme
    Member
    Posted 3 years ago #

    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

  3. vonsko
    Member
    Posted 3 years ago #

    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 ?

  4. vonsko
    Member
    Posted 3 years ago #

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

  5. ian72
    Member
    Posted 3 years ago #

    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.

  6. arkcontribute
    Member
    Posted 3 years ago #

    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.

  7. bg2326
    Member
    Posted 3 years ago #

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

  8. viceng
    Member
    Posted 3 years ago #

    Solved my problem too. Ian, you rock!

  9. rmasenator
    Member
    Posted 3 years ago #

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

    Thank you!

  10. mrjeany
    Member
    Posted 3 years ago #

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

  11. ajennell
    Member
    Posted 3 years ago #

    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?

  12. wahinekai
    Member
    Posted 3 years ago #

    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

  13. ronbme
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic