EEConf 2024 is around the corner! EEConf 2024
Getting these errors when going to tools > content reindex in the control panel. Running PHP 8.2, this is after a one-click update from v 7.3.15. Didn’t get any errors on update, but i get these warnings when trying to go to the content reindex. Warning Undefined array key “updating” ee/ExpressionEngine/Service/File/Usage.php, line 59
Severity: E_WARNING Warning Undefined array key “fieldsAndTables” ee/ExpressionEngine/Service/File/Usage.php, line 63
Severity: E_WARNING Warning Undefined array key “updating” ee/ExpressionEngine/Service/File/Usage.php, line 64
Severity: E_WARNING Warning Undefined array key “offset” ee/ExpressionEngine/Service/File/Usage.php, line 65
Severity: E_WARNING TypeError Caught count(): Argument #1 ($value) must be of type Countable|array, null given ee/ExpressionEngine/Controller/Utilities/FileUsage.php:65
Stack Trace: Please include when reporting this error 0 ee/ExpressionEngine/Controller/Utilities/FileUsage.php(65): count() 1 [internal function]: ExpressionEngine\Controller\Utilities\FileUsage->index() 2 ee/ExpressionEngine/Core/Core.php(268): call_user_func_array() 3 ee/ExpressionEngine/Core/Core.php(124): ExpressionEngine\Core\Core->runController() 4 ee/ExpressionEngine/Boot/boot.php(184): ExpressionEngine\Core\Core->run() 5 admin.php(139): require_once(‘…’) 5 admin.php(139): require_once(‘…’)
Hrm, can you try this. FTP to system/user/ delete the cache folder and create a new, writable one. I think that may be it based on
protected function initializeFieldsAndTables()
{
$data = ee()->cache->get(self::CACHE_KEY);
if ($data === false || $data['updating'] === false) {
Getting this now in Tools > Content Reindex:
TypeError Caught count(): Argument #1 ($value) must be of type Countable|array, null given ee/ExpressionEngine/Controller/Utilities/Reindex.php:47
Stack Trace: Please include when reporting this error 0 ee/ExpressionEngine/Controller/Utilities/Reindex.php(47): count() 1 [internal function]: ExpressionEngine\Controller\Utilities\Reindex->index() 2 ee/ExpressionEngine/Core/Core.php(268): call_user_func_array() 3 ee/ExpressionEngine/Core/Core.php(124): ExpressionEngine\Core\Core->runController() 4 ee/ExpressionEngine/Boot/boot.php(184): ExpressionEngine\Core\Core->run() 5 admin.php(139): require_once(‘…’) 5 admin.php(139): require_once(‘…’)
I think it’s intermittent because it varies based on whether the data are cached or not. I’ve put in 2 bug reports:
https://github.com/ExpressionEngine/ExpressionEngine/issues/4417 https://github.com/ExpressionEngine/ExpressionEngine/issues/4421
I THINK clearing out the cache folder will get you past either issue, though I’m not sure why the cached and uncached are inconsistent. If it’s mission critical and you can’t get past it, let me know and we can try a few things.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.