We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13428 ☆ A M B ☆
    • 1,031 Posts
    One small thing. Insert after:
    $cPHPMailer->From = $modx->config['emailsender'];

    this line:
    $cPHPMailer->FromName = '[PHPIDS] ' . $modx->config['site_name'];
      • 28439
      • 222 Posts
      In this new beta 5 you can configure a sender name, this is only used with SMTP mails. The complete value of this field is used, if not empty, $modx->config[’site_name’] is not added.
      @Jako: Write as sender name now whatever you want wink

      Please use the complete new parameter line, because there was a typo, $useMODXLog instead of $useMODxLog.

      The new beta is available at modx.phpids.0.6.1.1c.BETA5.zip
        Gone away and found a better place to stay
        • 28439
        • 222 Posts
        On PHPIDS is a new release available.

        All the changed up to the latest beta will be available under the name PHP-IDS, because I couldn’t revert the wrong version number of the initial release.
        This release will be available after a system administrator took a look over it.

        Thanks to all for their ideas, especially Jako.
          Gone away and found a better place to stay
          • 32540
          • 19 Posts
          Hi Stefanie,

          Thanks for the great plug-in. I appreciate the hard work.

          After updating my site to Evo 1.0.2 (from 1.0.1), I noticed that the PHPIDS Plugin broke. Here is the error I’m seeing in the System Events:

          Warning: Unterminated comment starting line 1 in /manager/includes/document.parser.class.inc.php(746) : eval()’d code on line 1
            • 28439
            • 222 Posts
            Hello withincontext,

            Can you please tell me the version number of PHPIDS and the version number of the plugin?
              Gone away and found a better place to stay
              • 32540
              • 19 Posts
              Hi Stefanie,

              I’m using 0.6.2 for both the plugin and PHPIDS. I haven’t touched either of these components. I just upgraded to Evo 1.0.2.

              Any help you can provide is appreciated.

              Thanks!
                • 28439
                • 222 Posts
                I’ve found out, what the problem is. There must have been a change of the plugin interpreter with version 1.0.1.

                /** <?php /**

                /** <?php helped Zend Studio to interpret the first line, that the file contains PHP code. /** helped PHPDocumentator to make a documentation of the data. Normally this shouldn’t go into any problems, because inside a comment one can place as many new comment openings as one wants.

                Just remove the first line and add the following line instead, and everything will work fine:
                /**


                I’ll do a new version of the plugin today. This version will be first available from my website.

                And there is a new PHPIDS available: 0.6.3.1. The plugin does work with this version.
                  Gone away and found a better place to stay
                  • 32540
                  • 19 Posts
                  Hrmm, I changed:

                  /** <?php /**


                  to:

                  /**


                  and I’m getting this error in the System Events:

                  syntax error, unexpected ’{’


                  Parse error: syntax error, unexpected ’{’ in manager/includes/document.parser.class.inc.php(746) : eval()’d code on line 69
                    • 28439
                    • 222 Posts
                    There is no { in line 69.

                    Try the one attached in the ZIP file and please update PHPIDS.
                      Gone away and found a better place to stay
                      • 32540
                      • 19 Posts
                      undecided

                      syntax error, unexpected '{'
                      
                      
                      Parse error: syntax error, unexpected '{' in manager/includes/document.parser.class.inc.php(746) : eval()'d code on line 68


                      I know, there is no { at line 68. I’m baffled. I used the plug-in code from your attachment and I upgraded to PHP-IDS 0.6.3.1.