Support

  1. hatbe7
  2. Bug Report
  3. Sunday, August 28 2016, 12:29 PM
I am getting the impression that the trigger doesnt work anymore after the upgrade....
I was using below code but i dont get any email when i change profiles:

<?php
/**
* @copyright Copyright (C) 2013 Jsn Project company. All rights reserved.
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* @package Easy Profile
* website http://www.easy-profile.com
* Technical Support : Forum - http://www.easy-profile.com/support.html
*/

defined('_JEXEC') or die;

class PlgJsnSkeleton extends JPlugin
{

public function triggerProfileUpdate($user, &$data, $changed, $isNew)
{
if(!$isNew)
{
// Start body of email
$body=$user->name." updated user profile. \n\n";

// Add fields to body email
foreach($changed as $fieldalias){
$body.=$fieldalias .": ". $data[$fieldalias] ."\n";
}
// Send Email
$result=JFactory::getMailer()->sendMail(
$user->email, // Sender Mail
$user->name, // Sender Name
'[email protected]', // Receiver Mail
'Profile Updated', // Subject Mail
$body // Body Mail
);
}
}
}
?>

Accepted Answer
admin Accepted Answer
Admin
Hi,
your plugin is not compliant like Joomla plugins:
- name of php file need to be same name of plugin
- php class name need to be something like Plg+(plugin type)+(plugin name), so something like "PlgJsnBsv_mv_alarm"

I have created a new file, try to see it at /plugins/jsn/bsv_mv_alarm/bsv_mv_alarm.php
  1. more than a month ago
  2. Bug Report
  3. # Permalink
hatbe7 Accepted Answer
site details below. FTP accoiunt will be active for 1 day
  1. more than a month ago
  2. Bug Report
  3. # 1
admin Accepted Answer
Admin
Can you please provide me your site details to check this? you can use the form below the reply in "Site Details" tab
  1. more than a month ago
  2. Bug Report
  3. # 2
hatbe7 Accepted Answer
Content Protected
  1. more than a month ago
  2. Bug Report
  3. # 3
admin Accepted Answer
Admin
Try to add a simple code to check like this:

.....
public function triggerProfileUpdate($user, &$data, $changed, $isNew)
{
echo('Works');
die();
...........
}
.....



Now if you change and save your profile you will get a blank page and see "Works".
  1. more than a month ago
  2. Bug Report
  3. # 4
hatbe7 Accepted Answer
I verified that joomla is sending System email to that email address..... that worked.
Only the Trigger suddenly doesnt send any emails anymore (it worked before the upgrade)
How can I check, that the Trigger really gets invoked?
Thanks
  1. more than a month ago
  2. Bug Report
  3. # 5
admin Accepted Answer
Admin
Hi,
we have not changed anything about our triggers in latest version. try to check in your spam folder.
  1. more than a month ago
  2. Bug Report
  3. # 6
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.