We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26641
    • 27 Posts
    In a php page you can do it by using:

    <?php
    ini_set(’display_errors’, 1);
    error_reporting(E_ALL);
    ?>

    Now, I’m not sure that it will catch parse errors in MODx but I don’t know. I’m not sure how you will use it on your particular setup. If you email me I can try and help you out a bit when I get time. senica at allebrum.com
      • 32052
      • 38 Posts
      Quote from: senica at Oct 12, 2010, 01:56 AM

      In a php page you can do it by using:

      <?php
      ini_set(’display_errors’, 1);
      error_reporting(E_ALL);
      ?>

      Now, I’m not sure that it will catch parse errors in MODx but I don’t know. I’m not sure how you will use it on your particular setup. If you email me I can try and help you out a bit when I get time. senica at allebrum.com

      Hi,

      I put the code at awpNav hope I got it right.
      The error says:

      Fatal error: Cannot instantiate non-existent class: awp in /home/content/b/c/d/bcdytoc/html/mod/manager/includes/document.parser.class.inc.php(770) : eval()'d code on line 34
      
        • 26641
        • 27 Posts
        Yeah, so bascially that means that MODx cannot find the file allebrumWordpress.inc.php. This is the file that contains the class that it is saying it cannot instantiate.

        There is a line like this in the snippets:
        if(!class_exists(’AWP’)){
        include("assets/snippets/allebrumWordpress/allebrumWordpress.inc.php");
        }

        Make sure that points to the right location on your server.
          • 32052
          • 38 Posts
          Quote from: senica at Oct 13, 2010, 01:42 AM

          Yeah, so bascially that means that MODx cannot find the file allebrumWordpress.inc.php. This is the file that contains the class that it is saying it cannot instantiate.

          There is a line like this in the snippets:
          if(!class_exists(’AWP’)){
          include("assets/snippets/allebrumWordpress/allebrumWordpress.inc.php");
          }

          Make sure that points to the right location on your server.

          Hi,

          I’ve changed the path where the allebrumWordpress.inc.php is located and after that i get this error.
          Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/content/b/c/d/bcdytoc/html/mod/assets/snippets/allebrumWordpress/allebrumWordpress.inc.php on line 21
          


          Any ideas?

          Cheers!
            • 26641
            • 27 Posts
            Okay, well, you made progress. It seems that it can now find the file. It is strange that you are seeing a parse error though unless you made changes to the file.

            I don’t mind taking a look real quick if you send over the user/pass to senica at allebrum.com. Other than that, you’ll have to brush up on a little PHP to track down the parse error.
              • 32052
              • 38 Posts
              Hi,

              Sent you the access details, let me know your findings.

              Cheers!

                • 32052
                • 38 Posts
                Hi,

                This problem or issue has already been SOLVED! For any of you guys who are using or will use the allebrumWordpress snippet that has the error similar to mine.
                You may need to check your PHP version. You need to have PHP5x for the script to run properly. Other than that the snippet works great!

                Cheers to senica!



                Quote from: weaknsick at Oct 18, 2010, 10:00 PM

                Quote from: senica at Oct 13, 2010, 01:42 AM

                Yeah, so bascially that means that MODx cannot find the file allebrumWordpress.inc.php. This is the file that contains the class that it is saying it cannot instantiate.

                There is a line like this in the snippets:
                if(!class_exists(’AWP’)){
                include("assets/snippets/allebrumWordpress/allebrumWordpress.inc.php");
                }

                Make sure that points to the right location on your server.

                Hi,

                I’ve changed the path where the allebrumWordpress.inc.php is located and after that i get this error.
                Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/content/b/c/d/bcdytoc/html/mod/assets/snippets/allebrumWordpress/allebrumWordpress.inc.php on line 21
                


                Any ideas?

                Cheers!
                  • 6506
                  • 35 Posts
                  Hi, I am using this for a project of mine and it works great, I have the posts pulling in, images etc, great. What I am struggling with is the same as ben_smith in this post

                  https://forums.modx.com/thread/38691/support-comments-for-wordpress-tools-0-3-release?page=4#dis-post-221204.

                  I can pull the date and time back in GMT format but need to format it so it displays as 03-07-2012 13:45 or 3 Jul or any other date format that I require. Did anyone manage to do this?

                  Thanks

                  Danny