We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15734
    • 70 Posts
    Hi,
    I’ve created a site for a graphic designer friend and am using Maxigallery for her portfolio section. everything works fine on my development http:/kcc.homeip.net/peggy/portfolo.html. But when I upload it to my host (mediatemple) the portfolio section breaks. http://www.issenman.ca/index.php?id=2. I’ve turned off friendly URLs just in case. I’ve made sure the galleries directory is 777. Any ideas?

    Sorry if this has already been addressed. I did look but have found no reference to this error. Thanks. smiley
      • 26104
      • 36 Posts
      Just make sure that in the manager configuration settings the paths are defined in the correct way. The image is called directly throuhg it’s unix path. These paths are different on different servers most of the time, so be sure to change them.
        • 15734
        • 70 Posts
        Thanks for the reply. I did make sure that all 3 (I believe that’s all of them) places are set to the proper values:

        Resource path: /var/www/vhosts/issenman.ca/httpdocs/assets/
        Resource URL: http://issenman.ca/assets/
        File Manager Path: /var/www/vhosts/issenman.ca/httpdocs/

        I still get this when trying to view the gallery:

        « MODx Parse Error »
        MODx encountered the following error while attempting to parse the requested resource:
        « PHP Parse Error »
         
        PHP error debug
          Error: 	getimagesize(): Unable to access /var/www/vhosts/issenman.ca/httpdocs/assets/galleries/2/smureport2006.jpg	 
          Error type/ Nr.: 	Warning - 2	 
          File: 	/var/www/vhosts/issenman.ca/httpdocs/assets/snippets/maxigallery/maxigallery.php	 
          Line: 	1157	 
          Line 1157 source: 	$imagesize=getimagesize($modx->config['base_path'].$path_to_gal.$pics[$i]['filename']); 	 
         
        Parser timing
          MySQL: 	0.0149 s	(6 Requests)
          PHP: 	0.1278 s	 
          Total: 	0.1426 s


        Anything else you can think of? And thanks again.
          • 22303 MODX Staff
          • 10,725 Posts
          Sounds like you don’t have the proper file permissions or ownership on the file at /var/www/vhosts/issenman.ca/httpdocs/assets/galleries/2/smureport2006.jpg

          Likely, all of your images will need to have their permissions or ownership changed so they can be written to by the system user executing the PHP process (which varies widely, depending on your host server and configuration).
            • 15734
            • 70 Posts
            Hey OpenGeek,

            I did change /galleries/2/ and all the files to 777. Is this what you mean? I’m new to this so please excuse the silly question. Thanks for the help.

            Cheers.
              • 7923
              • 4,213 Posts
              Is there such file under /galleries/2? this url didn’t return anything at least, what version of maxigallery are you using? I have made some modification with recent versions that it doesn’t choke if the database table contains pictures that are not anymore in file system.. that seems to be the case here. You can edit the maxigallery database table straight with phpmyadmin or similar to remove the pictures that are not valid anymore.


                "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                • 15734
                • 70 Posts
                I see what you mean. The image does exist and it would be at that url. Not sure why the site doesn’t show it. It does if you go here:

                http://kcc.homeip.net/peggy/assets/galleries/2/smureport2006.jpg

                That’s my local site. I FTPed the whole site up at the same time and resent all of the images to that directory in case there was an issue with them. Hmmm, curious.


                  • 15734
                  • 70 Posts
                  Doze, I was using version .51 and upgraded to .52. Seemed to solve the problem. Resynching the gallery caused some issues but I think I can fix that by re-uploading the effected images in manage pictures.

                  Thanks very much for the replies. Keep up the good work. It’s much appreciated.