Forums

[resolved] Theme adding ? after image in img tag (5 posts)

  1. Anonymous
    Unregistered
    Posted 1 year ago #

    When using the Monotype theme my images won't display. I have narrowed it down to a ? that is being inserted in the code after I save the post. ex. <img src="http://kellermangallery.com/blog/wp-content/uploads/2008/07/floweryseeds32.jpg?w=560"

    Note: the ? after "jpg". When I use a different theme I have no such problem. There is no ? and the image displays. Anyone have any ideas?

    Thanks.

  2. Anonymous
    Unregistered
    Posted 1 year ago #

    Well, it isn't the ? . I looked at the page source of a couple other blogs using monotone and that ? is there and the images show up just fine. I still can't figure out why my images won't display.

  3. Anonymous
    Unregistered
    Posted 1 year ago #

    I sent this to my host support and they fixed it! This is what they did.

    I commented out these 2 lines from the .htaccess

    #RewriteCond %{QUERY_STRING} ^.*(w|h|f)=.*$
    #RewriteRule ^(wp-content/uploads/.*.)(jpg|JPG|jpeg|png|PNG|gif|GIF)$ /thumb.php?image=$1$2 [QSA,L]

    It looks like the script still changes the colors based on the images. I also made the cache folder permissions 755 instead of 777. 777 can cause issues.

  4. ekakurniawan
    Member
    Posted 1 year ago #

    I have the same problem:

    1. image dont appear because the img url look like this: domain.com/wp-content/uploads/image.jpg?w=840

    2. so, i think the problem was “?w=840″ such thing that monotone added to the img url

    3. i find the “?w=840″ in functions.php. in line 84 (less or more) i find this: …image_url.’?w=…

    4. i try to hack little, adding space and two double quotes before ?w=. so the line will be: …image_url.’” “?w=…

    5. and now, the image appear. i am not a programer, and very little knowledge with PHP. i just try, and it work. I dont know what really happen!

    6. here my gallery: http://galeri.ekakurniawan.com

  5. noel
    Administrator
    Posted 1 year ago #

    If you are having problems with the query string urls (?w=) Make SURE that you have your rewrite rules installed - and that your host supports .htaccess files and mod_rewrite.

Topic Closed

This topic has been closed to new replies.

About this Topic