We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34075 ☆ A M B ☆
    • 130 Posts
    Quote from: fourroses666 at Feb 02, 2011, 05:10 PM

    Sends a bulk of 50 emails every xxx (setting of cronjob) ?

    Yes. Should be a setting, but is hardcoded for now. You can change it in the code if you wish smiley
      Jeroen Kenters

      MODX Professional | MODX Ambassador | Dutch MODX forums moderator

      website | twitter
      • 9995
      • 1,613 Posts
      I wish i could, me phpnooby ;-)
      Add it to TODO-list hehe, maybe someone will pick it up.

      Also a test email send directly would be a nice feature!
        Evolution user, I like the back-end speed and simplicity smiley
        • 28163
        • 10 Posts
        Morning Folks,

        Firstly, I’m a bit of a new arrival to DitsNews and Modx Revolution. I have attempted to install and configure DitsNews with little success. I have installed DitsNews via “Package Management” and created all the Templates and Chunks as required. I have created a “Cron Job” to what I believe to be the corrected path and configured Cpanel to send me an email every time the job runs, I have pasted the email contents below.


        /home/applusrt/public_html/core/components/ditsnews/cron/cron.php: line 1: ?php
        : No such file or directory
        /home/applusrt/public_html/core/components/ditsnews/cron/cron.php: line 2:
        : command not found
        /home/applusrt/public_html/core/components/ditsnews/cron/cron.php: line 3: syntax error near unexpected token `(’
        /home/applusrt/public_html/core/components/ditsnews/cron/cron.php: line 3: `require_once dirname(__FILE__).’/../../../../config.core.php’;
        ’

        Can anyone please offer some direction to what the problem may be?

        Thanks.
          • 34075 ☆ A M B ☆
          • 130 Posts
          I think you forgot to add the path to PHP in your cron.

          Example:
          /usr/local/bin/php /path/to/core/components/ditsnews/cron/cron.php

          Change this to wherever php is located on your server.
            Jeroen Kenters

            MODX Professional | MODX Ambassador | Dutch MODX forums moderator

            website | twitter
            • 28163
            • 10 Posts
            Hi Jeroen Kenters,

            Thanks for the prompt reply. I did see a similar post detailing the correct path to PHP however at that time I still did not get the Cron Job to run. Taking your advice, I revisited my Cpanel Cron Job options page and copied the path to PHP as you suggested and I worked perfectly!

            Thanks again for your help.
              • 7455
              • 2,204 Posts
              to run a cronjob to that php file is much easier to just use wget

              wget -O - -q -t 1 http://www.yoursite.tld/core/components/ditsnews/cron/cron.php
              

              no need to know your path etc

              only works on a linux host with wget installed
                follow me on twitter: @dimmy01
                • 34075 ☆ A M B ☆
                • 130 Posts
                Quote from: Dimmy at Mar 23, 2011, 04:14 PM

                to run a cronjob to that php file is much easier to just use wget

                wget -O - -q -t 1 http://www.yoursite.tld/core/components/ditsnews/cron/cron.php
                

                no need to know your path etc

                only works on a linux host with wget installed

                While this might be easier, I would not recommend it for 2 reasons:
                - when running in CGI (website) mode PHP usually times out faster than when running in CLI mode
                - the core directory should not be web-accessible
                  Jeroen Kenters

                  MODX Professional | MODX Ambassador | Dutch MODX forums moderator

                  website | twitter
                  • 7455
                  • 2,204 Posts
                  Quote from: Jeroen at Mar 23, 2011, 05:32 PM

                  While this might be easier, I would not recommend it for 2 reasons:
                  - when running in CGI (website) mode PHP usually times out faster than when running in CLI mode
                  - the core directory should not be web-accessible

                  Of course it times out faster, but normally when some newsletters gets send...there’s no need for
                  a high timeout. Sending newsletters should be easy as pie for an average server (unless you parse
                  every newsletter whilst adding them to the queue (A))
                    follow me on twitter: @dimmy01
                    • 22244
                    • 144 Posts
                    I’m sorry to point out that the Dittsnews module is completely broken in MODx 2.1.1
                    It’s impossible to save any settings or other values.
                    I noticed that no database tables are being created.
                      • 34075 ☆ A M B ☆
                      • 130 Posts
                      Quote from: onepack at Jun 23, 2011, 05:09 AM

                      I’m sorry to point out that the Dittsnews module is completely broken in MODx 2.1.1
                      It’s impossible to save any settings or other values.
                      I noticed that no database tables are being created.

                      We are working on a complete new version of DitsNews. It’s about 80% done at the moment and will be released soon. Lot’s of bug fixes including 2.1 compatibility.
                        Jeroen Kenters

                        MODX Professional | MODX Ambassador | Dutch MODX forums moderator

                        website | twitter