Menu

listing images not showing up.

Mike
2003-06-25
2003-06-27
  • Mike

    Mike - 2003-06-25

    First off....what a great mod for phpwebsite. You are to be commended. Everything is working except for the listing images. I am only using jpg's to make things simple. I did notice the bug in the permissions on the agents and agency folders, but what has me purplexed is the double //marks before the image file. It seems to not like my combination of server and software settings GD is there..here is phpinfo link  http://www.finesthealthspas.com/sideshow.php

     
    • Wendall Cada

      Wendall Cada - 2003-06-25

      The folder permissions is not a bug. You need to set the group permissions for your images directories to 777 with world read permissions. If the permissions aren't set like this, the images won't save, or they just won't appear after they are saved if the world is denied read permission. I don't believe the // in the path will not effect the file appearing. I really think this is a permissions problem. But please let me know if you can't get this working by filing a support request.

      HTH

      Wendall

       
    • Mike

      Mike - 2003-06-27

      Group permissions set to 777. Image still not showing up. One thing which might make different PhpWebsite is runing one layer deeper than the root directory.  You can't make the virtural directory of PhpWebsite 777....page will not display if you do that.

       
      • Moses

        Moses - 2003-06-27

        Try with some images files that you know are displaying Ok in another program.  Some time, no in phpwslistings, when I fetch an image file from another place, the file look OK but it not display. If you set the permissions to 777 and the name of the files are correct,  likely your images files are corrupted. Try with a set of images files that you know are working.

         
        • Mike

          Mike - 2003-06-27

          I found it...also found the solution to the // error look at line #'s 15 and 25   in the Class / ListingBaseImage.php file

          remove the trailing "/" after the directory base line #15
              var $_imageurl = "images/phpwslistings/";

          should read :

              var $_imageurl = "images/phpwslistings";

          and remove the trailing "/" after the base directory line #25
                  $this->_imagedir = $GLOBALS["core"]->home_dir . "images/phpwslistings/";

          should read :

                  $this->_imagedir = $GLOBALS["core"]->home_dir . "images/phpwslistings";

          That took care of the entire problem....I think it's more the fact that I was one folder deeper on my phpwebsite install file....at any rate it gets rid of the // problem and my images show up...just fine.

          Thanks for the inspiration to go get the answer and love the mod to the phpwebsite...I will be watching further...and hope my little contribution helped some. I did have to CHMOD the folders 777 which I did early on...it just kept driving me mad I tell ya.

          Peace,
          Kpax

           

Log in to post a comment.