• My english is very poor…

    I install the Events Calendar plugin

    But this appears above the calendar

    Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/webcindario/m/a/mas-colon/wp-content/plugins/events-calendar/ec_calendar.class.php on line 42
    
    Warning: file_get_contents(http://mas-colon.webcindario.com/wp-content/themes/inbloom/style.css) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/webcindario/m/a/mas-colon/wp-content/plugins/events-calendar/ec_calendar.class.php on line 42

    Can you helpme?
    thank you very much and sorry my english…

Viewing 1 replies (of 1 total)
  • x

    (@offordscott)

    Comment out these two pieces of code in the file:
    /plugins/events-calendar/ec_calendar.class.php

    like this:

    //   $ecFile = get_bloginfo('stylesheet_directory') . "/style.css";
    
     /*
    
        $ecData = file_get_contents($ecFile);
        if(strpos($ecData, "#today") === false) {
          $todaySet = false;
        } else {
          $todaySet = true;
        }
    */

Viewing 1 replies (of 1 total)
  • The topic ‘Bad code’ is closed to new replies.