Depreciated Functions

Created on 13 December 2023, 7 months ago
Updated 18 March 2024, 3 months ago

I have installed the Invite module 7.x-4.1-rc1 on Drupal 7.98. But when I am trying to send an email then it is showing error-

The website encountered an unexpected error. Please try again later.

Deprecated function: Creation of dynamic property InviteType::$itid is deprecated in EntityAPIController->load() (line 256 of /var/www/vhosts/thechoudhury.com/httpdocs/sites/all/modules/entity/includes/entity.controller.inc).

Deprecated function: Creation of dynamic property InviteType::$rdf_mapping is deprecated in rdf_entity_load() (line 412 of /var/www/vhosts/thechoudhury.com/httpdocs/modules/rdf/rdf.module).

Deprecated function: Creation of dynamic property Invite::$sendNotification is deprecated in Invite->__construct() (line 183 of /var/www/vhosts/thechoudhury.com/httpdocs/sites/all/modules/invite/includes/invite.controller.inc).

Deprecated function: Creation of dynamic property Invite::$type is deprecated in Entity->__construct() (line 210 of /var/www/vhosts/thechoudhury.com/httpdocs/sites/all/modules/entity/includes/entity.inc).

TypeError: Cannot access offset of type string on string in drupal_array_set_nested_value() (line 6922 of /var/www/vhosts/thechoudhury.com/httpdocs/includes/common.inc).

Can anyone help me to fix the issue?

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇮🇳India Sandip Choudhury

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Sandip Choudhury
  • 🇮🇳India dineshkumarbollu

    @Sandip Choudhury declare the variable before call, will fix the issue, I don't have D7 site currently to test and create patch.

    Deprecated function: Creation of dynamic property Invite::$sendNotification is deprecated in Invite->__construct() (line 183 of /var/www/vhosts/thechoudhury.com/httpdocs/sites/all/modules/invite/includes/invite.controller.inc).
    
    
    /**
       * Indicates whether notification should be sent.
       *
       * @var bool
       */
      public $sendNotification = TRUE;
    
Production build 0.69.0 2024