We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15976
    • 44 Posts
    This is my first use of MaxiGallery and I get the following error when trying to add a photo. Any suggestions?

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »
     
    PHP error debug
      Error: 	mkdir() [function.mkdir]: No such file or directory	 
      Error type/ Nr.: 	Warning - 2	 
      File: 	/var/users/dotty/ltcc.dotty.net.nz/htdocs/assets/snippets/maxigallery/maxigallery.php	 
      Line: 	313	 
      Line 313 source: 	if(!mkdir($mg->path_to_gal, 0777)) { 	 
     
    Parser timing
      MySQL: 	0.0174 s	(7 Requests)
      PHP: 	0.0935 s	 
      Total: 	0.1109 s
      • 7923
      • 4,213 Posts
      Try v0.6 test version from the sticky topic.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 15976
        • 44 Posts
        Thanks, got it sorted smiley
          • 8531
          • 12 Posts
          I tried now all tips and versions - but I get always an error message.
          I’m not able to upload pictures via web - and if I upload them via ftp it’s not possible to use the ’resync gallery’ button (nothing happens).

          Error Code v.06:
          PHP error debug
            Error: 	mkdir() [function.mkdir]: No such file or directory	 
            Error type/ Nr.: 	Warning - 2	 
            File: 	/home/scripts/web/cms/assets/snippets/maxigallery/maxigallery.php	 
            Line: 	359	 
            Line 359 source: 	if(!mkdir(substr($mg->path_to_gal, 0, -1), octdec($mg->mgconfig['chmod_folders']))) { 	 


          error code of stable maxigallery:
          PHP error debug
            Error: 	mkdir() [function.mkdir]: No such file or directory	 
            Error type/ Nr.: 	Warning - 2	 
            File: 	/home/scripts/web/cms/assets/snippets/maxigallery/maxigallery.php	 
            Line: 	313	 
            Line 313 source: 	if(!mkdir($mg->path_to_gal, 0777)) { 


          I tried the changees in line 313 and so on - but nothing works.

          PHP: PHP Version 5.2.5
          SafeMode=off
          Server: RedHat

          ..... I don’t know what I can do now.....working about 2 days on that - but nothing helps...
            • 8531
            • 12 Posts
            So I found a Problem with the Basepath - and get it fixed - but now I get an empty Site after uploading an image.
            The image is stored in the directory - but the maxigallery-site is empty....

            I got it solved with help of a friend.

            $path_to_galleries="assets/galleries/"; // [ path ]
            define(MAXIGALLERY_PATH, "assets/snippets/maxigallery/");
              • 32042
              • 9 Posts
              Quote from: doze at Jun 22, 2009, 05:11 PM

              Try v0.6 test version from the sticky topic.

              Hi I have a similar problem

              « MODx Parse Error »
              MODx encountered the following error while attempting to parse the requested resource:
              « PHP Parse Error »

              PHP error debug
              Error: mkdir() [function.mkdir]: Unable to access assets/galleries/4/
              Error type/ Nr.: Warning - 2
              File: /misc/27/000/111/791/1/user/web/modxcms.webdesignercornwall.com/assets/snippets/maxigallery/maxigallery.php
              Line: 313
              Line 313 source: if(!mkdir($mg->path_to_gal, 0777)) {

              Parser timing
              MySQL: 0.0064 s (1 Requests)
              PHP: 0.0709 s
              Total: 0.0774 s



              Can you help with this I have posted a new topic.. sorry I’m a noob just thought I’d ask a master!