We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27889
    • 415 Posts
    in the 49 beta 2, when trying to delete a picture Maxigallery raise an error:
    Error: unlink(assets/galleries/46/) [function.unlink]: Is a directory
    Error type/ Nr.: Warning - 2
    File: /home.6/b/o/u/bourling/www/assets/snippets/maxigallery/maxigallery.php
    Line: 344
    Line 344 source: unlink($path_to_gal.$deletepic[’filename’]);

    The picture is deleted in MaxiGallery table but no file nor folder is deleted
      MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
      MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
      • 17282
      • 283 Posts
      hmm .. im getting a parse error with this!

      can anyone help?

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

      PHP error debug
      Error: Unknown(/home2/zombie/public_html/redemptionDEV/assets/snippets/maxigallery/maxigallery.php): failed to open stream: No such file or directory
      Error type/ Nr.: Warning - 2
      File: /home2/zombie/public_html/redemptionDEV/manager/includes/document.parser.class.inc.php(733) : eval()’d code
      Line: 606

      Parser timing
      MySQL: 0.0062 s (4 Requests)
      PHP: 0.0737 s
      Total: 0.0799 s
        Everytime you use Flash ... a puppy dies .....
        R.G Taylor
        • 7923
        • 4,213 Posts
        Quote from: Soda at Nov 22, 2006, 01:58 AM

        Error: unlink(assets/galleries/46/) [function.unlink]: Is a directory
        Hmm... a directory... that’s weird. So does this come in every gallery with all snippet calls or just with a specific snippet call..? and what’s the call? Also, did you remove all pictures from the gallery at that time?

        Quote from: Lizard at Nov 22, 2006, 05:22 AM

        hmm .. im getting a parse error with this!
        Did you copy all files to correct folders? if you just upload the assets folder found in the download archive, it should copy all files to right places...


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 17282
          • 283 Posts
          I did mate .. checked and double checked!
            Everytime you use Flash ... a puppy dies .....
            R.G Taylor
            • 7923
            • 4,213 Posts
            Well, the error says it cannot find the file /home2/zombie/public_html/redemptionDEV/assets/snippets/maxigallery/maxigallery.php, so you are absolutely sure that the file is in place? And check that all folders have the same case, so not MaxiGallery but maxigallery, etc. If that file is there, I don’t know what to say.


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 17282
              • 283 Posts
              ok zi sorted that problem! (i had created a snippets/maxigallery inside snippets! DOh!

              now im ghetting this tho!

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

              PHP error debug
              Error: move_uploaded_file(): Unable to move ’/tmp/phpxKhLLy’ to ’assets/galleries/12/294_filename.jpg’
              Error type/ Nr.: Warning - 2
              File: /home2/zombie/public_html/redemptionDEV/assets/snippets/maxigallery/maxigallery.php
              Line: 254
              Line 254 source: move_uploaded_file( $_FILES[’file’.$i][’tmp_name’] , $path_to_gal.$name );

              Parser timing
              MySQL: 0.0064 s (7 Requests)
              PHP: 0.0579 s
              Total: 0.0643 s
              ive set folder permissions on galleries to 777!
                Everytime you use Flash ... a puppy dies .....
                R.G Taylor
                • 27889
                • 415 Posts
                To be sure I deleted all table, gallery and files and it works ok.
                  MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                  MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
                  • 7923
                  • 4,213 Posts
                  His webspace quota had exceeded, it’s working now, kind of.. What about your problem soda? Did you get it resolved?


                    "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                    • 27889
                    • 415 Posts
                    What about your problem soda? Did you get it resolved?
                    Yes, I suppose it is some problems (from me) in the database, as I’m in a developping/testing phase, I make remove lot of galleries and sometimes change call’s parameters, and alter the table so I think the table and files wasn’t synchronized. I tell you if it happens again (with more informations).

                    Can you tell me if the integration of MaxiGallerySolo is planned quickly, if not I will trying an other solution, and don’t waiting for it.
                      MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                      MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
                      • 7923
                      • 4,213 Posts
                      Quote from: Soda at Nov 23, 2006, 01:36 AM

                      Can you tell me if the integration of MaxiGallerySolo is planned quickly, if not I will trying an other solution, and don’t waiting for it.
                      It won’t happen very soon I’m afraid.. I’m on a work trip until the end of the year, or actually, maybe mid january next year... and I have to put in very long days at work currently, so I won’t be doing any coding for a while at my freetime.. I did install eclipse to my laptop already, but don’t feel like starting it.. smiley Sorry.

                      I will do updates when I feel like it, but the pace won’t be what it was few weeks ago..


                        "He can have a lollipop any time he wants to. That's what it means to be a programmer."

                      This discussion is closed to further replies. Keep calm and carry on.