• Resolved s3ni

    (@s3ni)


    Hi, I really live your plugin but something doesn’t work after redesigning our page and I can’t figure out why.

    I use “Event Calender Pro Widgets” in my “Newspager” theme from tagdiv on my startpage. When I enable “Optimize CSS Code?” with any combination of settings, the startpage stays blank.

    I only get this:

    HTTP/2 200 OK
    vary: Accept-Encoding,Cookie,User-Agent
    link: https://WEBSITE/wp-json/; rel="https://api.w.org/"
    link: https://WEBSITE/wp-json/wp/v2/pages/81392; rel="alternate"; type="application/json"
    link: https://WEBSITE/; rel=shortlink
    x-et-api-version: v1
    x-et-api-root: https://WEBSITE/wp-json/tribe/tickets/v1/
    x-et-api-origin: https://WEBSITE
    x-tec-api-version: v1
    x-tec-api-root: https://WEBSITE/wp-json/tribe/events/v1/
    x-tec-api-origin: https://WEBSITE
    cache-control: max-age=600

    Obviously it is related to the “Event Calender Pro” plugin. So I followed their guide here: https://theeventscalendar.com/knowledgebase/k/using-the-events-calendar-with-autoptimize/ but not luck. I also followed the guide of the template here: https://forum.tagdiv.com/autoptimize-install-configuration/ but that doesn’t help either.

    Here my config:

    I added this to js exceptions:

    js/js/jquery/jquery.js,wp-includes/js/dist/,wp-includes/js/tinymce/,wp-content/plugins/the-events-calendar/, wp-content/plugins/events-calendar-pro/, wp-content/plugins/event-tickets/, wp-content/plugins/event-tickets-plus/, wp-content/plugins/the-events-calendar-filterbar/, wp-content/plugins/events-virtual/, wp-content/plugins/the-events-calendar-community-events/, wp-content/plugins/the-events-calendar-community-events-tickets/, wp-content/plugins/the-events-calendar-eventbrite-tickets/, js/jquery/jquery.min.js

    And this to css exeptions:

    wp-content/plugins/events-calendar-pro/src/resources/css/tribe-events-pro-mini-calendar-block.min.css,wp-content/cache/,wp-content/uploads/,admin-bar.min.css,dashicons.min,/wp-content/plugins/the-events-calendar/(.).css,/wp-content/plugins/events-calendar-pro/(.).css,/wp-content/plugins/event-tickets/(.).css,/wp-content/plugins/event-tickets-plus/(.).css,/wp-content/plugins/the-events-calendar-filterbar/(.).css,/wp-content/plugins/events-virtual/(.).css,/wp-content/plugins/the-events-calendar-community-events/(.).css,/wp-content/plugins/the-events-calendar-community-events-tickets/(.).css,/wp-content/plugins/the-events-calendar-eventbrite-tickets/(.*).css,wp-content/plugins/the-events-calendar/, wp-content/plugins/events-calendar-pro/, wp-content/plugins/event-tickets/, wp-content/plugins/event-tickets-plus/, wp-content/plugins/the-events-calendar-filterbar/, wp-content/plugins/events-virtual/, wp-content/plugins/the-events-calendar-community-events/, wp-content/plugins/the-events-calendar-community-events-tickets/, wp-content/plugins/the-events-calendar-eventbrite-tickets/wp-content/plugins/the-events-calendar, wp-content/plugins/events-calendar-pro, wp-content/plugins/event-tickets, wp-content/plugins/event-tickets-plus, wp-content/plugins/the-events-calendar-filterbar, wp-content/plugins/events-virtual, wp-content/plugins/the-events-calendar-community-events, wp-content/plugins/the-events-calendar-community-events-tickets, wp-content/plugins/the-events-calendar-eventbrite-tickets,/wp-content/plugins/the-events-calendar/src/resources/css/widget-events-list-skeleton.min.css,/wp-content/plugins/events-virtual/src/resources/css/widgets-events-common-skeleton.min.css,/wp-content/plugins/events-virtual/src/resources/css/widgets-events-common-full.min.css,/wp-content/plugins/the-events-calendar/src/resources/css/widget-events-list-full.min.css

    Can you please help my to find out what is wrong? Thank you!

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    do you have a staging website where you could leave things in a broken state so I can have a look at the request & response s3ni ?

    Thread Starter s3ni

    (@s3ni)

    There is no response. That is the funny thing.

    I left it broken now. Please check (soon)

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    nothing to see indeed, you can turn it back off. are there any PHP errors in the php-errorlog?

    Thread Starter s3ni

    (@s3ni)

    I found this:

    [Thu Jun 01 13:53:12.266145 2023] [-:error] [pid 98570:tid 34398723072] [client IP:63810] FastCGI: server "/var/run/hcgi/7285" stderr: PHP Warning: file_put_contents(/home/WEBSITE/wp-content/cache/autoptimize/js/autoptimize_snippet_492f2c1a7ea7eb83fe42e0ff7cb51aa2.js) [function.file-put-contents.php]: failed to open stream: No such file or directory in /home/WEBSITE/wp-content/plugins/autoptimize/classes/autoptimizeCache.php on line 121
    [Thu Jun 01 13:53:12.266158 2023] [-:error] [pid 98570:tid 34398723072] [client IP:63810] FastCGI: server "/var/run/hcgi/7285" stderr: PHP Warning: file_put_contents(/home/WEBSITE/wp-content/cache/autoptimize/js/autoptimize_snippet_7a4d24a86ccd49158a351783b7ba1054.js) [function.file-put-contents.php]: failed to open stream: No such file or directory in /home/WEBSITE/wp-content/plugins/autoptimize/classes/autoptimizeCache.php on line 121

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    unlikely to be related to the issue at hand .. this *smells* like an output buffer conflict :-/

    so to summarize; events cal. + CSS optimization makes the page go entirely white, even if “agregate CSS” and all other sub-options are off? can you try disabling the “minify excluded CSS/ JS” option?

    Thread Starter s3ni

    (@s3ni)

    I already tried that.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    hmmm … very much in the dark here.

    But I do see the exclusion list is not entirely correct; AO does not support wildcards (this is an error on the event manager support page, I’ve notified them), so instead of e.g. /wp-content/plugins/the-events-calendar/(.*).css you should simply put /wp-content/plugins/the-events-calendar/ in the CSS exclusion field (this is throughout the exclusion list (which seems to have some doubles, although that won’t cause issues), so you’ll need to make sure all those wildcards are removed.

    Thread Starter s3ni

    (@s3ni)

    Here an update. I reinstalled all Events Calender plugins and disabled one by one to find out which plugin broke the site. And it is the “the-events-calendar-filterbar” I checked and added it to the exceptions but that doesn’t help. So I disabled it and now it is working.

    Here my new exceptions list for js:

    /wp-includes/js/jquery/jquery.js, /wp-includes/js/dist/, /wp-includes/js/tinymce/, /wp-includes/js/jquery/jquery.min.js, /wp-includes/js/jquery/jquery-migrate.min.js,/wp-content/plugins/the-events-calendar/, /wp-content/plugins/events-calendar-pro/, /wp-content/plugins/event-tickets/, /wp-content/plugins/event-tickets-plus/, /wp-content/plugins/the-events-calendar-filterbar/, /wp-content/plugins/events-virtual/, /wp-content/plugins/the-events-calendar-community-events/, /wp-content/plugins/the-events-calendar-community-events-tickets/, /wp-content/plugins/the-events-calendar-eventbrite-tickets/, /wp-content/plugins/the-events-calendar-filterbar/

    And for css:

    /wp-content/plugins/the-events-calendar/, /wp-content/plugins/events-calendar-pro/, /wp-content/plugins/event-tickets/, /wp-content/plugins/event-tickets-plus/, /wp-content/plugins/the-events-calendar-filterbar/, /wp-content/plugins/events-virtual/, /wp-content/plugins/the-events-calendar-community-events/, /wp-content/plugins/the-events-calendar-community-events-tickets/, /wp-content/plugins/the-events-calendar-eventbrite-tickets/, /wp-content/plugins/the-events-calendar-filterbar/

    Does it matter if I write with a forward slash at the beginning? /wp-content/plugins/the-events-calendar-filterbar/ or wp-content/plugins/the-events-calendar-filterbar/

    I’ll wrote the support of the Events Calender hopefully they can assist me with this problem. I’ll write an update.

    Thank you for your great work and support!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    interesting, thanks for the feedback s3ni!

    re. the slash; should not matter, you could also use plugins/the-events-calendar-filterbar/ or even /the-events-calendar-filterbar/, but I doubt this will help, as it looks like the events filterbar plugin is flushing the output buffer, thereby deleting the HTML which AO stores in there to process. feel free to refer them to me if they need my assistance (futtta-at-gmail-dot-com).

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Autooptimize and “Events Calender Pro” = Blank page’ is closed to new replies.