Deprecated: Joomla\Input\Input implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /homepages/13/d380392445/htdocs/Jlive/libraries/vendor/joomla/input/src/Input.php on line 41

Deprecated: Return type of Joomla\Input\Input::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /homepages/13/d380392445/htdocs/Jlive/libraries/vendor/joomla/input/src/Input.php on line 170

Deprecated: Joomla\CMS\Input\Input implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /homepages/13/d380392445/htdocs/Jlive/libraries/src/Input/Input.php on line 31

Deprecated: Joomla\CMS\Input\Cookie implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /homepages/13/d380392445/htdocs/Jlive/libraries/src/Input/Cookie.php on line 21

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /homepages/13/d380392445/htdocs/Jlive/libraries/src/Uri/Uri.php on line 141
Notify User on Update - Macrotone Forum

Unknown Error 8192: KunenaControllerApplicationDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in libraries/kunena/controller/application/display.php on line 21


Unknown Error 8192: Automatic conversion of false to array is deprecated in libraries/kunena/route/route.php on line 437


Unknown Error 8192: ComponentKunenaControllerWidgetAnnouncementDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/widget/announcement/display.php on line 18


Unknown Error 8192: ComponentKunenaControllerTopicItemDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/topic/item/display.php on line 25


Unknown Error 8192: Automatic conversion of false to array is deprecated in libraries/kunena/forum/category/category.php on line 415


Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /homepages/13/d380392445/htdocs/Jlive/libraries/src/Date/Date.php on line 112

Unknown Error 8192: Automatic conversion of false to array is deprecated in libraries/kunena/bbcode/bbcode.php on line 107

Notify User on Update


Unknown Error 8192: ComponentKunenaControllerTopicItemActionsDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/topic/item/actions/display.php on line 23


Unknown Error 8192: ComponentKunenaControllerTopicPollDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/topic/poll/display.php on line 21


Unknown Error 8192: ComponentKunenaControllerTopicItemMessageDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/topic/item/message/display.php on line 23

9 years 5 months ago #1 by qask
Notify User on Update was created by qask
Hi
I use the Issue Tracker and everything works fine, except the user notification on update. the admin gets an email when someone creates, updates or closes an issue, but the user who created the issue only gets one after creating and closing the issue, not on update. The "Notify User on Update" is activated.

It would be great if someone could help.

Unknown Error 8192: ComponentKunenaControllerMessageItemActionsDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/message/item/actions/display.php on line 25

Please Log in or Create an account to join the conversation.


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2115


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2115


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2022


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2070


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2115


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2022


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2022


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2115


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2115


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2022


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2070


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2115


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2115


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2022


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2070

9 years 5 months ago - 9 years 5 months ago #2 by chrisc
Replied by chrisc on topic Notify User on Update

Unknown Error 8192: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2263


Unknown Error 8192: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2263

I recently found a possible problem similar to that you describe. I will provide the fix below, but it may or may not be the problem you are seeing. If it doesn't then I will need a few more details about the 'specific user' not recieving the updates, such as whether they are 'registered' or guest users. If guest users are they identified by an entry in the 'it_people' table or by the details stored in the progress history?

In the file admin/components/com_issuetracker/helpers/issuetracker.php around line 1196 there is some code that looks like the following:
// If raising user is assignee do not notify user.
                  if ( $ass_upd_notify && (! empty($data['assigned_to_person_id']) ) ) {
                     // Notify User only if user and assignee are not the same.
                     $ident_id = self::get_itpeople_id($data['assigned_to_person_id']);

                     if ( $data['identified_by_person_id'] != $ident_id && ($usr_email[0] == 1 ) )
                        self::send_email('user_update', $usr_email[1], $data);   // Notify user
                  }

Change it to the following:
// If raising user is assignee do not notify user.
                  if ( $usr_upd_notify && (! empty($data['assigned_to_person_id']) ) ) {
                     // Notify User only if user and assignee are not the same.
                     $ident_id = self::get_itpeople_id($data['assigned_to_person_id']);

                     if ( $data['identified_by_person_id'] != $ident_id && ($usr_email[0] == 1 ) )
                        self::send_email('user_update', $usr_email[1], $data);   // Notify user
                  }
It is the second line ' if' statement that is changed. ie $ass_upd_notify becomes $usr_upd_notify.

Regards

If you are using our extensions please leave a review at the JED: IP Mapping | Issue Tracker | JAudit | Password Control
The following user(s) said Thank You: qask

Please Log in or Create an account to join the conversation.

9 years 5 months ago #3 by qask
Replied by qask on topic Notify User on Update
Thanks for the fast answer.

unfortunately it didn' work :dry:
Only registered users are able to create new issues. I just wonder why they get create and close emails but no update emails. :blink:

Please Log in or Create an account to join the conversation.

9 years 5 months ago - 9 years 5 months ago #4 by chrisc
Replied by chrisc on topic Notify User on Update

Unknown Error 8192: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2263

They certainly should get update emails and the check happens in the code just modified.
The only think I can currently think of is that the specific issue hasn't got a person assigned to the issue? In that situation they would fall through the check and not send an email.

If this is the situation then the following code may help.

Instead of the earlier code around line 1196 you could try the following instead:
                  if ( $usr_upd_notify ) {
                     // If raising user is assignee do not notify user.
                     if (! empty($data['assigned_to_person_id']) ) {
                        // Notify User only if user and assignee are not the same.
                        $ident_id = self::get_itpeople_id($data['assigned_to_person_id']);

                        if ($data['identified_by_person_id'] != $ident_id && ($usr_email[0] == 1 ))
                           self::send_email('user_update', $usr_email[1], $data);   // Notify user
                     } else {
                        self::send_email('user_update', $usr_email[1], $data);   // Notify user
                     }
                  }

Regards

If you are using our extensions please leave a review at the JED: IP Mapping | Issue Tracker | JAudit | Password Control

Please Log in or Create an account to join the conversation.

9 years 5 months ago #5 by qask
Replied by qask on topic Notify User on Update
Yes that was the problem :woohoo:

Your first answer was the solution :)
After changing the code it just didn't work because there was no person assigned

Thank you very much!
The following user(s) said Thank You: chrisc

Please Log in or Create an account to join the conversation.

9 years 5 months ago - 9 years 5 months ago #6 by chrisc
Replied by chrisc on topic Notify User on Update
Thank you for the update, the last fix should resolve either situation. I originally posted 1.6.5 code, but I corrected it for 1.6.4.

I am currently working on 1.6.5 in this area any was originally getting myself confused.

Rest assured it is in the 1.6.5 code base now.

Regards

If you are using our extensions please leave a review at the JED: IP Mapping | Issue Tracker | JAudit | Password Control

Please Log in or Create an account to join the conversation.

Time to create page: 0.150 seconds
Go To Top

Joomla! Debug Console

Session

Profile Information

Memory Usage

Database Queries