• Resolved mauricioarango

    (@mauricioarango)


    Hi,
    I am creating a modified theme, based on the twentyeleven theme that came with my install.

    I have several types of attachments: jpegs, gifs and mp3s.

    The jpgs and mp3s attachements are displayed according to the image.php and audio.php template files (this last one I created myself).

    BUT
    none of the GIFs are displayed.
    If I follow an url of the form https://localhost/wordpress/?attachment_id=238
    (that’s the id of the gif attachment)
    the page doesn’t load anything and after a few minutes I get this answer:
    Remote server closed the connection before sending response header

    What can I do? Any help would be greatly appreciated.

    Thanks,

    M

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter mauricioarango

    (@mauricioarango)

    I should add,
    shouldn’t the GIF be also displayed via the image.php template? if the jpegs show according to that template why the GIF wouldn’t?
    I’ve been stuck for hours with this issue.
    Again, any insights would be really appreciated.

    Thanks,

    M

    Perhaps the issue is within the image itself? And, yes, image.php will be used to display all images.

    Thread Starter mauricioarango

    (@mauricioarango)

    thanks, but the image seems to be fine.
    when i display it on a post page along any other images it shows up well. Even if it is an animated gif.

    the problem happens when i want to see the GIF on a page of its own.

    It is as if wordpress didn’t know how to handle this attachment and so doesn’t associate it with the right type of template.

    Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the original Twenty Eleven theme to rule out any theme-specific problems.

    Thread Starter mauricioarango

    (@mauricioarango)

    thank you so much for your input.

    It turns out the problem was somewhere else. something completely unrelated to the type of graphic file. Your indications (switching to the original theme and testing) were the light to debug my theme on development.
    The fact that this problem showed with GIF files was just a coincidence.
    Thank you for all your help.

    No problem. Glad you got it sorted. ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Attachment template failing for GIF image’ is closed to new replies.