cron spot

 
Hello,
how to see if cron stains are throwing well ex: Garbage Collector how to change cron spot settings if needed
cordially
  • In the admin are go to the "Administer" - "Statistics" - "Cron" section. This page shows you when the cronjobs (for the different time intervals) have run for the last time. There's also the the output of the last run shown.

    If you use my Croncheck plugin (https://elgg.org/plugins/1864611) the "Cron" menu entry will be "Croncheck" instead but still list the latest cron runs and additionally also shows you which functions have been registered by Elgg and plugins to the different cron intervals. So, you can see if you might need to add another cronjob on the server (if you haven't set up Elgg cronjobs for all interval yet).

    The cron interval used by Garbagecollector (and Logrotate) can be set on the plugin settings pages of these plugin ("Configure" - "Settings" - ''Garbagecollector' or "Logrotate" respectively).

  •  
    I checked I did
    not have anything while I validated once a week why do not I have a cron spot?
     
     
    I launched the command monsite / cron / run and here is what I got
     

    Bienvenue sur Elgg.

    Secondary loader failed to return row for 5084

    IncompleteEntityException Object
    (
    [message:protected] => Secondary loader failed to return row for 5084
    [string:Exception:private] => exception 'IncompleteEntityException' with message 'Secondary loader failed to return row for 5084' in /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/AttributeLoader.php:235
    Stack trace:
    #0 /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/ElggUser.php(117): Elgg\AttributeLoader->getRequiredAttributes(Object(stdClass))
    #1 /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/ElggUser.php(81): ElggUser->load(Object(stdClass))
    #2 /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/Database/EntityTable.php(276): ElggUser->__construct(Object(stdClass))
    #3 /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/Database/EntityTable.php(347): Elgg\Database\EntityTable->rowToElggStar(Object(stdClass))
    #4 /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/Notifications/NotificationsService.php(428): Elgg\Database\EntityTable->get(5084, 'user')
    #5 /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/Notifications/NotificationsService.php(292): Elgg\Notifications\NotificationsService->sendNotification(Object(Elgg\Notifications\SubscriptionNotificationEvent), 5084, 'email', Array)
    #6 /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/Notifications/NotificationsService.php(245): Elgg\Notifications\NotificationsService->sendNotifications(Object(Elgg\Notifications\SubscriptionNotificationEvent), Array)
    #7 /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/lib/notification.php(204): Elgg\Notifications\NotificationsService->processQueue(1528272824)
    #8 [internal function]: _elgg_notifications_cron('cron', 'minute', '', Array)
    #9 /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/PluginHooksService.php(52): call_user_func_array('_elgg_notificat...', Array)
    #10 /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/lib/elgglib.php(827): Elgg\PluginHooksService->trigger('cron', 'minute', Array, '')
    #11 /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/lib/cron.php(83): elgg_trigger_plugin_hook('cron', 'minute', Array, '')
    #12 /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/lib/cron.php(119): _elgg_cron_run()
    #13 [internal function]: _elgg_cron_page_handler(Array, 'cron')
    #14 /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/Router.php(100): call_user_func('_elgg_cron_page...', Array, 'cron')
    #15 /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/Application.php(436): Elgg\Router->route(Object(Elgg\Http\Request))
    #16 /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/Application.php(384): Elgg\Application->run()
    #17 /home/pb268ho5/public_html/rs/index.php(8): Elgg\Application::index()
    #18 {main}
    [code:protected] => 0
    [file:protected] => /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/AttributeLoader.php
    [line:protected] => 235
    [trace:Exception:private] => Array
    (
    [0] => Array
    (
    [file] => /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/ElggUser.php
    [line] => 117
    [function] => getRequiredAttributes
    [class] => Elgg\AttributeLoader
    [type] => ->
    [args] => Array
    (
    [0] => stdClass Object
    (
    [guid] => 5084
    [type] => user
    [subtype] => 0
    [owner_guid] => 0
    [site_guid] => 1
    [container_guid] => 0
    [access_id] => 2
    [time_created] => 1517074386
    [time_updated] => 1517074616
    [last_action] => 1517075297
    [enabled] => yes
    )

    )

    )

    [1] => Array
    (
    [file] => /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/ElggUser.php
    [line] => 81
    [function] => load
    [class] => ElggUser
    [type] => ->
    [args] => Array
    (
    [0] => stdClass Object
    (
    [guid] => 5084
    [type] => user
    [subtype] => 0
    [owner_guid] => 0
    [site_guid] => 1
    [container_guid] => 0
    [access_id] => 2
    [time_created] => 1517074386
    [time_updated] => 1517074616
    [last_action] => 1517075297
    [enabled] => yes
    )

    )

    )

    [2] => Array
    (
    [file] => /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/Database/EntityTable.php
    [line] => 276
    [function] => __construct
    [class] => ElggUser
    [type] => ->
    [args] => Array
    (
    [0] => stdClass Object
    (
    [guid] => 5084
    [type] => user
    [subtype] => 0
    [owner_guid] => 0
    [site_guid] => 1
    [container_guid] => 0
    [access_id] => 2
    [time_created] => 1517074386
    [time_updated] => 1517074616
    [last_action] => 1517075297
    [enabled] => yes
    )

    )

    )

    [3] => Array
    (
    [file] => /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/Database/EntityTable.php
    [line] => 347
    [function] => rowToElggStar
    [class] => Elgg\Database\EntityTable
    [type] => ->
    [args] => Array
    (
    [0] => stdClass Object
    (
    [guid] => 5084
    [type] => user
    [subtype] => 0
    [owner_guid] => 0
    [site_guid] => 1
    [container_guid] => 0
    [access_id] => 2
    [time_created] => 1517074386
    [time_updated] => 1517074616
    [last_action] => 1517075297
    [enabled] => yes
    )

    )

    )

    [4] => Array
    (
    [file] => /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/Notifications/NotificationsService.php
    [line] => 428
    [function] => get
    [class] => Elgg\Database\EntityTable
    [type] => ->
    [args] => Array
    (
    [0] => 5084
    [1] => user
    )

    )

    [5] => Array
    (
    [file] => /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/Notifications/NotificationsService.php
    [line] => 292
    [function] => sendNotification
    [class] => Elgg\Notifications\NotificationsService
    [type] => ->
    [args] => Array
    (
    [0] => Elgg\Notifications\SubscriptionNotificationEvent Object
    (
    [action:protected] => create
    [object:protected] => ElggObject Object
    (
    [url_override:protected] => 
    [temp_metadata:protected] => Array
    (
    )

    [temp_annotations:protected] => Array
    (
    )

    [temp_private_settings:protected] => Array
    (
    )

    [volatile:protected] => Array
    (
    )

    [orig_attributes:protected] => Array
    (
    )

    [attributes:protected] => Array
    (
    [guid] => 126
    [type] => object
    [subtype] => 14
    [owner_guid] => 36
    [site_guid] => 1
    [container_guid] => 125
    [access_id] => 7
    [time_created] => 1503415510
    [time_updated] => 1503415510
    [last_action] => 1503415510
    [enabled] => yes
    [title] => forum des fans de BMW
    [description] => 
    )

    [valid:protected] => 
    [time:ElggData:private] => 
    )

    [actor:protected] => ElggUser Object
    (
    [url_override:protected] => 
    [temp_metadata:protected] => Array
    (
    )

    [temp_annotations:protected] => Array
    (
    )

    [temp_private_settings:protected] => Array
    (
    )

    [volatile:protected] => Array
    (
    )

    [orig_attributes:protected] => Array
    (
    [last_action] => 1528272332
    )

    [attributes:protected] => Array
    (
    [guid] => 36
    [type] => user
    [subtype] => 0
    [owner_guid] => 0
    [site_guid] => 1
    [container_guid] => 0
    [access_id] => 2
    [time_created] => 1501759825
    [time_updated] => 1522510586
    [last_action] => 1528272332
    [enabled] => yes
    [name] => Administrateur
    [username] => jmperu
    [password] => 
    [salt] => 
    [password_hash] => $2y$10$q39GlY6TkeDSlfVE9O3r9ORljxR2eusblR5vrQiMiap3/Ochdy6s2
    [email] => jmperu@free.fr
    [language] => fr
    [banned] => no
    [admin] => yes
    [prev_last_action] => 1528272332
    [last_login] => 1528270783
    [prev_last_login] => 1528182360
    )

    [valid:protected] => 
    [time:ElggData:private] => 
    )

    )

    [1] => 5084
    [2] => email
    [3] => Array
    (
    )

    )

    )

    [6] => Array
    (
    [file] => /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/Notifications/NotificationsService.php
    [line] => 245
    [function] => sendNotifications
    [class] => Elgg\Notifications\NotificationsService
    [type] => ->
    [args] => Array
    (
    [0] => Elgg\Notifications\SubscriptionNotificationEvent Object
    (
    [action:protected] => create
    [object:protected] => ElggObject Object
    (
    [url_override:protected] => 
    [temp_metadata:protected] => Array
    (
    )

    [temp_annotations:protected] => Array
    (
    )

    [temp_private_settings:protected] => Array
    (
    )

    [volatile:protected] => Array
    (
    )

    [orig_attributes:protected] => Array
    (
    )

    [attributes:protected] => Array
    (
    [guid] => 126
    [type] => object
    [subtype] => 14
    [owner_guid] => 36
    [site_guid] => 1
    [container_guid] => 125
    [access_id] => 7
    [time_created] => 1503415510
    [time_updated] => 1503415510
    [last_action] => 1503415510
    [enabled] => yes
    [title] => forum des fans de BMW
    [description] => 
    )

    [valid:protected] => 
    [time:ElggData:private] => 
    )

    [actor:protected] => ElggUser Object
    (
    [url_override:protected] => 
    [temp_metadata:protected] => Array
    (
    )

    [temp_annotations:protected] => Array
    (
    )

    [temp_private_settings:protected] => Array
    (
    )

    [volatile:protected] => Array
    (
    )

    [orig_attributes:protected] => Array
    (
    [last_action] => 1528272332
    )

    [attributes:protected] => Array
    (
    [guid] => 36
    [type] => user
    [subtype] => 0
    [owner_guid] => 0
    [site_guid] => 1
    [container_guid] => 0
    [access_id] => 2
    [time_created] => 1501759825
    [time_updated] => 1522510586
    [last_action] => 1528272332
    [enabled] => yes
    [name] => Administrateur
    [username] => jmperu
    [password] => 
    [salt] => 
    [password_hash] => $2y$10$q39GlY6TkeDSlfVE9O3r9ORljxR2eusblR5vrQiMiap3/Ochdy6s2
    [email] => jmperu@free.fr
    [language] => fr
    [banned] => no
    [admin] => yes
    [prev_last_action] => 1528272332
    [last_login] => 1528270783
    [prev_last_login] => 1528182360
    )

    [valid:protected] => 
    [time:ElggData:private] => 
    )

    )

    [1] => Array
    (
    [36] => Array
    (
    [0] => email
    )

    [68] => Array
    (
    [0] => email
    )

    [5084] => Array
    (
    [0] => email
    )

    [5917] => Array
    (
    [0] => email
    )

    [7142] => Array
    (
    [0] => email
    )

    [12934] => Array
    (
    [0] => email
    )

    [14222] => Array
    (
    [0] => email
    )

    [16480] => Array
    (
    [0] => email
    )

    [23781] => Array
    (
    [0] => email
    )

    [42178] => Array
    (
    [0] => email
    )

    [46910] => Array
    (
    [0] => email
    )

    [51863] => Array
    (
    [0] => email
    )

    [74883] => Array
    (
    [0] => email
    )

    [80845] => Array
    (
    [0] => email
    )

    )

    )

    )

    [7] => Array
    (
    [file] => /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/lib/notification.php
    [line] => 204
    [function] => processQueue
    [class] => Elgg\Notifications\NotificationsService
    [type] => ->
    [args] => Array
    (
    [0] => 1528272824
    )

    )

    [8] => Array
    (
    [function] => _elgg_notifications_cron
    [args] => Array
    (
    [0] => cron
    [1] => minute
    [2] => 
    [3] => Array
    (
    [time] => 1528272779
    )

    )

    )

    [9] => Array
    (
    [file] => /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/PluginHooksService.php
    [line] => 52
    [function] => call_user_func_array
    [args] => Array
    (
    [0] => _elgg_notifications_cron
    [1] => Array
    (
    [0] => cron
    [1] => minute
    [2] => 
    [3] => Array
    (
    [time] => 1528272779
    )

    )

    )

    )

    [10] => Array
    (
    [file] => /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/lib/elgglib.php
    [line] => 827
    [function] => trigger
    [class] => Elgg\PluginHooksService
    [type] => ->
    [args] => Array
    (
    [0] => cron
    [1] => minute
    [2] => Array
    (
    [time] => 1528272779
    )

    [3] => 
    )

    )

    [11] => Array
    (
    [file] => /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/lib/cron.php
    [line] => 83
    [function] => elgg_trigger_plugin_hook
    [args] => Array
    (
    [0] => cron
    [1] => minute
    [2] => Array
    (
    [time] => 1528272779
    )

    [3] => 
    )

    )

    [12] => Array
    (
    [file] => /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/lib/cron.php
    [line] => 119
    [function] => _elgg_cron_run
    [args] => Array
    (
    )

    )

    [13] => Array
    (
    [function] => _elgg_cron_page_handler
    [args] => Array
    (
    [0] => Array
    (
    [0] => run
    )

    [1] => cron
    )

    )

    [14] => Array
    (
    [file] => /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/Router.php
    [line] => 100
    [function] => call_user_func
    [args] => Array
    (
    [0] => _elgg_cron_page_handler
    [1] => Array
    (
    [0] => run
    )

    [2] => cron
    )

    )

    [15] => Array
    (
    [file] => /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/Application.php
    [line] => 436
    [function] => route
    [class] => Elgg\Router
    [type] => ->
    [args] => Array
    (
    [0] => Elgg\Http\Request Object
    (
    [attributes] => Symfony\Component\HttpFoundation\ParameterBag Object
    (
    [parameters:protected] => Array
    (
    )

    )

    [request] => Symfony\Component\HttpFoundation\ParameterBag Object
    (
    [parameters:protected] => Array
    (
    )

    )

    [query] => Symfony\Component\HttpFoundation\ParameterBag Object
    (
    [parameters:protected] => Array
    (
    [__elgg_uri] => /cron/run
    )

    )

    [server] => Symfony\Component\HttpFoundation\ServerBag Object
    (
    [parameters:protected] => Array
    (
    [PATH] => /usr/local/bin:/usr/bin:/bin
    [TEMP] => /tmp
    [TMP] => /tmp
    [TMPDIR] => /tmp
    [PWD] => /
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
    [HTTP_ACCEPT_ENCODING] => gzip, deflate, sdch
    [HTTP_ACCEPT_LANGUAGE] => fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4,de;q=0.2
    [HTTP_CONNECTION] => keep-alive
    [CONTENT_LENGTH] => 0
    [HTTP_COOKIE] => Elgg=v4fanj7e8f5d5farp4m3hfseu3
    [HTTP_HOST] => driving-lovers.com
    [HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36
    [HTTP_UPGRADE_INSECURE_REQUESTS] => 1
    [REDIRECT_UNIQUE_ID] => WxeXihAvEIMs-nhHVMQERwAAAAQ
    [REDIRECT_SCRIPT_URL] => /cron/run
    [REDIRECT_SCRIPT_URI] => http://driving-lovers.com/cron/run
    [REDIRECT_STATUS] => 200
    [UNIQUE_ID] => WxeXihAvEIMs-nhHVMQERwAAAAQ
    [SCRIPT_URL] => /cron/run
    [SCRIPT_URI] => http://driving-lovers.com/cron/run
    [SERVER_SIGNATURE] => 
    [SERVER_SOFTWARE] => Apache
    [SERVER_NAME] => driving-lovers.com
    [SERVER_ADDR] => 185.2.4.87
    [SERVER_PORT] => 80
    [REMOTE_ADDR] => 90.21.16.219
    [DOCUMENT_ROOT] => /home/pb268ho5/public_html/rs
    [REQUEST_SCHEME] => http
    [CONTEXT_PREFIX] => 
    [CONTEXT_DOCUMENT_ROOT] => /home/pb268ho5/public_html/rs
    [SERVER_ADMIN] => webmaster@driving-loverscom.driving-lover.fr
    [SCRIPT_FILENAME] => /home/pb268ho5/public_html/rs/index.php
    [REMOTE_PORT] => 50276
    [REDIRECT_URL] => /cron/run
    [REDIRECT_QUERY_STRING] => __elgg_uri=cron/run
    [SERVER_PROTOCOL] => HTTP/1.1
    [REQUEST_METHOD] => GET
    [QUERY_STRING] => __elgg_uri=cron/run
    [REQUEST_URI] => /cron/run
    [SCRIPT_NAME] => /index.php
    [PHP_SELF] => /index.php
    [REQUEST_TIME_FLOAT] => 1528272779.0377
    [REQUEST_TIME] => 1528272779
    )

    )

    [files] => Symfony\Component\HttpFoundation\FileBag Object
    (
    [parameters:protected] => Array
    (
    )

    )

    [cookies] => Symfony\Component\HttpFoundation\ParameterBag Object
    (
    [parameters:protected] => Array
    (
    [Elgg] => v4fanj7e8f5d5farp4m3hfseu3
    )

    )

    [headers] => Symfony\Component\HttpFoundation\HeaderBag Object
    (
    [headers:protected] => Array
    (
    [accept] => Array
    (
    [0] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
    )

    [accept-encoding] => Array
    (
    [0] => gzip, deflate, sdch
    )

    [accept-language] => Array
    (
    [0] => fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4,de;q=0.2
    )

    [connection] => Array
    (
    [0] => keep-alive
    )

    [content-length] => Array
    (
    [0] => 0
    )

    [cookie] => Array
    (
    [0] => Elgg=v4fanj7e8f5d5farp4m3hfseu3
    )

    [host] => Array
    (
    [0] => driving-lovers.com
    )

    [user-agent] => Array
    (
    [0] => Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36
    )

    [upgrade-insecure-requests] => Array
    (
    [0] => 1
    )

    )

    [cacheControl:protected] => Array
    (
    )

    )

    [content:protected] => 
    [languages:protected] => 
    [charsets:protected] => 
    [encodings:protected] => 
    [acceptableContentTypes:protected] => 
    [pathInfo:protected] => 
    [requestUri:protected] => 
    [baseUrl:protected] => 
    [basePath:protected] => 
    [method:protected] => 
    [format:protected] => 
    [session:protected] => 
    [locale:protected] => 
    [defaultLocale:protected] => en
    [isForwardedValid:Symfony\Component\HttpFoundation\Request:private] => 1
    )

    )

    )

    [16] => Array
    (
    [file] => /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/Application.php
    [line] => 384
    [function] => run
    [class] => Elgg\Application
    [type] => ->
    [args] => Array
    (
    )

    )

    [17] => Array
    (
    [file] => /home/pb268ho5/public_html/rs/index.php
    [line] => 8
    [function] => index
    [class] => Elgg\Application
    [type] => ::
    [args] => Array
    (
    )

    )

    )

    [previous:Exception:private] => 
    [xdebug_message] => <tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> IncompleteEntityException: Secondary loader failed to return row for 5084 in /home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/AttributeLoader.php on line <i>235</i></th></tr>
    <tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
    <tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
    <tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0006</td><td bgcolor='#eeeeec' align='right'>237840</td><td bgcolor='#eeeeec'>{main}( )</td><td title='/home/pb268ho5/public_html/rs/index.php' bgcolor='#eeeeec'>.../index.php<b>:</b>0</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0112</td><td bgcolor='#eeeeec' align='right'>302120</td><td bgcolor='#eeeeec'>Elgg\Application::index( )</td><td title='/home/pb268ho5/public_html/rs/index.php' bgcolor='#eeeeec'>.../index.php<b>:</b>8</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.0287</td><td bgcolor='#eeeeec' align='right'>503728</td><td bgcolor='#eeeeec'>Elgg\Application->run( )</td><td title='/home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/Application.php' bgcolor='#eeeeec'>.../Application.php<b>:</b>384</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>4</td><td bgcolor='#eeeeec' align='center'>0.4095</td><td bgcolor='#eeeeec' align='right'>6538552</td><td bgcolor='#eeeeec'>Elgg\Router->route( )</td><td title='/home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/Application.php' bgcolor='#eeeeec'>.../Application.php<b>:</b>436</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>5</td><td bgcolor='#eeeeec' align='center'>0.4101</td><td bgcolor='#eeeeec' align='right'>6560528</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.call-user-func:{/home/pb268ho5/public-html/rs/vendor/elgg/elgg/engine/classes/Elgg/Router.php:100}&#39; target='_new'>call_user_func:{/home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/Router.php:100}</a>
    ( )</td><td title='/home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/Router.php' bgcolor='#eeeeec'>.../Router.php<b>:</b>100</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>6</td><td bgcolor='#eeeeec' align='center'>0.4101</td><td bgcolor='#eeeeec' align='right'>6560712</td><td bgcolor='#eeeeec'>_elgg_cron_page_handler( )</td><td title='/home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/Router.php' bgcolor='#eeeeec'>.../Router.php<b>:</b>100</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>7</td><td bgcolor='#eeeeec' align='center'>0.4101</td><td bgcolor='#eeeeec' align='right'>6560912</td><td bgcolor='#eeeeec'>_elgg_cron_run( )</td><td title='/home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/lib/cron.php' bgcolor='#eeeeec'>.../cron.php<b>:</b>119</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>8</td><td bgcolor='#eeeeec' align='center'>0.4229</td><td bgcolor='#eeeeec' align='right'>5996616</td><td bgcolor='#eeeeec'>elgg_trigger_plugin_hook( )</td><td title='/home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/lib/cron.php' bgcolor='#eeeeec'>.../cron.php<b>:</b>83</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>9</td><td bgcolor='#eeeeec' align='center'>0.4229</td><td bgcolor='#eeeeec' align='right'>5996616</td><td bgcolor='#eeeeec'>Elgg\PluginHooksService->trigger( )</td><td title='/home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/lib/elgglib.php' bgcolor='#eeeeec'>.../elgglib.php<b>:</b>827</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>10</td><td bgcolor='#eeeeec' align='center'>0.4229</td><td bgcolor='#eeeeec' align='right'>5999208</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.call-user-func-array:{/home/pb268ho5/public-html/rs/vendor/elgg/elgg/engine/classes/Elgg/PluginHooksService.php:52}&#39; target='_new'>call_user_func_array:{/home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/PluginHooksService.php:52}</a>
    ( )</td><td title='/home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/PluginHooksService.php' bgcolor='#eeeeec'>.../PluginHooksService.php<b>:</b>52</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>11</td><td bgcolor='#eeeeec' align='center'>0.4229</td><td bgcolor='#eeeeec' align='right'>5999888</td><td bgcolor='#eeeeec'>_elgg_notifications_cron( )</td><td title='/home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/PluginHooksService.php' bgcolor='#eeeeec'>.../PluginHooksService.php<b>:</b>52</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>12</td><td bgcolor='#eeeeec' align='center'>0.4229</td><td bgcolor='#eeeeec' align='right'>6000256</td><td bgcolor='#eeeeec'>Elgg\Notifications\NotificationsService->processQueue( )</td><td title='/home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/lib/notification.php' bgcolor='#eeeeec'>.../notification.php<b>:</b>204</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>13</td><td bgcolor='#eeeeec' align='center'>1.6521</td><td bgcolor='#eeeeec' align='right'>6283624</td><td bgcolor='#eeeeec'>Elgg\Notifications\NotificationsService->sendNotifications( )</td><td title='/home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/Notifications/NotificationsService.php' bgcolor='#eeeeec'>.../NotificationsService.php<b>:</b>245</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>14</td><td bgcolor='#eeeeec' align='center'>1.7289</td><td bgcolor='#eeeeec' align='right'>6306360</td><td bgcolor='#eeeeec'>Elgg\Notifications\NotificationsService->sendNotification( )</td><td title='/home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/Notifications/NotificationsService.php' bgcolor='#eeeeec'>.../NotificationsService.php<b>:</b>292</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>15</td><td bgcolor='#eeeeec' align='center'>1.7289</td><td bgcolor='#eeeeec' align='right'>6306408</td><td bgcolor='#eeeeec'>Elgg\Database\EntityTable->get( )</td><td title='/home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/Notifications/NotificationsService.php' bgcolor='#eeeeec'>.../NotificationsService.php<b>:</b>428</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>16</td><td bgcolor='#eeeeec' align='center'>1.7308</td><td bgcolor='#eeeeec' align='right'>6308952</td><td bgcolor='#eeeeec'>Elgg\Database\EntityTable->rowToElggStar( )</td><td title='/home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/Database/EntityTable.php' bgcolor='#eeeeec'>.../EntityTable.php<b>:</b>347</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>17</td><td bgcolor='#eeeeec' align='center'>1.7308</td><td bgcolor='#eeeeec' align='right'>6309896</td><td bgcolor='#eeeeec'>ElggUser->__construct( )</td><td title='/home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/Elgg/Database/EntityTable.php' bgcolor='#eeeeec'>.../EntityTable.php<b>:</b>276</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>18</td><td bgcolor='#eeeeec' align='center'>1.7309</td><td bgcolor='#eeeeec' align='right'>6313472</td><td bgcolor='#eeeeec'>ElggUser->load( )</td><td title='/home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/ElggUser.php' bgcolor='#eeeeec'>.../ElggUser.php<b>:</b>81</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>19</td><td bgcolor='#eeeeec' align='center'>1.7310</td><td bgcolor='#eeeeec' align='right'>6316120</td><td bgcolor='#eeeeec'>Elgg\AttributeLoader->getRequiredAttributes( )</td><td title='/home/pb268ho5/public_html/rs/vendor/elgg/elgg/engine/classes/ElggUser.php' bgcolor='#eeeeec'>.../ElggUser.php<b>:</b>117</td></tr>

    )

  • I checked I did not have anything while I validated once a week why do not I have a cron spot?

    I'm afraid I don't understand what you are trying to say with this sentence. Most likely the meaning got lost in the translation.

    Are you trying to say that the cronjobs are not being executed? Have you set them up on the server (see http://learn.elgg.org/en/stable/admin/cron.html)? I would make use of "run" (not even when trying to execute the cronjobs directly in the browser) but use the specific time intervals instead ("minute", "hourly", "weekly" etc.).

    The error you get might explain why the cronjobs do not complete successfully. I'm not 100% sure but I think there's maybe some error in the object_entities table in the database. It might help to use the dbvalidator plugin to fix this. Latest version of this plugin is available at https://github.com/Elgg/dbvalidator (use "clone or download" to download the zip archive and rename the folder to "dbvalidator" after unzipping). Do a "Validate" run with dbvalidator to see if it finds any error (if not it wouldn't help to do a "Fix" run). If it finds errors, FIRST make a database backup BEFORE trying to "Fix" the errors. If errors are found and fixed, you can try to run the cronjobs again. As I said, I would directly call a specific cron interval for testing (an interval you know some job is registered for - as you could check with the Croncheck plugin).

  • I passed dbvalidator
    no mistake
     
    I do not find the document clear it is necessary to create a crontab file as described in the doc? then do a cron spot that launches itself and that will handle all the elgg patches?
  • I depends on your server if you need to set up the cronjobs with a crontab file or if you have other options. For example, CPanel has its own configuration panel to add cronjobs. Other administration tools might also have some cron config functionality.

    The cronjob you need to set up on the server does nothing else but visiting certain urls of your site at the time intervals the cronjobs have been added for. If these urls are visited it triggers the corresponding Elgg event hook and the functions registered for it will be executed.

    You need to have either lwp-request or wget installed on the server. These tools trigger the urls. So, a command for the minute cronjob could look like

    /usr/bin/lwp-request -m GET -d http://SITE.URL/cron/minute/ >/dev/null 2>&1

    or with wget

    /usr/bin/wget --spider --output-document=/dev/null http://SITE.URL/cron/minute/ >/dev/null 2>&1

    Of course, you might need to adjust the path to lwp-request or wget on the server and you need to adjust the site url. If youi can set up your cronjobs for example in CPanel the above command would be entered as the command to be executed in the cronjob and then you would select the interval in the CPanel cronjob config tool. For the other intervals you would only need to change the interval in the url (minute becomes for example hourly, daily, monthly etc.) and set up the time interval to be used correspondingly.

    If in doubt how to set up the cronjobs, ask your hoster for help. The command is what they might not know (but you can provide them the command above) but how to set up a cronjob in general should be known by them.

    As you say that dbvalidator found no errors, I don't know what would have caused the error you posted above then. Does it still occur and what is the job that causes it (don't use the "run" interval but use the specific intervals when testing manually)?

  •  
    I do not see a cron directory on my site, just create the directories Where do they have to be and what do they contain (and what)
  •  
    here is what i created in my cpanel in cron stains
    * * * * * wget --spider --output-document = / dev / null https://driving-lovers.com/cron/minute/&gt; / dev / null 2> & 1
    0 0 * * 0 wget --spider --output-document = / dev / null https://driving-lovers.com/cron/weekly/&gt; / dev / null 2> & 1
    0 * * * * wget --spider --output-document = / dev / null https://driving-lovers.com/cron/hourly/&gt; / dev / null 2> & 1
    0 0 * * * wget --spider --output - document = / dev / null https://driving-lovers.com/cron/daily/&gt; / dev / null 2> & 1
     
     
    in cron status I see that the minute is incrementing well
     
    is it okay
     
  • You don't need to create a cron directory or any files at all. Elgg registers a pagehandler that handles the calls to the site.url/cron/<interval&gt; urls.

    If you see the cronjobs being executes on the cron status page in the admin section of your Elgg site, the jobs most likely run well. Just to be sure you got it right: there are no spaces in the comand if I haven't added any spaces in it in my last posting (wheras you have some spaces in the commands you posted where there shouldn't be any). It's

    wget    --spider    --output-document=/dev/null    http://SITE.URL/cron/minute/     >/dev/null     2>&1

    I just added some additional spaces to make it more obvious (one space between the parameters is enough). The parameters "--output-document=/dev/null", ">/dev/null" and "2>&1" are used only to suppress any output of the wget command. Otherwise the output would cause a lot of useless output.

  •  
    there is no space it is the screenshot that gives this impression in the status of crons I have the traces of the different launches that I created minutes, hours, days and weeks
     
    thanks for all your information, you have been very understanding.
     
    do you know as well the problems of posting that there can be between the various plugin?
    I have a problem between easytheme2 hypewall and tidypics
  • See my answer in the corresponding thread (and if the issue is not caused by Tidypics it would be nice to leave it out here ;-) ).