Saw the following after upgrading two of my sites to file_entity 2.27 using drush:

Project file_entity was updated successfully. Installed version is now 7.x-2.27.
count(): Parameter must be an array or an object that implements Countable Table.php:789 [warning]
File_entity 7227 Remove deprecated views_plugin_access_menu plugin.
Do you wish to run all pending updates? (y/n): y
Performed update: file_entity_update_7227 [ok]

Can I safely ignore this?

---

This is an issue with Drush. The issue/fix is described in comment #6.

Comments

TrevorBradley created an issue. See original summary.

joseph.olstad’s picture

Thanks for reporting, yes that's a bug, you can ignore it for now.

What version of php are you running when you get this error?

We will fix this asap.

trevorbradley’s picture

My PHP version is 7.3.11. In retrospect, that does sound like a 7.3 error.

Looks like it's 7.3 isn't officially supported for D7 until next month. That's what I get for sharing D7 and D8 sites on the same server...

Thanks @joseph.olstad.

joseph.olstad’s picture

Hi Trevor, yes, this would occur if your contrib modules are not up to date and you are have not installed Drupal 7 core 7.x-dev. your D7 modules need to be updated and you should use the 7.x-dev version of Drupal core until the release next week 7.68

this should fix that warning.

However if that doesn't fix the warning, please let me know, try to find out what line number that is thrown from.

Table.php:789 ? what module or project is that from?

trevorbradley’s picture

I'd prefer not to run dev core / modules on this site - is there any harm if I ignore the error?

Thorny question: Is it possible that 2.27 should have waited for 7.68 to be released?

solideogloria’s picture

Status: Active » Closed (won't fix)

I've seen this before. It's actually an issue with Drush.

https://github.com/drush-ops/drush/issues/3226

pear install Console_Table

solideogloria’s picture

Status: Closed (won't fix) » Closed (works as designed)

I think this is a better status.

Anonymous’s picture

File_entity module cause an INFINITY ERROR FOR UPDATE DRUPAL 7 (latest version core)

Drupal database update:
1 pending update
file_entity module

7227 - Remove deprecated views_plugin_access_menu plugin.

Apply pending update:
The following updates returned messages
file_entity module
Update #7227

Failed: PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'ultrason_uLuk12.views_display' doesn't exist: SELECT vid, id, display_options FROM {views_display}; Array ( ) in file_entity_update_7227() (line 1103 of /home/...... /public_html/sites/all/modules/file_entity/file_entity.install).

Have a solutions for this problem? Thanks ..

solideogloria’s picture

@ultrasuoni, Read comment #6.

solideogloria’s picture

Issue summary: View changes
lipsky’s picture

@solideogloria #8 is talking about another error. This error happens when the site doesn't have the views module. The views_display doesn't exists in this case.

I would be neccesary add a validation for this. Something like this:
function file_entity_update_7227() {
if (db_table_exists('views_display')) {
...
}
}