We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Errors when going to Tools > Content Reindex after 7.4.11 upgrade

Development and Programming

Torch's avatar
Torch
40 posts
one year ago
Torch's avatar Torch

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(‘…’)

       
Robin Sowell's avatar
Robin Sowell
13,255 posts
one year ago
Robin Sowell's avatar Robin Sowell

Hrm- I’d open your browser debug, go to the Network tab, then go run it again. Let’s see what the response is. Looks like getFieldsAndTables is coming back null.

Can you check and see if EE is running in File Compatibility mode?

       
Torch's avatar
Torch
40 posts
one year ago
Torch's avatar Torch

I am not running in compatibility mode.

       
Robin Sowell's avatar
Robin Sowell
13,255 posts
one year ago
Robin Sowell's avatar Robin Sowell

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) {
       
Torch's avatar
Torch
40 posts
one year ago
Torch's avatar Torch

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(‘…’)

       
Torch's avatar
Torch
40 posts
one year ago
Torch's avatar Torch

Also, i’ve noticed errors are happening on both Tools > Content Reindex and Tools > Update File Usage. It’s also intermittent. Sometimes the page will show properly, sometimes those errors will be thrown.

       
Robin Sowell's avatar
Robin Sowell
13,255 posts
one year ago
Robin Sowell's avatar Robin Sowell

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.

       
Torch's avatar
Torch
40 posts
one year ago
Torch's avatar Torch

Thanks Robin! I’ll follow those bug reports for any updates. Not mission critical, just something I was concerned about after an upgrade. Hoping that it isn’t some bigger issue after another version update for me or something like that.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.