error help

Secondary loader failed to return row for 484

Log at time 1551198822 may have more data.

IncompleteEntityException Object
(
[message:protected] => Secondary loader failed to return row for 484
[string:Exception:private] => IncompleteEntityException: Secondary loader failed to return row for 484 in /var/www/entremasons.com.br/html/entremasons/vendor/elgg/elgg/engine/classes/Elgg/AttributeLoader.php:235
Stack trace:
#0 /var/www/entremasons.com.br/html/entremasons/vendor/elgg/elgg/engine/classes/ElggUser.php(117): Elgg\AttributeLoader->getRequiredAttributes(Array)
#1 /var/www/entremasons.com.br/html/entremasons/vendor/elgg/elgg/engine/classes/ElggUser.php(81): ElggUser->load(Object(stdClass))
#2 /var/www/entremasons.com.br/html/entremasons/vendor/elgg/elgg/engine/classes/Elgg/Database/EntityTable.php(276): ElggUser->__construct(Object(stdClass))
#3 /var/www/entremasons.com.br/html/entremasons/vendor/elgg/elgg/engine/classes/Elgg/Database/EntityTable.php(347): Elgg\Database\EntityTable->rowToElggStar(Object(stdClass))
#4 /var/www/entremasons.com.br/html/entremasons/vendor/elgg/elgg/engine/lib/entities.php(205): Elgg\Database\EntityTable->get(484)
#5 /var/www/entremasons.com.br/html/entremasons/vendor/elgg/elgg/engine/classes/ElggRiverItem.php(63): get_entity(484)
#6 /var/www/entremasons.com.br/html/entremasons/vendor/elgg/elgg/engine/lib/views.php(1275): ElggRiverItem->getSubjectEntity()
#7 /var/www/entremasons.com.br/html/entremasons/vendor/elgg/elgg/engine/lib/views.php(1564): elgg_view_river_item(Object(ElggRiverItem), Array)
#8 /var/www/entremasons.com.br/html/entremasons/vendor/elgg/elgg/views/default/page/components/list.php(54): elgg_view_list_item(Object(ElggRiverItem), Array)
#9 /var/www/entremasons.com.br/html/entremasons/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(370): include('/var/www/entrem...')
#10 /var/www/entremasons.com.br/html/entremasons/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(306): Elgg\ViewsService->renderViewFile('page/components...', Array, 'default', true)
#11 /var/www/entremasons.com.br/html/entremasons/vendor/elgg/elgg/engine/lib/views.php(337): Elgg\ViewsService->renderView('page/components...', Array, false, 'default')
#12 /var/www/entremasons.com.br/html/entremasons/vendor/elgg/elgg/engine/lib/river.php(482): elgg_view('page/components...', Array)
#13 /var/www/entremasons.com.br/html/entremasons/vendor/elgg/elgg/views/default/resources/river.php(56): elgg_list_river(Array)
#14 /var/www/entremasons.com.br/html/entremasons/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(370): include('/var/www/entrem...')
#15 /var/www/entremasons.com.br/html/entremasons/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(306): Elgg\ViewsService->renderViewFile('resources/river', Array, 'default', true)
#16 /var/www/entremasons.com.br/html/entremasons/vendor/elgg/elgg/engine/lib/views.php(514): Elgg\ViewsService->renderView('resources/river', Array)
#17 /var/www/entremasons.com.br/html/entremasons/vendor/elgg/elgg/engine/lib/river.php(695): elgg_view_resource('river', Array)
#18 [internal function]: _elgg_river_page_handler(Array, 'activity')
#19 /var/www/entremasons.com.br/html/entremasons/vendor/elgg/elgg/engine/classes/Elgg/Router.php(100): call_user_func('_elgg_river_pag...', Array, 'activity')
#20 /var/www/entremasons.com.br/html/entremasons/vendor/elgg/elgg/engine/classes/Elgg/Application.php(436): Elgg\Router->route(Object(Elgg\Http\Request))
#21 /var/www/entremasons.com.br/html/entremasons/vendor/elgg/elgg/engine/classes/Elgg/Application.php(384): Elgg\Application->run()
#22 /var/www/entremasons.com.br/html/entremasons/index.php(8): Elgg\Application::index()
#23 {main}
[code:protected] => 0
[file:protected] => /var/www/entremasons.com.br/html/entremasons/vendor/elgg/elgg/engine/classes/Elgg/AttributeLoader.php
[line:protected] => 235
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /var/www/entremasons.com.br/html/entremasons/vendor/elgg/elgg/engine/classes/ElggUser.php
[line] => 117
[function] => getRequiredAttributes
[class] => Elgg\AttributeLoader
[type] => ->
[args] => Array
(
[0] => Array

  • Seems like you have been doing some experiment with your database. As per the log it is trying to retrieve river item with guid 484 but while retrieving the river item from the database it was not able to find entity with guid 484.

  • What are you trying to do when the error occurs? On which page of the site are you or which page are you trying to access?

    Maybe it helps using the dbvalidator plugin (https://github.com/Elgg/dbvalidator). It can fix faulty db entries in some cases. You would have to download it via the green "Clone or download" button and rename the folder to "dbvalidator" after unzipping before installing it. The plugin has a validate and a fix option. Do a validate run first. If it finds no errors it won't help to do a fix run. If it finds errors on the validation run, make a db backup before starting the fix run.