We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32241
    • 1,495 Posts
    Thanks for the cool tips Jason. I’ll try to test the calendar again with your tips.

      Wendy Novianto
      [font=Verdana]PT DJAMOER Technology Media
      [font=Verdana]Xituz Media
      • 10487 MODX Staff
      • 1,535 Posts
      With the change to the error reporting, I’m getting the same error as Mark using version 0.2b.

      The other snippet file causes this error:

      « MODx Parse Error »
      MODx encountered the following error while attempting to parse the requested resource:
      « PHP Parse Error »
       
      PHP error debug
        Error: 	Undefined index: parent	 
        Error type/ Nr.: 	Notice - 8	 
        File: 	W:\www\modx\manager\includes\document.parser.class.inc.php(691) : eval()'d code	 
        Line: 	23	 
       
      Parser timing
        MySQL: 	0.0400 s s	(7 Requests)
        PHP: 	0.1880 s s	 
        Total: 	0.2280 s s	 


      I’ll mull this one over for a bit and see if anything springs to mind that might help.

      Cheers, Garry
        Garry Nutting
        Senior Developer
        MODX, LLC

        Email: [email protected]
        Twitter: @garryn
        Web: modx.com
        • 18397
        • 3,250 Posts
        LOL! We are all getting the same kind of error with different variables!

        « MODx Parse Error »
        MODx encountered the following error while attempting to parse the requested resource: 
        « PHP Parse Error » 
          
        PHP error debug 
          Error:  Undefined index: day   
          Error type/ Nr.:  Notice - 8   
          File:  /home/virtual/site420/fst/var/www/html/manager/includes/document.parser.class.inc.php(691) : eval()'d code   
          Line:  72   
          
        Parser timing 
          MySQL:  0.0086 s s (13 Requests) 
          PHP:  0.0453 s s   
          Total:  0.0539 s s   
        
        
          • 32241
          • 1,495 Posts
          Ok...

          I did try Jason’s suggestion, and encounter a lot of error. lol. Should I be happy or not? I think I should, because the good news is, I can test this out on my system before sending it out to y’all.

          The other thing though, anybody ever use reclientscript and etc? Can I add a chunk of script and stylsheet that are suppose to be located at the top using reclientstartupscript? It’s giving me this error.

          « MODx Parse Error »
          MODx encountered the following error while attempting to parse the requested resource:
          « PHP Parse Error »
           
          PHP error debug
            Error: 	Undefined index: 	 
            Error type/ Nr.: 	Notice - 8	 
            File: 	/home/.fierce/novsun/novsun.net/MODx_v1.9.1/manager/includes/document.parser.class.inc.php	 
            Line: 	2036	 
            Line 2036 source: 	if ($this->loadedjscripts[$src]) return ''; 	 
           
          Parser timing
            MySQL: 	0.0000 s s	(0 Requests)
            PHP: 	0.1458 s s	 
            Total: 	0.1458 s s
          


          All I need is to put the js and css on the header with a chunk.
            Wendy Novianto
            [font=Verdana]PT DJAMOER Technology Media
            [font=Verdana]Xituz Media
            • 18397
            • 3,250 Posts
            reclientscript is documented on the support site.
              • 10487 MODX Staff
              • 1,535 Posts
              Hi,

              Any progress on this? It’s just that I’ve got a weekend of doing nothing so could help out with any testing or fault-finding if that’s going to be useful.

              Cheers, Garry
                Garry Nutting
                Senior Developer
                MODX, LLC

                Email: [email protected]
                Twitter: @garryn
                Web: modx.com
                • 32241
                • 1,495 Posts
                Sure thing Garry.

                I just tested out on my system, and all went well.
                I fixed a lot of bugs, after turning on that debug mode, suggested by Jason. embarrassed

                Anyway, I’ll post it tonight. Hopefully you can help me debug this out on weekend.

                Thanks Garry
                  Wendy Novianto
                  [font=Verdana]PT DJAMOER Technology Media
                  [font=Verdana]Xituz Media
                  • 32241
                  • 1,495 Posts
                  Ok, I just uploaded all the files again.

                  Please update all your files again. Btw, the caching mechanism is not working right. When you browse the calendar, and you change the calendar info, please visit your ftp, and remove all the created caching files on this snippet folder called cache. Don’t forget to allow write access to this folder.

                  Thanks Garry
                    Wendy Novianto
                    [font=Verdana]PT DJAMOER Technology Media
                    [font=Verdana]Xituz Media
                    • 18397
                    • 3,250 Posts
                    Grrrrrrrrrr!

                    Now this error:

                    « MODx Parse Error »
                    MODx encountered the following error while attempting to parse the requested resource:
                    « PHP Parse Error »
                     
                    PHP error debug
                      Error: 	Undefined variable: arrayResult	 
                      Error type/ Nr.: 	Notice - 8	 
                      File: 	/home/virtual/site420/fst/var/www/html/assets/snippets/calendar/calendar.db.class.php	 
                      Line: 	261	 
                      Line 261 source: 	for($i = 0; $i < count($arrayResult); $i++) { 	 
                     
                    Parser timing
                      MySQL: 	0.0092 s s	(14 Requests)
                      PHP: 	0.0524 s s	 
                      Total: 	0.0616 s s	 
                    
                      • 18397
                      • 3,250 Posts
                      I should note that this is coming off of a blank table (no events have been created yet b/c I can’t access the interface).