Menu

Image Directory Error

Help
Dan Dlugos
2002-03-24
2003-07-07
  • Dan Dlugos

    Dan Dlugos - 2002-03-24

    I just installed the gallery plugin.  I followed all the directions, but when I click on the "create gallery" button on mod.php?mod=gallery&op=mainmenu, I get the error "An image directory error occurred. Please check you gallery configuration file."

    I looked through my configuration file.  There is nothing I can see that is wrong or out of place.  I also double-checked to make sure my images & media directory are both chmod to 777

    Any suggestions as to what canbe causing this error?  If need be, you can reace me via e-mail dan@weasel.cx

     
    • Anonymous

      Anonymous - 2002-04-27

      I do have the same problem.
      Everything seems to be OK but also the same error.

       
    • Andrew Fisher

      Andrew Fisher - 2002-04-27

      Your $gal_path variable in the config. file is incorrect. Basically, the script can't open $gal_path/images. The path needs to be an absolute path, so check it.

       
    • Anonymous

      Anonymous - 2002-05-07

      It is not just the $gal_path. You have to make sure that the directory structure is created. The zip file in the download does not contain all the required dirctories.

      In step (1) of the installation instructions it says:

      "Under "gallery", if the folders "images" and "media" are not there, create the directories "images" and "media". Under "media", create a directory named "thumbnails".

      If you create the media, media/thumbnails, and images directory you should be GTG.

      Billy-

       
    • Greg Fishbone

      Greg Fishbone - 2002-06-26

      I'm having the same problem, and I've tried all of these things.  Help!

       
      • Andrew Fisher

        Andrew Fisher - 2002-06-29

        Please try and be more specific about your problem because it's real vague. Also, what's your web site's URL?

         
    • Anonymous

      Anonymous - 2002-07-26

      I am also receiving the following error at www.hwpc.org:

      Error!
      An image directory error occurred. Please check you gallery configuration file.

      I have the following paths:

      /* Absolute system path to the gallery mod directory. Exclude trailing slash. */
      $gal_path = '/data/mod/gallery'; ## example: /home/htdocs/mod/gallery

      /* Relative URL to the gallery mod directory. Exclude trailing slash */
      $gal_url = './mod/gallery'; ## example: /mod/gallery

      I have the following directories:

      /data/mod/gallery
      drwxrwxrwx   2 x users        4096 Jul 26 15:39 images
      drwxrwxrwx   3 x users        4096 Jul 26 15:36 media
      drwxrwxrwx   2 x users        4096 Jul 26 15:39 uploads

      /data/mod/gallery/media
      drwxrwxrwx   2 x users        4096 Jul 26 15:36 thumbnails

      Any help is appreciated, thanxs.

       
    • Anonymous

      Anonymous - 2002-08-25

      I had the same problem.  read the faq in the above link.

       
    • Anonymous

      Anonymous - 2002-10-12

      if you are running the phpwebsite, then just mess up your dbconnect.php file (located in the root file of phpwebsite), so that it cannot access your database.

      run your website and it will give you an error page (stating that your dbconnect.php is wrong on line 11, or so)

      it will list your path in bold, just copy it over to the gallery_config, and then fix your dbconnect.php back to normal.  worked very fine for me, and i didn't have to wait for my webhost to get back to me.

       
    • Anonymous

      Anonymous - 2003-02-14

      sufado,

      This is the right answer. This should be submitted to the FAQ mentioned above.

       
    • Melvin Hendrix

      Melvin Hendrix - 2003-07-07

      The absolute path for gallery is as follows (with no trailing slash):

      Linux: /home/www/htdocs/PHPWEBSITE_DIR/mod/gallery // no trailng slash

      Windows: C:\\inetpub\\wwwroot\\PHPWEBSITE_DIR\\mod\\gallery

      Windows PHPDEV: /phpdev/www/phpwebsite_en/mod/gallery

       

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.