WordPress.org

Ready to get started?Download WordPress

Forums

Bad code (2 posts)

  1. Anonymous
    Unregistered
    Posted 6 years ago #

    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...

  2. offordscott
    Member
    Posted 5 years ago #

    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;
        }
    */

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.