We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31961
    • 23 Posts
    Hi there,

    I launched http://beautytalk.feelunqiue.com about 3-4 weeks ago.

    The client has pointed out to me that the website is down with the following error message:

    « MODx Parse Error »
    
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »
     
    PHP error debug
      Error:	Unknown(/mnt/gs01/herd04/37232/domains/beautytalk.feelunique.com/html/assets/plugins/phx/phx.parser.class.inc.php): failed to open stream: No such file or directory	 
      Error type/ Nr.:	Warning - 2	 
      File:	/nfs/c01/h05/mnt/37232/domains/beautytalk.feelunique.com/html/manager/includes/document.parser.class.inc.php(745) : eval()'d code	 
      Line:	10	 
     
    Parser timing
      MySQL:	0.0086 s	(0 Requests)
      PHP:	0.0316 s	 
      Total:	0.0403 s


    Not sure what might of caused this random error - as I haven’t touched it since it went live.

    Please help!!!
      • 26903
      • 1,336 Posts
      You seem to have lost ’plugins/phx/phx.parser.class.inc.php’ which is being included form the phx plugin code on line 10, either its really gone or you’ve got some other path error, looking at the phx plugin(1.4.4) its looking for an ’rb_base_dir’ from modx->config, check this in your config somewhere and has not been changed
        Use MODx, or the cat gets it!
        • 31961
        • 23 Posts
        The path:
        (/mnt/gs01/herd04/37232/domains/beautytalk.feelunique.com/html/assets/plugins/phx/phx.parser.class.inc.php)

        is there and hasn’t been removed (like i said the server or system hasn’t been touched in weeks - and this is a recent error that popped up today.
          • 26903
          • 1,336 Posts
          OK, if the path is there and you have permissions to see it it must be the code that does this in the phx plugin :-

          include_once $modx->config[’rb_base_dir’] . "plugins/phx/phx.parser.class.inc.php";

          Note it uses $modx->config[’rb_base_dir’] to build the final path from, you need to check if this has changed it may not be resolving to :-

          ’/mnt/gs01/herd04/37232/domains/beautytalk.feelunique.com/html/assets/’ as it would need to do.

          Although this is a fairly fundamental path. Can you run Modx at all, ie get to the manager?


            Use MODx, or the cat gets it!
            • 31961
            • 23 Posts
            ok looks like i found the cause or a tempory fix:

            looks like its something todo with PHX. If I go to:

            Manage Resources > Plugins > PHX > System Events

            ...and untick "OnParseDocument" the site comes backup. If i tick it (like its always been since the site was launched) the site goes down.

            Can any body shed any light on:

            • Why randomly today the site went down because of the above error?
            • How to fix?

            Best regards,

            Warmbeat


              • 31961
              • 23 Posts
              Quote from: shamblett at May 08, 2008, 06:10 AM

              OK, if the path is there and you have permissions to see it it must be the code that does this in the phx plugin :-

              include_once $modx->config[’rb_base_dir’] . "plugins/phx/phx.parser.class.inc.php";

              Note it uses $modx->config[’rb_base_dir’] to build the final path from, you need to check if this has changed it may not be resolving to :-

              ’/mnt/gs01/herd04/37232/domains/beautytalk.feelunique.com/html/assets/’ as it would need to do.

              Although this is a fairly fundamental path. Can you run Modx at all, ie get to the manager?




              I can get to the manager - and haven’t changed the base_dir
                • 7231
                • 4,205 Posts
                Check the event log to see if it has recorded any errors.
                  [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                  Something is happening here, but you don't know what it is.
                  Do you, Mr. Jones? - [bob dylan]
                  • 26903
                  • 1,336 Posts
                  OK, by unchecking that event your just not calling the phx code for it, ie some parts of your site that needed this plugin might break now, have a look at your server logs when the fault occurred, or just try things like clearing the cache, this sometimes helps.

                  As a test hard wire the path into the phx plugin code, ie edit the plugin to include_once the full path, not the modx->config generated path. Re-check the event and see what happens, if it still cant find it you may have a permissions prob, what OS are you on?
                    Use MODx, or the cat gets it!
                    • 7804
                    • 80 Posts
                    For what it’s worth, we had the same issue with PHx. The weird thing was that it worked fine on our test server, but once we uploaded it and enabled it on our live server, the site completely crapped out with the same error message you’re seeing. Our test server is running PHP5 while our live server is still using PHP 4.4.8.

                    We tried hard-coding paths into the PHx source code, checking directory permissions, checking file names, etc., and we could do absolutely nothing to make the error message go away. We wound up having to disable PHx and I haven’t been able to enable it since. I have no idea what could cause it.
                      • 31961
                      • 23 Posts
                      Seem to be getting a lot of errors like this in the system events log (think this has something todo with the Search Highlighting Plugin:
                      syntax error, unexpected T_VARIABLE
                      
                      
                      Parse error: syntax error, unexpected T_VARIABLE in /nfs/c01/h05/mnt/37232/domains/beautytalk.feelunique.com/html/manager/includes/document.parser.class.inc.php(745) : eval()'d code on line 51


                      and like expected the PHX error only started as of this morning, and pumped out the following error in the log:
                      « MODx Parse Error »
                      MODx encountered the following error while attempting to parse the requested resource:
                      « PHP Parse Error »
                       
                      PHP error debug
                        Error: 	Unknown(/mnt/gs01/herd04/37232/domains/beautytalk.feelunique.com/html/assets/plugins/phx/phx.parser.class.inc.php): failed to open stream: No such file or directory	 
                        Error type/ Nr.: 	Warning - 2	 
                        File: 	/nfs/c01/h05/mnt/37232/domains/beautytalk.feelunique.com/html/manager/includes/document.parser.class.inc.php(745) : eval()'d code	 
                        Line: 	10	 
                       
                      Parser timing
                        MySQL: 	0.0095 s	(5 Requests)
                        PHP: 	0.0393 s	 
                        Total: 	0.0488 s