We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17459
    • 268 Posts
    Hello!

    I get error:
    « MODx Parse Error »MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »
     
    PHP error debug
      Error: 	file_get_contents(assets/snippets/maxigallery/templates/managebuttontpl.html) [function.file-get-contents]: failed to open stream: No such file or directory	 
      Error type/ Nr.: 	Warning - 2	 
      File: 	C:\HostingSpaces\okna\okna.entropia.us\wwwroot\assets\snippets\maxigallery\chunkie\chunkie.class.inc.php	 
      Line: 	73	 
      Line 73 source: 	$fcontents = file_get_contents($filename); 	 
     
    Parser timing
      MySQL: 	0.0156 s	(12 Requests)
      PHP: 	0.0980 s	 
      Total: 	0.1136 s
    



    my phpinfo here: http://okna.entropia.us/phpinfo.php
    i use latest stable version of ModX and MaxiGallary

    I read installation manual from modx wiki did it step by step:

    Creating your first gallery
    Create a container in MODx with page title My Galleries
    Check Published on the Page Settings tab
    Put the snippet call
     [!MaxiGallery? &display=`childgalleries`!] 

    in the document content area and save the document
    Create a new document in the folder with page title Gallery 1
    Check Published on the Page Settings tab
    Put the snippet call
     [!MaxiGallery? &display=`embedded` &embedtype=`slimbox` &pics_per_row=`3` &max_thumb_size=`110` &max_pic_size=`0` &thumb_use_dropshadow=`1`!]
    (or another call) in the document content area and save the document
    Repeat steps 4-6 for as many galleries as you need
    Go to the created Gallery 1-x documents and upload photos for that gallery using Manage pictures button. (Must be logged in as Manager to see the button, or logged in at frontend with webuser/webgroup that has rights to manage the gallery)

    Thanks!
      • 7923
      • 4,213 Posts
      It seems that assets/snippets/maxigallery/templates/managebuttontpl.html file is either missing or the path is incorrect


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

        http://okna.entropia.us/assets/snippets/maxigallery/templates/managebuttontpl.html

        This file is exist... I think problems in php-script...
          • 17459
          • 268 Posts
          I replace
          $fcontents = file_get_contents($filename);
          to
          $fcontents = file_get_contents($_SERVER["APPL_PHYSICAL_PATH"].$filename);
          and I get good page with Manage button...
            • 7923
            • 4,213 Posts
            Ok, I’ll look into this, thanks


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