Jay
Forum Replies Created
-
Ahmed,
You guys still looking into this?
You need a site staged?
Sincerely,
Jay
Any update on this?
I really appreciate that you’re putting your time into solving this.
I’m having my webhost looking into it as well. They are having a tough time finding the root cause.
My host’s support also can’t figure it out.
Sure, the markup itself is fine. It’s just that your plugin calculates a 1000px (default?) width for <=15kb hotlinked images.
If only it were able to correctly see the images’ dimensions, it would be fine.
It’s got to do something with the image dimension calculation event that fires upon receiving the images…
Thanks for putting your time into this. I’m very curious what could possibly cause this.
If you can’t replicate it on any other server, I’d be willing to set up a copy of my site on the same server, and give you access to it.
Let me know what you need from me. And good luck.
I’ve replaced the after_theme_setup hook with the the_post hook.
This makes page modifications be correctly reflected in the AMP output.
But is this the best way of doing it?
I have no idea how this AMP plugin hooks into stuff in order to do its stuff.
Am I using the best practice here?
I was able to create an example of incorrect image display:
I have found out what the problem is:
Smaller hotlinked images get stretched because AMP4WP calculates incorrect dimensions.
For bigger hotlinked images, the dimensions are calculated correctly.
Since smaller images are faster to download, this bug has to be related to some event or timer that’s keeping an eye on a hotlinked image’s dimensions.
In order to find out, I took a page with 13 products on it and downloaded the hotlinked product images.
I labelled them as ‘correct’ or ‘incorrect’, based on whether they were being displayed correctly.
When I had all 13 images in a folder, I sorted by size.
The result shows that this issue is undeniably linked to image size:
In my case, the cut-off point is around 15kb.
As my previous post points out, not all servers will be able to reproduce the problem.
Other servers might have another cut-off point for this bug to successfully reproduce.
I’m willing to work with support in order to resolve this issue and make AMP4WP better.
I just tried reproducing this issue in a test page on test website on a throwaway server I have.
Could not reproduce the issue. Gonna have to be able to send my website’s url somewhere…
I found it. It was in the post builder.
Thanks!
Forum: Plugins
In reply to: [Table of Contents Plus] [TOC] Shortcode Does Not Work On Static Front PageEarlier, you wrote: “does not work even on my regular page. pathetic.”.
And yeah, you do need 2 or more headings.
As for the frontpage, that’s also a setting you need to turn on.
It works fine for me now.
- This reply was modified 7 years, 7 months ago by Jay.
Forum: Plugins
In reply to: [Plugin: WP Super Cache] Half-On Works, Super Caching Does NotThis thread got closed by akismet right after posting it. So I’m bumping it up.
Forum: Fixing WordPress
In reply to: WP 2.5 Media Gallery OptionsBug submitted:
Forum: Fixing WordPress
In reply to: WP 2.5 Media Gallery OptionsI got this problem too. The images just won’t link to the files directly, even if you fill out the correct image url.
Instead, they link to some sub-post that shows yet another thumbnail image…
??