Group activity

  • Fazli replied on the discussion topic Fatal error for Error Log in Develop
    Thank you Nikolai. Deleting log files solved the problem.   view reply
  • Fazli added a new discussion topic Laminas\Mail\Protocol\Exception\RuntimeException error
    These are lines which I edited to configure the smtp settings from settings.php. Something must be wrong that sending mesages or liking a post causes error "Laminas\Mail\Protocol\Exception\RuntimeException".  --- /** *...
    • Your config is incorrect. Here're the correct settings:

      $CONFIG->emailer_transport = 'smtp';
      
      // $CONFIG->emailer_sendmail_settings = '';
      
      $CONFIG->emailer_smtp_settings = array(
          'name'              => 'localhost.localdomain',
          'host'              => 'ni-chrome.guzelhosting.com',
          //'port'              => 25,
          'connection_class'  => 'login',
          'connection_config' => [
              'username' => 'user',
              'password' => 'pass',
              'ssl'      => 'tls',
              'port'     => '587',
               //'use_complete_quit' => '',
          ],
      );
      Related discussions 1, 2, 3
    • I was wrong in the previuos post. Here's the corrected version:

      $CONFIG->emailer_transport = 'smtp';
      
      // $CONFIG->emailer_sendmail_settings = '';
      
      $CONFIG->emailer_smtp_settings = array(
          'name'              => 'localhost.localdomain',
          'host'              => 'ni-chrome.guzelhosting.com',
          'port'              => 25,
          'connection_class'  => 'login',
          'connection_config' => [
              'username' => 'user',
              'password' => 'pass',
              'ssl'      => 'tls',
              'port'     => '587',
               //'use_complete_quit' => '',
          ],
      );

      You shouldn't comment out the default port (25)

    • Thanks Nikolai,

      Your sample settings above made me clear. I reedited the settings. And also I realised that the email address in settings in administration page (Site email address (used when sending system emails))  is different than I used in settings.php to set the smtp.

      Now it works properly. Thanks for your helps. And I'm sorry for my carelessness which made here a bit busy.

  • Nikolai Shcherbin replied on the discussion topic Fatal error for Error Log in Develop
    Just Google it. Try to delete log files from /your_data_directory/logs/html/ view reply
  • Fazli added a new discussion topic Fatal error for Error Log in Develop
    Today I realized that clicking on Error Log creats Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 12970760 bytes)...
  • Wogker added a new discussion topic Delete All notifications
    I would like to delete all notifications from my Elgg 3.3.10, I have accumulated more than 250K. What database should I touch? Can I do it without fear of breaking the Elgg? I'm old and it scares me! :) Thanks, Wogker. PS: I know, I should...
  • Fazli replied on the discussion topic My elgg Cron doesn't work
    "No input file specified." I'm getting a warning from my email account related with the cron view reply
  • Fazli replied on the discussion topic My elgg Cron doesn't work
    Now it looks workin but something is still missing. When I look cron page it lists as below. It stops croning after every fifteen minutes Cron period Last completed Date and time Message Every... view reply
  • Nikolai Shcherbin replied on the discussion topic My elgg Cron doesn't work
    Cron Elgg 4 - Full tutorial Setup crontab -u www-data -e * * * * * /usr/bin/php /var/www/site/www/vendor/bin/elgg-cli cron -q -q flag will supress the output. You can remove it if you want cron logs to be saved on your server (that... view reply
  • Fazli replied on the discussion topic My elgg Cron doesn't work
    Thanks Nikolai, I got the reply from my hosting "If your cron configuration that needs to be added is /usr/local/bin/php /home/*****a4/ahalim.com/vendor/bin/elgg-cli cron -q, the edit has been made." Is the process made by the... view reply
  • Nikolai Shcherbin replied on the discussion topic My elgg Cron doesn't work
    Ask your hosting to install cron: crontab -u www-data -e * * * * * /usr/bin/php <path to>/vendor/bin/elgg-cli cron -q Be sure, your PHP located at /usr/bin/php You don't need set cron in cPanel after these changes. view reply
  • Fazli replied on the discussion topic My elgg Cron doesn't work
    I did your advices, Jerome, but cron still does not seem to work. I wrote what you said to my hosting server, and they applied your second solution "'php <path to>/vendor/bin/elgg-cli cron'". But still no changes in the... view reply
  • Fazli replied on the discussion topic My elgg Cron doesn't work
    Thanks. I will try view reply
  • Jerome Bakker replied on the discussion topic My elgg Cron doesn't work
    */15  * * * * so only every 15 minutes (could be just for testing) .../.../ahalim.com/vendor/elgg/elgg/elgg-cli cron -q maybe try .../.../ahalim.com/vendor/bin/elgg-cli cron that a different directory where the cli command... view reply
  • Fazli added a new discussion topic My elgg Cron doesn't work
    I tried to set cron in cpanel of my host server as below for  */15  * * * * .../.../ahalim.com/vendor/elgg/elgg/elgg-cli cron -q When I check if it works on the admin page using cron page I see that nothing has completed I need...
    • Cron Elgg 4 - Full tutorial

      Setup

      crontab -u www-data -e
      
      * * * * * /usr/bin/php /var/www/site/www/vendor/bin/elgg-cli cron -q

      -q flag will supress the output. You can remove it if you want cron logs to be saved on your server (that will flood your server inodes though).

      Test

      For testing you can use an -i and -f flags. 

      -i for interval name, 
      -f for force run even if job is not due.

      Note that you no longer need to setup a gazillion jobs for each period. 

      You only need to setup one cron job that hits the main command every minute. 
      Elgg's cron handler will determine, which cron handlers are due and will run them.

      Force

      php /var/www/site/www/vendor/bin/elgg-cli cron -i hourly -f

      Check

      crontab -u www-data -l

       

    • Now it looks workin but something is still missing. When I look cron page it lists as below. It stops croning after every fifteen minutes

      Cron period Last completed Date and time Message
      Every minute 57 minutes ago Sat, 25 Nov 2023 07:15:02 +0000 Cron jobs for "minute" started at Sat, 25 Nov 2023 07:15:02 +0000
      Cron interval "minute" started processing at Sat, 25 Nov 2023 07:15:02 +0000
      Cron jobs for "minute" completed at Sat, 25 Nov 2023 07:15:02 +0000
      Every five minutes 57 minutes ago Sat, 25 Nov 2023 07:15:02 +0000 Cron jobs for "fiveminute" started at Sat, 25 Nov 2023 07:15:02 +0000
      Cron interval "fiveminute" started processing at Sat, 25 Nov 2023 07:15:02 +0000
      Site notifications cleaning up notifications without linked entities
      Site notifications cleaned up 0 notifications without linked entities

      Cron jobs for "fiveminute" completed at Sat, 25 Nov 2023 07:15:02 +0000
      Every fifteen minutes 57 minutes ago Sat, 25 Nov 2023 07:15:02 +0000 Cron jobs for "fifteenmin" started at Sat, 25 Nov 2023 07:15:02 +0000
      Cron interval "fifteenmin" started processing at Sat, 25 Nov 2023 07:15:02 +0000
      Cron jobs for "fifteenmin" completed at Sat, 25 Nov 2023 07:15:02 +0000
      Every half hour Never    
      Hourly Never    
      Daily Never    
      Weekly Never    
      Monthly Never    
      Yearly Never


       

       

    • "No input file specified." I'm getting a warning from my email account related with the cron

  • Nikolai Shcherbin replied on the discussion topic Invalid Admin Section.
    https://learn.elgg.org/en/stable/appendix/faqs.html#missing-email view reply
  • Fazli replied on the discussion topic Invalid Admin Section.
    Strange!  I can like some of the posts. but some still produces. Indeed I can like my own posts but liking other members' posts still produce "Laminas\Mail\Transport\Exception\RuntimeException"  And one more thing,... view reply
  • Fazli replied on the discussion topic Invalid Admin Section.
    I was using some 3rd party plugins. Now I upgraded my elgg 4.3.9. It works without a 3rd party plugin. I can reach Error log page in develop section properly without getting any error such as "Invalid Admin Section.". But the other... view reply
  • Nikolai Shcherbin replied on the discussion topic Invalid Admin Section.
    Do you have 3rd party plugins activated? view reply
  • Nikolai Shcherbin replied on the discussion topic SMTP settings
    @Fazil, 1 - Where are you doing this: on localhost or production? 2 - Do you have 3rd party plugins activated? view reply
  • Nikolai Shcherbin replied on the discussion topic Fatal error for registering on fronthend
    I'm glad I could help you view reply