• Resolved jbusheyvt

    (@jbusheyvt)


    WordPress 3.8.1 running Mantra theme.

    I enabled RSS and started receiving 6 of these messages at the top of the main MF Gig Calendar Page: websitename.com/wp-admin/admin.php?page=mf_gig_calendar

    Warning: assert() [function.assert]: Assertion failed in /home/USERNAME/public_html/wp-content/plugins/mf-gig-calendar/mf_gig_calendar.php on line 1114

    I unchecked RSS and am still receiving 3 of them.

    Line 1114 is:

    .gallery-columns-9 .gallery-item:nth-of-type(9n) {

    You can see what is above and below line 1114 here:

    .gallery-columns-1 .gallery-item:nth-of-type(1n),
    .gallery-columns-2 .gallery-item:nth-of-type(2n),
    .gallery-columns-3 .gallery-item:nth-of-type(3n),
    .gallery-columns-4 .gallery-item:nth-of-type(4n),
    .gallery-columns-5 .gallery-item:nth-of-type(5n),
    .gallery-columns-6 .gallery-item:nth-of-type(6n),
    .gallery-columns-7 .gallery-item:nth-of-type(7n),
    .gallery-columns-8 .gallery-item:nth-of-type(8n),
    .gallery-columns-9 .gallery-item:nth-of-type(9n) {
    margin-right: 0;
    }

    .gallery-caption {

    Any ideas?

    https://wordpress.org/plugins/mf-gig-calendar/

Viewing 1 replies (of 1 total)
  • Plugin Author Matthew Fries

    (@brewermfnyc)

    Hey there. Sorry to go missing so long.

    I’m not able to duplicate this on any of my installations. Not saying it’s not my problem, just I’m not sure how to test/fix it here!

    That assert() reference is used as part of what truncates the text in the event list in the admin area. It’s a block of code I reused from a reference online. It’s really in there for testing and should only give an error if the html in the description or location field is not properly nested – so I’m guessing that’s why you’re getting the errors and I’m not.

    I actually just commented line 1114 out of my plugin (mf_gig_calendar.php) and it works fine.

    Like so:

    // assert($openingTag == $tagName); // check that tags are properly nested.

    Feel free to do the same and see what happens. It won’t hurt your data – at worst something may look funny in the admin area’s event list if there really is something funny with your html. But I guess errors look funny too, don’t they!

    I’m reworking a lot of this in the next version of the plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Warning: assert() [function.assert]:’ is closed to new replies.