WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
Fatal Error (6 posts)

  1. mayday
    Member
    Posted 3 years ago #

    Using WP 3.0.2
    When trying to activate I get this error:
    Plugin could not be activated because it triggered a fatal error.
    Catchable fatal error: Object of class WP_Error could not be converted to string in /var/www/vhosts/aegismedia54.com/httpdocs/news/wp-content/plugins/the-events-calendar/the-events-calendar.class.php on line 795

    Thoughts? I would really like to use this plugin.

    Robert

  2. mayday
    Member
    Posted 3 years ago #

    Could this happen because of another plugin? I have been testing other calendar scripts and activated and deactivated this plugin.
    Anyone have a comment?

    Robert

  3. monodistortion
    Member
    Posted 3 years ago #

    What's on line 795 of that file? Is it this?

    $base = str_replace( trailingslashit( get_option( 'siteurl' ) ), '', $url );
    

    If so, try replacing it with this:

    $base = trailingslashit( str_replace( trailingslashit( get_option( 'home' ) ), '', $url ) );
    
  4. mayday
    Member
    Posted 3 years ago #

    Thanks for your reply. I changed the code on line 795 and it gives the same error.

  5. monodistortion
    Member
    Posted 3 years ago #

    In the General Settings Administration panel what do you have for WordPress address (URL) and Site address (URL)?

    Are you using any Permalink Settings? If so does it work if you switch the permalinks to Default?

    That section of the plugin is where it generates a lot of rewrite rules specific for the event category and dates.

  6. profago
    Member
    Posted 3 years ago #

    I had the same problem, i solved it:
    - disable the plugin;
    - set Permalink Settings ad Default
    - re-enable Plugin

    the problem is obiouvsly that you must use Default permalink.
    I hope that they will fix this problem

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic