Welcome Guest, Not a member yet? Register   Sign In
Strange CI_Email Error
#1

(This post was last modified: 02-05-2021, 03:07 AM by ezxcess.)

I am using Bitbucket for version control. I used develop branch for staging and master branch for production. Today I have a weird issue where the latest code changes works in staging but failed in production.

The error are:

Code:
Type: Error
Message: Cannot access protected property CI_Email::$_headers
Filename: C:\wamp64\www\acd-portals\application\modules\template\libraries\ACD_Notifications_lib.php
Line Number: 2547

So apparently, in the master branch, CI_Email::$_headers is a protected variable. But when I checkout my develop branch, which has the same exact code, it went through without any failure. Below is the code that is causing this issue.

Code:
$rawMessageID = $this->CI->email->_headers["Message-ID"];

So my questions are:

  1. Why does it work in develop branch but not in master branch?
  2. Is there any reason that CI_Email::$_headers is made a protected variable in the master branch? 
As this is a group collaboration, its really hard to find out if someone made some changes in some config or forgot to load something that may cause this issue in one branch but not the other. So I am asking those CI experts to help me debug this issue as this is something I have not seen before and I don't know where to start looking. Thanks for any help and guidance.

Regards,
Allie
Reply




Theme © iAndrew 2016 - Forum software by © MyBB