Menu

Doesnt work... Imagetype (jpg) not supported

Help
2004-03-14
2013-04-08
  • Janne Raatikainen

    Hi.

    I use Debian stable with Apache 1.3.26 and PHP4.
    I installed this gallery according to instructions. Apache is running with "LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so"

    Here are my filelocations.

    Apache root:
    /var/www

    gallery: (jpg's)
    /var/www/mygallery/

    .htaccess:
    /var/www/.htaccess

    RewriteRule:
    RewriteRule .* /var/www/mygallery/__phpAutoGallery/wrapper.php [NE,QSA,L] (all in same line)

    permission to write to default /var/tmp
    (contains empty directories):
    /var/tmp/phpAutoGallery/192.168.1.10/mygallery/

    When I go to http://tuipveus.myftp.org/mygallery/ browser says: The requested URL /mygallery/ was not found on this server.

    When I go to http://tuipveus.myftp.org/mygallery/__phpAutoGallery/wrapper.php browser says: Fatal error: Image: Imagetype (jpg) not supported for reading. in /var/www/mygallery/__phpAutoGallery/include/Image_Toolbox.class.php on line 444

    I took that image from your website so it should work. I tried with gif-images too but error-text is just changing to

    Fatal error: Image: Imagetype (gif) not supported for reading. in /var/www/mygallery/__phpAutoGallery/include/Image_Toolbox.class.php on line 444

    I havent found any images which would work with this php. I think I have some configuration problem but what is it.

     
    • Janne Raatikainen

      I just forgot to mention that my GDlib is Version: 1.8.4-17.woody2 and I have also tried with version Version: 2.0.1-10.

      libjpeg62 also installed.

       
    • Nobody/Anonymous

      Was this ever solved?  I am having the same trouble..  Just installed tonight with the latest release...

      <jb>

       
    • Martin Theimer

      Martin Theimer - 2004-07-01

      ok, can you provide me the output of the "gd-section" of phpinfo() on your server. and the php-, and gdversion you are using.

       
    • Martin Theimer

      Martin Theimer - 2004-07-01

      btw...
      in the above example the .htaccess file should reside here:
      /var/www/mygallery/.htaccess
      (in the same folder as the __phpAutoGallery folder)

       
    • Ryan Rockey

      Ryan Rockey - 2004-07-27

      I am also having this trouble on a Gentoo box. My .htaccess file is however in the correct location. I cannot locate the "gd-section" of phpinfo output but you can view the output at http://68.61.63.190/info.php.
      .htaccess includes (I have tried w/ and w/o RewriteBase)
      +++++++begin selection+++++++
      RewriteEngine on
      RewriteBase /gallery/

      RewriteCond %{REQUEST_URI} !.*__phpAutoGallery/wrapper\.php.*
      RewriteRule .* /gallery/__phpAutoGallery/wrapper.php [NE,QSA,L]
      +++++++end selection+++++++

      I have tried both common extensions jpg and jpeg.

      Any help is greatly appreciated.

      Thanks,
      Rockey

       
      • Martin Theimer

        Martin Theimer - 2004-07-27

        the GD-extension must be compiled into PHP for this to work. (http://www.php.net/manual/en/ref.image.php)

        your version was explicitly compiled without GD:
        '--without-gd'
        as you can see in your "Configure Command' output in your phpinfo.

         
    • Ryan Rockey

      Ryan Rockey - 2004-07-28

      Wow! That was the quickest response I had ever gotten on sf.net.  Thanks a bunch pappkamerad!  It took me a couple of days to figure out exactly how to pass the --with-gd configure option with emerge but once I figured it out, it worked perfectly.  You hit that one right on the head!  Here is how I figured out how to compile gd into php with emerge: http://forums.gentoo.org/viewtopic.php?t=80679 . Thank you for the code and the support.

       
    • Nobody/Anonymous

      Is there a solution for this on debian?

       
    • bwiese

      bwiese - 2005-06-11

      I've come across this same problem running on debian and ubuntu, is there a good solution?

      I've got apache (1.3.31-6), php4 (4.3.8-3ubuntu7), php4-gd (4.3.8-3ubuntu7), and libgd-dev (1.8.4-36) installed.

      my phpinfo() report says apache was compiled with:
      --with-gd=shared,/us

      and for the GD section:

      GD Support     enabled
      GD Version     2.0 or higher
      FreeType Support     enabled
      FreeType Linkage     with freetype
      T1Lib Support     enabled
      JPG Support     enabled
      PNG Support     enabled
      WBMP Support     enabled

      Yet I still get this error, and it no-workie-for-me! =(
      Would greatly appreciate some helpful advice!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.