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?

CommentFileSizeAuthor
Schermata 2016-12-01 alle 01.39.36.png273.14 KBsjpagan

Comments

sjpagan created an issue. See original summary.

sjpagan’s picture

Issue summary: View changes
cilefen’s picture

Title: error report in block page or module page or settings page » Warning: uasort(): Array was modified by the user comparison function in Drupal\Core\Config\Entity\ConfigEntityListBuilder->load()
Status: Active » Closed (duplicate)
Related issues: +#2567035: Database::startLog() cause a notice in Shortcut::sort()

Can 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().

sjpagan’s picture

Hi 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 ?

dunebl’s picture

Same as the OP, but I don't have WebProfiler installed... and patch #2567035 doesn't solve this issue

Here are the installed modules

Package         Name                                              Version      
 Administration  Admin Toolbar (admin_toolbar)                                  
 Administration  Admin Toolbar Extra Tools (admin_toolbar_tools)                
 Administration  Admin Toolbar Links Access Filter                              
                 (admin_toolbar_links_access_filter)                            
 Blazy           Blazy (blazy)                                     8.5.5-dev    
 Blazy           Blazy UI (blazy_ui)                               8.5.5-dev    
 Chaos tool      Chaos tools (ctools)                              8.x-3.0      
 suite                                                                          
 Chaos tool      Chaos tools Views (ctools_views)                  8.x-3.0      
 suite                                                                          
 (Experimental)                                                                 
 Charts          Charts (charts)                                                
 Charts          Google Charts (charts_google)                                  
 CKEditor        CKEditor Color Button (colorbutton)               8.x-1.1      
 CKEditor        CKEditor Font (ckeditor_font)                                  
 CKEditor        CKEditor IndentBlock (ckeditor_indentblock)                    
 CKEditor        Panel Button (panelbutton)                        8.x-1.1      
 Core            Actions (action)                                  8.5.4+24-dev 
 Core            Automated Cron (automated_cron)                   8.5.4+24-dev 
 Core            BigPipe (big_pipe)                                8.5.4+24-dev 
 Core            Block (block)                                     8.5.4+24-dev 
 Core            Breakpoint (breakpoint)                           8.5.4+24-dev 
 Core            CKEditor (ckeditor)                               8.5.4+24-dev 
 Core            Color (color)                                     8.5.4+24-dev 
 Core            Comment (comment)                                 8.5.4+24-dev 
 Core            Configuration Manager (config)                    8.5.4+24-dev 
 Core            Contact (contact)                                 8.5.4+24-dev 
 Core            Contextual Links (contextual)                     8.5.4+24-dev 
 Core            Custom Block (block_content)                      8.5.4+24-dev 
 Core            Custom Menu Links (menu_link_content)             8.5.4+24-dev 
 Core            Field (field)                                     8.5.4+24-dev 
 Core            Field UI (field_ui)                               8.5.4+24-dev 
 Core            Filter (filter)                                   8.5.4+24-dev 
 Core            Help (help)                                       8.5.4+24-dev 
 Core            History (history)                                 8.5.4+24-dev 
 Core            Internal Dynamic Page Cache (dynamic_page_cache)  8.5.4+24-dev 
 Core            Internal Page Cache (page_cache)                  8.5.4+24-dev 
 Core            Menu UI (menu_ui)                                 8.5.4+24-dev 
 Core            Node (node)                                       8.5.4+24-dev 
 Core            Path (path)                                       8.5.4+24-dev 
 Core            Quick Edit (quickedit)                            8.5.4+24-dev 
 Core            RDF (rdf)                                         8.5.4+24-dev 
 Core            Responsive Image (responsive_image)               8.5.4+24-dev 
 Core            Search (search)                                   8.5.4+24-dev 
 Core            Shortcut (shortcut)                               8.5.4+24-dev 
 Core            Syslog (syslog)                                   8.5.4+24-dev 
 Core            System (system)                                   8.5.4+24-dev 
 Core            Taxonomy (taxonomy)                               8.5.4+24-dev 
 Core            Text Editor (editor)                              8.5.4+24-dev 
 Core            Toolbar (toolbar)                                 8.5.4+24-dev 
 Core            Update Manager (update)                           8.5.4+24-dev 
 Core            User (user)                                       8.5.4+24-dev 
 Core            Views (views)                                     8.5.4+24-dev 
 Core            Views UI (views_ui)                               8.5.4+24-dev 
 Custom          Parallax Background (parallax_bg)                 8.x-1.0      
 Custom          Text templates with tokens Config Entity          8.5.5-dev    
                 (texttok)                                                      
 Development     Devel (devel)                                                  
 Development     Devel Debug Log (devel_debug_log)                 8.x-1.0-beta 
                                                                   1            
 Development     Devel Kint (kint)                                              
 Development     Search kint (search_kint)                                      
 field           Field Permissions (field_permissions)             8.x-1.0-rc1  
 Field types     Address (address)                                              
 Field types     Datetime (datetime)                               8.5.4+24-dev 
 Field types     Duration Field (duration_field)                                
 Field types     Entity Reference Revisions                        8.x-1.5      
                 (entity_reference_revisions)                                   
 Field types     File (file)                                       8.5.4+24-dev 
 Field types     Image (image)                                     8.5.4+24-dev 
 Field types     Link (link)                                       8.5.4+24-dev 
 Field types     Options (options)                                 8.5.4+24-dev 
 Field types     Text (text)                                       8.5.4+24-dev 
 Fields          Field Group (field_group)                                      
 Fields          File (Field) Paths (filefield_paths)                           
 Fields          Inline Entity Form (inline_entity_form)                        
 MailChimp       MailChimp (mailchimp)                                          
 MailChimp       MailChimp Lists (mailchimp_lists)                              
 MailChimp       MailChimp Signup (mailchimp_signup)                            
 Media           Crop API (crop)                                                
 Media           Entity Browser (entity_browser)                                
 Media           Entity Browser IEF (entity_browser_entity_form)                
 Media           ImageMagick (imagemagick)                         8.x-2.1      
 Media           ImageWidgetCrop (image_widget_crop)                            
 Multilingual    Interface Translation (locale)                    8.5.4+24-dev 
 Multilingual    Language (language)                               8.5.4+24-dev 
 Other           AddToAny (addtoany)                                            
 Other           Contact Formatter (contact_formatter)             8.x-1.0      
 Other           Contact storage (contact_storage)                 8.5.5-dev    
 Other           Entity (entity)                                                
 Other           File metadata - EXIF (file_mdm_exif)              8.x-1.0-rc1  
 Other           File metadata manager (file_mdm)                  8.x-1.0-rc1  
 Other           Libraries (libraries)                                          
 Other           Masquerade (masquerade)                                        
 Other           Pathauto (pathauto)                                            
 Other           Permission Filter (permissions_filter)            8.x-1.0      
 Other           RoleAssign (roleassign)                                        
 Other           Social Media Links Block (social_media_links)     8.x-2.6      
 Other           Token (token)                                                  
 Paragraphs      Bootstrap Paragraphs (bootstrap_paragraphs)                    
 Paragraphs      Paragraphs (paragraphs)                                        
 Paragraphs      Paragraphs Edit (paragraphs_edit)                              
 Slick           Slick (slick)                                     8.5.5-dev    
 Slick           Slick UI (slick_ui)                               8.5.5-dev    
 Slick           Slick Views (slick_views)                         8.5.5-dev    
 Statistics      Google Analytics (google_analytics)                            
 Statistics      Google Analytics Reports                                       
                 (google_analytics_reports)                                     
 Statistics      Google Analytics Reports API                                   
                 (google_analytics_reports_api)                                 
 User interface  EU Cookie Compliance (eu_cookie_compliance)       8.x-1.0      
 User interface  Linkit (linkit)                                                
 Views           Views Autocomplete Filters                                     
                 (views_autocomplete_filters)                                   
 Views           Views Bootstrap (views_bootstrap)                              
 Views           Views Bulk Operations (views_bulk_operations)                  
 Views           Views Data Export (views_data_export)                          
 Views           Views Entity Form Field                                        
                 (views_entity_form_field)                                      
 Views           Views Reference Field (viewsreference)            8.x-1.2      
 Voting          Voting API (votingapi)                                         
 Voting          Votingapi Widgets (votingapi_widgets)                          
 Web services    RESTful Web Services (rest)                       8.5.4+24-dev 
 Web services    Serialization (serialization)                     8.5.4+24-dev 
 Web services    Serialization (CSV) (csv_serialization)                        
 Web services    Serialization (Excel) (xls_serialization)                      
