Forum Replies Created

Viewing 15 replies - 106 through 120 (of 292 total)
  • Changes made in Ai1ec 2.1.3/2.1.4 seem to be directly causing issues with Visual Composer, leading to a closed loop that never ends.Most of the changes in 2.1.3 and 2.1.4 are bugfixes that address a whole heap of issues that affect many users (beyond just those using VC).

    Note: Apparently the people behind Visual Composer have not been very helpful in the past when trying to resolve conflicts (this is what I’ve heard), so I suspect that getting it resolved may take some time,

    Can you define what you mean by “Breaking” please, as that could mean a lot of things? Also, what page are you putting this code on?

    The page you select for the calendar in Ai1ec’s settings gets the calendar without the need of having to embed the shortcode. If you embed the shortcode on the calendar page as well, you WILL get unpredictable results (actual results depend on the theme, but it can be as simple as calendars appearing in calendars, to white screens of death).

    If you want to set the default calendar view to Monthly, then you should change this in Dashboard->Events->Settings –> Viewing Events.

    @nickzee – Are you using the Visual Composer plugin? Ai1ec has a known conflict with Visual Composer.

    cefiar

    (@cefiar)

    What’s generating the original ICS file? Google accept a lot of broken files (they handle a lot of files that aren’t true to the spec), so it might be something like that.

    Also note that Ai1ec can only import files via http: or https:.

    cefiar

    (@cefiar)

    You can use shortcode on another page to display a filtered calendar.

    eg: [ai1ec cat_name="education"] will show just those events.

    You can see a list of all shortcodes and some examples of usage by going to Dashboard->Events->Settings –> Advanced->Shortcodes.

    Note: You have to be careful using Category and Tag names. I suspect that they are case sensitive, and whitespace can make a difference (eg: “education”, “Education”, “EDUCATION” and “education ” are all different). It’s usually preferable to use the id numbers of the categories or tags. You can easily find these out by filtering your calendar and then looking at the URL (which contains this info).

    cefiar

    (@cefiar)

    There’s a number of fixes coming in the next release that address things like this (it’s a bug).

    cefiar

    (@cefiar)

    The import brings the events into the database from Google. Ai1ec only queries the DB.

    When it updates, it has to pull back the whole file. With the ICS spec there is no way to tell the host “I only want events changed since X date”. While this is a nice idea, no open standard inter-calendar spec has that ability (at least, that I am aware of).

    In the case of ICS, since ICS files can be static files that are simply placed on a webhost, there is no way you can query the host for more info – it just knows there is a file here you want to fetch.

    Once retrieved, Ai1ec then goes through and replaces the local version of the event with the latest one from the ICS file. Each event has an internal event ID (part of the ICS spec) that is used to figure out which specific event is which.

    This does mean that if you edit an event from a feed locally, the next update will overwrite these changes. This is because there is no simple way to tell if this change was done locally or if the change in event details was on the feed side (eg: updated end time, change in description, etc).

    BTW: There’s been a lot of talk about having a way to say “I don’t want this event to update from the originating feed” but nothing yet that has made it into code. Time.ly have been working on other issues, many of which a lot of people have considered more important.

    cefiar

    (@cefiar)

    There’s probably a few places in Customizr where usage of get_the_title in HTML attributes isn’t escaped. It’s escaped in most places, but not in all (as I found).

    The one that affects Bill is in customizr/inc/parts/class-content-heading.php on line 249.

    The line is:

    get_the_title(),

    Changing it to:

    esc_attr( get_the_title() ),

    …solves the issue.

    To clear out HTML, you could also use (untested):

    esc_attr( strip_tags( get_the_title() ) ),

    Note: There are probably other occurrences of this sort of thing elsewhere, and it’s probably worthwhile looking through them to catch any others.

    BTW: Possible simple way to break any site that doesn’t escape titles being used as HTML attributes is to try them with the title:

    Why are ” in titles so bad?

    This will most likely break the HTML attribute by closing it early.

    Note: Yes, the title attribute will show escaped HTML in the hover, but it doesn’t break.

    PS: Plugins like WP-Typography also use HTML tags in titles, so fixing this would also resolve a conflict with that plugin.

    cefiar

    (@cefiar)

    @jamminjames – I hate those. They’re always a pain. The worst thing tends to be oversubscribed hosts (where there are too many websites on the machine). As each site starts using memory (or CPU), random stuff happens because either other sites start running out of memory (well below any limits) or things take too long and then time out (not enough CPU cycles).

    Unfortunately, many webhosts love to try and screw every last cent out of the piece of hardware a bunch of sites runs on, and often deny there is a problem until you rub their face in it with actual proof (which can be very hard to get).

    FWIW: 30 events from an ICS feed is fine. I have over 230 events coming in from 2 feeds on my own site, and it doesn’t take long for the imports to process. The only thing I would recommend is NOT to run the import process hourly in production environments. That’s mainly there for testing prior to going live, to make sure that updates flow into your site when the feed changes.

    cefiar

    (@cefiar)

    It’s possible, and most likely depends on the hosting setup.

    FWIW: I’ve seen a lot of WP sites with a default 40MB limit. With all error messages turned off, the only error you tend to get is a 500 error with no details telling you what’s wrong.

    That said, if WP-Memory-Usage says you have a 200MB limit, that should be the limit Ai1ec has as well.

    Very strange, but very glad that the issue seems to be resolved.

    If you get this issue again, I would suggest turning on debug logging and then look at the log output that should end up in the file: …../wp-content/debug.log

    To turn on debug logging in WordPress, add/change the following in wp-config.php:

    define('WP_DEBUG', true);
    
    define('WP_DEBUG_LOG', true);
    
    define('WP_DEBUG_DISPLAY', false);
    @ini_set('display_errors',0);
    cefiar

    (@cefiar)

    Depends if with 2.0.13 you are just under your memory limit. 2.1.2 does use slightly more memory in certain situations.

    cefiar

    (@cefiar)

    This is then your theme limiting the area that the text box can show (ie: it’s stopping display outside the area of the content box, even if something explicitly says it wants to do that.

    You could probably override the problem with some CSS.

    cefiar

    (@cefiar)

    So you want to create the events in Ai1ec and then have them appear in Google Calendar? Simple.

    Once logged in to Google, go to the Ai1ec calendar page and click on the “Add” button and then click on “Add to Google”. This will then bring up Google Calendar to add the events as a feed.

    When Ai1ec is updated, the events in Google will update, depending on how often Google fetches the feed. Google tends to update feeds only once every 24 hours.

    Notes:
    Ai1ec does not actually support 2-way sync.
    Ai1ec can export events with HTML in the event details to Google Calendar. Unfortunately, Google doesn’t support events with HTML on mobile devices (only on the web interface). I personally avoid HTML in any event details, as most systems expect them to be text anyway.

    cefiar

    (@cefiar)

    Yes. this was added in the 2.1 series.

    [ai1ec events_limit="5"]

    … limits the number of events to 5.

    In 2.1, the shortcodes are listed in Dashboard->Events->Settings –> Advanced->Shortcodes

    cefiar

    (@cefiar)

    Sounds like a firewall or some other network issue between the sites.

    Are they both on the same machine? I’ve seen some hosting providers stop traffic from going between webhosts like that before.

Viewing 15 replies - 106 through 120 (of 292 total)