Title: Bad code
Last modified: August 19, 2016

---

# Bad code

 *  735226
 * [17 years, 10 months ago](https://wordpress.org/support/topic/bad-code-1/)
 * 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](https://wordpress.org/support/users/offordscott/)
 * (@offordscott)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/bad-code-1/#post-807017)
 * 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.

 * 1 reply
 * 2 participants
 * Last reply from: [x](https://wordpress.org/support/users/offordscott/)
 * Last activity: [17 years, 10 months ago](https://wordpress.org/support/topic/bad-code-1/#post-807017)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
