I am testing my drupal site on my new server, which has php version 5.5.0 The website seems to work perfectly, but when I do Clear all cashes I got this list of errors:

Notice: Undefined property: RulesReactionRule::$status in _entity_defaults_rebuild() (line 831 of /home/cosmicevents/domains/dominatrix.nl/public_html/sites/all/modules/entity/entity.module).
Notice: Undefined property: RulesReactionRule::$status in _entity_defaults_rebuild() (line 831 of /home/cosmicevents/domains/dominatrix.nl/public_html/sites/all/modules/entity/entity.module).
Notice: Undefined property: RulesReactionRule::$status in _entity_defaults_rebuild() (line 831 of /home/cosmicevents/domains/dominatrix.nl/public_html/sites/all/modules/entity/entity.module).
Notice: Undefined property: RulesReactionRule::$status in _entity_defaults_rebuild() (line 831 of /home/cosmicevents/domains/dominatrix.nl/public_html/sites/all/modules/entity/entity.module).
Notice: Undefined property: RulesReactionRule::$status in _entity_defaults_rebuild() (line 831 of /home/cosmicevents/domains/dominatrix.nl/public_html/sites/all/modules/entity/entity.module).
Notice: Undefined property: RulesReactionRule::$status in _entity_defaults_rebuild() (line 831 of /home/cosmicevents/domains/dominatrix.nl/public_html/sites/all/modules/entity/entity.module).
Notice: Undefined property: RulesReactionRule::$status in _entity_defaults_rebuild() (line 831 of /home/cosmicevents/domains/dominatrix.nl/public_html/sites/all/modules/entity/entity.module).
Notice: Undefined property: RulesAnd::$status in _entity_defaults_rebuild() (line 831 of /home/cosmicevents/domains/dominatrix.nl/public_html/sites/all/modules/entity/entity.module).
Notice: Undefined property: RulesAnd::$status in _entity_defaults_rebuild() (line 831 of /home/cosmicevents/domains/dominatrix.nl/public_html/sites/all/modules/entity/entity.module).
Notice: Undefined property: RulesAnd::$status in _entity_defaults_rebuild() (line 831 of /home/cosmicevents/domains/dominatrix.nl/public_html/sites/all/modules/entity/entity.module).
Notice: Undefined property: RulesReactionRule::$status in _entity_defaults_rebuild() (line 831 of /home/cosmicevents/domains/dominatrix.nl/public_html/sites/all/modules/entity/entity.module).
Notice: Undefined property: RulesReactionRule::$status in _entity_defaults_rebuild() (line 831 of /home/cosmicevents/domains/dominatrix.nl/public_html/sites/all/modules/entity/entity.module).
Notice: Undefined property: RulesReactionRule::$status in _entity_defaults_rebuild() (line 831 of /home/cosmicevents/domains/dominatrix.nl/public_html/sites/all/modules/entity/entity.module).
Notice: Undefined property: RulesReactionRule::$status in _entity_defaults_rebuild() (line 831 of /home/cosmicevents/domains/dominatrix.nl/public_html/sites/all/modules/entity/entity.module).
Notice: Undefined property: RulesReactionRule::$status in _entity_defaults_rebuild() (line 831 of /home/cosmicevents/domains/dominatrix.nl/public_html/sites/all/modules/entity/entity.module).
Notice: Undefined property: RulesReactionRule::$status in _entity_defaults_rebuild() (line 831 of /home/cosmicevents/domains/dominatrix.nl/public_html/sites/all/modules/entity/entity.module).
Notice: Undefined property: RulesReactionRule::$status in _entity_defaults_rebuild() (line 831 of /home/cosmicevents/domains/dominatrix.nl/public_html/sites/all/modules/entity/entity.module).
Notice: Undefined property: RulesReactionRule::$status in _entity_defaults_rebuild() (line 831 of /home/cosmicevents/domains/dominatrix.nl/public_html/sites/all/modules/entity/entity.module).
Notice: Undefined property: RulesReactionRule::$status in _entity_defaults_rebuild() (line 831 of /home/cosmicevents/domains/dominatrix.nl/public_html/sites/all/modules/entity/entity.module).

As this was not happening at the previous server, I assume this has something to do with php 5.5.0. Some other modules had issue's but they could be solved with a patch. For this I could not find any, at this moment I have no clue how to solve this problem, or how it effects the website, as everything seems to work perfectly.
Could anybody help me out please!

Grz

Reinier

CommentFileSizeAuthor
#7 php5.5_bitwise_operator_fix-2050775-7.patch615 bytesmikran
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Peter Bowey’s picture

@cosmicevents

Here is a patch that works for me @ PHP 5.5.1 @ line #831

+      if (isset($entity->{$keys['status']})) {              // Fix for 'Notice: Undefined property
          $entity->{$keys['status']} |= ENTITY_IN_CODE;
+      }
deminy’s picture

Same issue under PHP 5.5.1 + Entity 7.x-1.2.

Marc Angles’s picture

issue resolved by this patch.

php 5.5

Thanks a lot

andros’s picture

Version: 7.x-1.1 » 7.x-1.2
Status: Active » Patch (to be ported)

Works for me 1.2. Please get this patch into the dev version.

Tor Arne Thune’s picture

Status: Patch (to be ported) » Reviewed & tested by the community
fago’s picture

Category: support » bug
Status: Reviewed & tested by the community » Needs work

First off, I'm not sure the fix is right. I suppose we need to add the bit mask even if the bit mask is not set yet. Then, please roll a proper patch so the test bot can chime in.

mikran’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
Status: Needs work » Needs review
FileSize
615 bytes

Here is a patch that adds bit mask if not set.

Owen Barton’s picture

Status: Needs review » Reviewed & tested by the community

Working for me!

haggins’s picture

Yes, it's working.

Norberto Ostallo’s picture

Tested and working.

dotoree’s picture

Also working.

Jelle_S’s picture

Patch works, would be nice if it got committed :-)

Sweetchuck’s picture

The patch in the #7 comment is solve the problem.

fago’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Fixed

Thanks, committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Barney Gumble’s picture

I had the same problem, I applied #7 patch. It solved the problem.

Dane Powell’s picture

FYI, this patch was included in the 1.3 release.

@fago, if you link to the commit when you change the issue status to "fixed", it makes it easier for people (i.e. me) to track changes. Thanks!