We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14867
    • 65 Posts
    this was the first problem when i included the kalendar:
    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »
     
    PHP error debug
      Error: 	Unknown(/www/htdocs/v165885/hfg/modxhttp://www.hfg-forum.de/modx/assets/snippets/kalender/themes/gold/theme.php): failed to open stream: No such file or directory	 
      Error type/ Nr.: 	Warning - 2	 
      File: 	/www/htdocs/v165885/hfg/modx/manager/includes/document.parser.class.inc.php(748) : eval()'d code	 
      Line: 	211	 
     
    Parser timing
      MySQL: 	0.0108 s	(10 Requests)
      PHP: 	0.0435 s	 
      Total: 	0.0543 s	 




    i changed some things in the code because (like u can see) the path was wrong...
    but what happened ? ...

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »
     
    PHP error debug
      Error: 	Unknown(http://www.hfg-forum.de/modx/assets/snippets/kalender/themes/gold/theme.php): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found 	 
      Error type/ Nr.: 	Warning - 2	 
      File: 	/www/htdocs/v165885/hfg/modx/manager/includes/document.parser.class.inc.php(748) : eval()'d code	 
      Line: 	225	 
     
    Parser timing
      MySQL: 	0.5214 s	(10 Requests)
      PHP: 	0.1027 s	 
      Total: 	0.6241 s	 
    
    
    


    now i don’t know what to do. i installed all the things like told.
    can someone help ?
      42
      • 14867
      • 65 Posts
      ok i changed the path in system.... something was wrong there in
      "Ressourcen-URL:"
        42
        • 7923
        • 4,213 Posts
        The path should be filesystem path and not an url.. So it should be /www/htdocs/v165885/hfg/modx/assets/snippets/kalender/themes/gold/theme.php

        revert the snippet to it’s original state (eg. copy any files/code you have changed over again), then try changin:

        $assets_path = $modx->config[’rb_base_url’];

        to

        $assets_path = "assets/"


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 14867
          • 65 Posts
          somehow... firefox makes the same parse error but IE shows the page without a calendar...
          just the calling...

          but the kalendar doesn’t work...
          do i have to configure something else ?

          i put this in my template:

          [!Kalender?parent=1257!]
            42