Skip to content

Return type of Horde_Imap_Client_Fetch_Query::count() should either be compatible with ... #6757

@D3V1LC0D3R

Description

@D3V1LC0D3R

Steps to reproduce

  1. Install the mail client and wait for a poll

Expected behavior

no error

Actual behavior

error occures

Mail app version

1.13.4

Mailserver or service

none yet set (afaik)

Operating system

Ubuntu 22.04 LTS

PHP engine version

PHP 8.1

Web server

Nginx

Database

MySQL

Additional info

the error in the nextcloud log:

  Error    PHP                Error: Return type of Horde_Imap_Client_Fetch_Query::count()   
                              should either be compatible with Countable::count(): int, or                            
                              the #[\ReturnTypeWillChange] attribute should be used to                                
                              temporarily suppress the notice at                                                      
                              /var/www/nextcloud/apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Fetch/Query.php#337                           
                              at lib/private/Log/ErrorHandler.php line 92                                             
                                                                                                                      
                               0. .../Query.php line 23                                                               
                                  OC\Log\ErrorHandler::onError(                                                       
                                                                                                                      
                                  )                                                                                   
                               1. .../composer/composer/ClassLoader.php line 571                                      
                                  include("\/var\/www\/nextcloud\/apps\ ... p")                             
                               2. .../ClassLoader.php line 428                                                        
                                  Composer\Autoload\includeFile(                                                      
                                                                                                                      
                                  )                                                                                   
                               3. .../MessageMapper.php line 232                                                      
                                  Composer\Autoload\ClassLoader->loadClass(                                           
                                                                                                                      
                                  )                                                                                   
                               4. .../Synchronizer.php line 99                                                        
                                  OCA\Mail\IMAP\MessageMapper->findByIds(                                             
                                                                                                                      
                                  )                                                                                   
                               5. .../ImapToDbSynchronizer.php line 376                                               
                                  OCA\Mail\IMAP\Sync\Synchronizer->sync(                                              
                                                                                                                      
                                  )                                                                                   
                               6. .../ImapToDbSynchronizer.php line 236                                               
                                  OCA\Mail\Service\Sync\ImapToDbSynchronizer->runPartialSync(                           
                                                                                                                      
                                  )                                                                                   
                               7. .../SyncService.php line 127                                                        
                                  OCA\Mail\Service\Sync\ImapToDbSynchronizer->sync(                                   
                                                                                                                      
                                  )                                                                                   
                               8. .../MailboxesController.php line 161                                                
                                  OCA\Mail\Service\Sync\SyncService->syncMailbox(                                     
                                                                                                                      
                                  )                                                                                   
                               9. .../Dispatcher.php line 225                                                         
                                  OCA\Mail\Controller\MailboxesController->sync(                                      
                                                                                                                      
                                  )                                                                                   
                              10. .../Dispatcher.php line 133                                                         
                                  OC\AppFramework\Http\Dispatcher->executeController(                                 
                                                                                                                      
                                  )                                                                                   
                              11. .../App.php line 172                                                                
                                  OC\AppFramework\Http\Dispatcher->dispatch(                                          
                                                                                                                      
                                  )                                                                                   
                              12. .../Route/Router.php line 298                                                       
                                  OC\AppFramework\App::main(                                                          
                                                                                                                      
                                  )                                                                                   
                              13. lib/base.php line 1023                                                              
                                  OC\Route\Router->match(                                                             
                                                                                                                      
                                  )                                                                                   
                              14. index.php line 36                                                                   
                                  OC::handleRequest(                                                                  
                                                                                                                      
                                  )                                                                                   

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions