oksanaromaniv
Forum Replies Created
-
Forum: Plugins
In reply to: [Redirection] Redirection Loop@johnny5 , you’re right. There was another redirect setup that caused this loop. Thanks for the help!
Forum: Plugins
In reply to: [Redirection] Redirection LoopYes, I’m not sure why it goes to 404 on the website. This page: https://www.mein-adventskalender.de/ideen/fuellen-erwachsene-2/gibt-es-den-weihnachtsmann/ doesn’t exist, but this: https://www.mein-adventskalender.de/ideen/fuellen-erwachsene/gibt-es-den-weihnachtsmann/ does, but redirects back to https://www.mein-adventskalender.de/ideen/fuellen-erwachsene-2/gibt-es-den-weihnachtsmann/
When I check in redirects checker both links produce “Too many redirects” for me. I also disabled the regex redirect at the moment.
Forum: Plugins
In reply to: [Redirection] Redirection Loop@johnny5 , It’s https://www.mein-adventskalender.de/ideen/fuellen-erwachsene-2/gibt-es-den-weihnachtsmann/ . When you check this in the https://www.redirect-checker.org/index.php tool, you can see the redirects. The URL should be: https://www.mein-adventskalender.de/ideen/fuellen-erwachsene/gibt-es-den-weihnachtsmann/
Forum: Plugins
In reply to: [Redirection] Find the infinite loop culprit@johnny5 , ok, thank you, will start hunting this one ??
Forum: Plugins
In reply to: [Redirection] Find the infinite loop culpritForum: Plugins
In reply to: [Gutenberg] How to get attributes of reusable blocks?Hello @jorgefilipecosta ,
Didn’t think about the REST API approach, that could work nicely.
Thanks,
OksanaForum: Plugins
In reply to: [WP YouTube Lyte] Videos are lazy loaded on one page and not on the otherGreat! I hope that priority “10” will work well ??
Forum: Plugins
In reply to: [WP YouTube Lyte] Videos are lazy loaded on one page and not on the otherSo was the lyte JS (and CSS) missing when you used autoptimize_html_after_minify?
On the working page the styles (general and background) were printed inline. Not sure about the JS though. On the not working page, there were no inline styles for the
lyte-wrapper
.and when talking about “on the draft page”, are you also referring to the solution with autoptimize_html_after_minify?
Yes.
Forum: Plugins
In reply to: [WP YouTube Lyte] Videos are lazy loaded on one page and not on the otherHey, managed to get it working with the next code:
remove_filter( 'the_content', 'lyte_parse', 4 ); add_filter( 'the_content', 'lyte_parse', 10 );
Looks like the “do_blocks” is added with priority 9, so moving the parser helped in my case ??
Forum: Plugins
In reply to: [WP YouTube Lyte] Videos are lazy loaded on one page and not on the otherHello @optimizingmatters ,
With the
autoptimize_html_after_minify
it parsed the content inside reusable blocks, but didn’t attach the event listeners: the background image and “click” event were not added as on other pages. What is strange that on the draft page it picked content from the reusable block and added events correctly, but on the /aktuell/ page not ??Forum: Plugins
In reply to: [WP YouTube Lyte] Videos are lazy loaded on one page and not on the otherYou’re right. The links to videos are in the reusable blocks that are saved as blocks with “ref” attribute. I will try the workaround, thanks! Though I thought that the plugin is hooking into
the_content()
after all the blocks are parsed so it should have access to the full HTML, shouldn’t it?Forum: Plugins
In reply to: [WP YouTube Lyte] local thumbnails caching not working@optimizingmatters , you’re right. No errors are logged or tracked with QM. The filter fixed the issue for me. I do suspect that that’s most probably connected to the Cloudways files serving. Thanks!
Forum: Plugins
In reply to: [WP YouTube Lyte] local thumbnails caching not workingI wasn’t successful in loggin any errors. I can’t find anything in the apache errors log or PHP error log. The thumbnails worked correctly on Sireground on the staging website, but the live website is hosted by Cloudways. They use Ngnix to serve static files and Apache to serve dynamic content with Varnish in between. Can we log anything to the Query Monitor plugin? Maybe the error logs on the server don’t work correctly.
Forum: Plugins
In reply to: [WP YouTube Lyte] After activation some of the pages return empty contentHello @optimizingmatters and @jhmattern, can confirm on my side that the pages work correctly ??
Forum: Plugins
In reply to: [WP YouTube Lyte] local thumbnails caching not workingThe strange thing is that if I add the random URL param at the beginning of the URL (as a first param), the link doesn’t work again. But can confirm it works with the param appended to the URL at the end. This leads me to think that maybe it’s connected to the string parsing logic?