cilefen’s picture

Hello @DuneBL:

Can we see the stack trace? What is the action preceding the warning in Drupal when it occurs?

dunebl’s picture

Here it is:

Warning: uasort(): Array was modified by the user comparison function in Drupal\Core\Config\Entity\ConfigEntityListBuilder->load() (line 24 of /var/www/html/drupal8/core/lib/Drupal/Core/Config/Entity/ConfigEntityListBuilder.php). array(27)
→'26: uasort()' => array(1)
→'25: Drupal\Core\Config\Entity\ConfigEntityListBuilder->load()' => array(1)
→'24: Drupal\block\BlockListBuilder->buildBlocksForm()' => array(1)
→'23: Drupal\block\BlockListBuilder->buildForm()' => array(2)
→'22: call_user_func_array()' => array(1)
→'21: Drupal\Core\Form\FormBuilder->retrieveForm()' => array(2)
→'20: Drupal\Core\Form\FormBuilder->buildForm()' => array(2)
→'19: Drupal\Core\Form\FormBuilder->getForm()' => array(2)
→'18: Drupal\block\BlockListBuilder->render()' => array(2)
→'17: Drupal\block\Controller\BlockListController->listing()' => array(2)
→'16: call_user_func_array()' => array(1)
→'15: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()' => array(1)
→'14: Drupal\Core\Render\Renderer->executeInRenderContext()' => array(2)
→'13: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()' => array(2)
→'12: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()' => array(1)
→'11: call_user_func_array()' => array(1)
→'10: Symfony\Component\HttpKernel\HttpKernel->handleRaw()' => array(2)
→' 9: Symfony\Component\HttpKernel\HttpKernel->handle()' => array(2)
→' 8: Drupal\Core\StackMiddleware\Session->handle()' => array(2)
→' 7: Drupal\Core\StackMiddleware\KernelPreHandle->handle()' => array(2)
→' 6: Drupal\page_cache\StackMiddleware\PageCache->pass()' => array(2)
→' 5: Drupal\page_cache\StackMiddleware\PageCache->handle()' => array(2)
→' 4: Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()' => array(2)
→' 3: Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()' => array(2)
→' 2: Stack\StackedHttpKernel->handle()' => array(2)
→' 1: Drupal\Core\DrupalKernel->handle()' => array(2)
→' 0: main()' => array(2)
cilefen’s picture

@DuneBL: What is the action preceding the warning in Drupal when it occurs? I assume it's a GET on the blocks configuration page.

dunebl’s picture

@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

php -v
PHP 5.5.9-1ubuntu4.25 (cli) (built: May 10 2018 14:37:18) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

rossetti’s picture

Hi 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.

avpaderno’s picture

Version: 8.6.x-dev » 8.9.x-dev

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

quietone’s picture

Status: Active » Closed (outdated)
Issue tags: +Bug Smash Initiative

This 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.

quietone’s picture