hi, in my new installation of drupal 8.3, the system show next errors
Warning: uasort(): Array was modified by the user comparison function in Drupal\Core\Config\Entity\ConfigEntityListBuilder->load() (line 24 of core/lib/Drupal/Core/Config/Entity/ConfigEntityListBuilder.php).
Drupal\Core\Config\Entity\ConfigEntityListBuilder->load() (Line: 149)
Drupal\block\BlockListBuilder->buildBlocksForm() (Line: 126)
Drupal\block\BlockListBuilder->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 514)
Drupal\Core\Form\FormBuilder->retrieveForm('block_admin_display_form', Object) (Line: 271)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 212)
Drupal\Core\Form\FormBuilder->getForm(Object) (Line: 106)
Drupal\block\BlockListBuilder->render('kelyon', Object) (Line: 59)
Drupal\block\Controller\BlockListController->listing(NULL, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 574)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
call_user_func_array(Object, Array) (Line: 139)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 62)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 38)
Drupal\webprofiler\StackMiddleware\WebprofilerMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
modules contrib added :
back_to_top
backup_migrate
block_class
config_update
devel
-webprofiler
-kint
exclude_node_title
features
field_collection
field_group
link_attributes
sitemap
views_bootstrap
how do I fix?
Comments
Comment #2
sjpagan commentedComment #3
cilefen commentedCan you reproduce this on the same platform with webprofiler uninstalled?
It looks like a duplicate of #2567035: Database::startLog() cause a notice in Shortcut::sort().
Comment #4
sjpagan commentedHi chilefen tenks for your support, using patch present in issues #2567035: Database::startLog() cause a notice in Shortcut::sort() , well without webrpofiler the message disappear, good...
How can I solve the problem webprofiler ?
Comment #5
duneblSame as the OP, but I don't have WebProfiler installed... and patch #2567035 doesn't solve this issue
Here are the installed modules
Comment #6
cilefen commentedHello @DuneBL:
Can we see the stack trace? What is the action preceding the warning in Drupal when it occurs?
Comment #7
duneblHere it is:
Comment #8
cilefen commented@DuneBL: What is the action preceding the warning in Drupal when it occurs? I assume it's a GET on the blocks configuration page.
Comment #9
dunebl@cilefen yes, it is coming when going into: /admin/structure/block
But I have another clue:
I have a duplicate of this site on my dev computer with php 7.2 and I didn't get this warning with it.
On the other hand, the server with the warning is running php 5.5.9
Comment #11
rossetti commentedHi There. For what it's worth, I ran into this issue when I disabled a view that had a block configured to appear in a specific region. I believe the block system is throwing a warning because it's looking for a block that isn't there whether it's from a disabled view or a module that wasn't properly uninstalled.
To make the warning go away, I re-enabled the view, removed the view block from the block configuration page and then disabled the view.
Comment #12
avpadernoIsn't this issue a duplicate of #2699157: Plugin Lazy loading can cause usort warning?
Comment #19
quietone commentedThis issue was a bugsmash target this week. Both lendude and I discussed it.
I read the two related issues and they report the same error message but in different classes. #9 says that the problem occurred on PHP 5 and not PHP 7. This is supported by[#2699157-18] which fortunately links to the PHP bug report. That bug report is closed stating the problem is fixed in PHP 7.
The two related issues were reported before PHP 7 was released. This one was reported 12 months after the release of PHP 7 but the initial summary does not include the PHP version. Considering that there have not been further reports in the intervening 6 years it seems safe to assume that the problem here was on a site running PHP 5.
Therefore, I am closing this issue and the related issues as outdated.
Comment #20
quietone commented