All-in-One Event Calendar
[resolved] Helper class path correction (2 posts)

  1. pkucera
    Posted 3 years ago #

    In the latest version, I noticed a 500 error on the Widgets page when adding Upcoming Events widget to my sidebar. The widget appeared to load and save fine, but I noticed the error in debugging (Safari). There was a double forward slash in the path to the widget.css file the widget was trying to include.

    The extra forward slash is being added in the admin_enqueue_scripts() function found in the following file: all-in-one-event-calendar/app/helper/class-ai1ec-app-helper.php.

    If you are also getting this error, try the following:
    On approximately line number 902 change this line......
    $ai1ec_view_helper->admin_enqueue_style( 'ai1ec-widget', '/widget.css', array(), AI1EC_VERSION );

    to this(removing forward slash in front of widget.css).......
    $ai1ec_view_helper->admin_enqueue_style( 'ai1ec-widget', 'widget.css', array(), AI1EC_VERSION );

    Hope this helps someone and can be fixed in an upcoming version.


  2. Yani Iliev
    Plugin Contributor

    Posted 3 years ago #

    @ pkucera
    Thank you so much for sharing this fix. We will fix this asap.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • All-in-One Event Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic