• Resolved Tom

    (@atomiktd)


    I have 2 banners rotating from wp-content/banners/
    They are in 3 different sizes each – 768, 1024 and full.
    Still I get significant number of 404 errors (Redirection plugin) concerning other sizes of banner. They are generated by my site so I suppose, AdRotate plugin wants them.
    Is there any way to suppress such behavior? i.e. plugin gets closest size of banner without “probing” site in case it can produce desired one.

    https://www.ads-software.com/plugins/adrotate/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Arnan de Gans

    (@adegans)

    Sure, add the missing images for the smaller 2 sizes.

    Thread Starter Tom

    (@atomiktd)

    I don’t get you Arnan or I was not clear enough.

    In my understanding, it looks like I have to produce countless banner mutation for each screen size my visitors happen to use. And because I cannot predict all sizes, I am forced to keep adding missing ones as they arrive. I know it by seeing 404 error produced by AdRotate plugin trying to fetch non-existing banner size.

    Why not to employ different approach? Let’s say, you fetch banner size closest (rounded down) to client browser size? Obviously you know all sizes you have at your service at the moment so there is no need to produce links with non-existing images.

    Plugin Author Arnan de Gans

    (@adegans)

    AdRotates responsive feature supports 5 sizes. If you use only 3 then for the left-over 2 it may generate errors on the screensizes associated with it. Adding those 2 missing images solves that. Check the features description for more information.

    If the image is missing, the script will try to load it. If it doesn’t exist (so when the error occurs) it loads the bigger image instead. But, you don’t have to predict sizes or make countless ads. Just 5 ads for pre-set sizes per advert. AdRotate will use the correct image automatically by detecting the viewport.

    You can use the same image for each size if you want. For example the image.768.jpg and the image.1024.jpg can be the same file (duplicated). That won’t matter to AdRotate. It just looks a bit weird in some themes because the size is off.

    Thread Starter Tom

    (@atomiktd)

    It is new for me but explains a lot. I understand a trick with same size. It is clear, I did it before :). Plugin cannot check all images over and over to confirm their size. It is user’s responsibility to create proper sizes and name them accordingly.

    I couldn’t find explanation you mention. I would be happy to read it. Where do I find it?

    Plugin Author Arnan de Gans

    (@adegans)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘A lot of 404 errors on different banners sizes’ is closed to new replies.