By Niranjan Deshpande on Tuesday, 26 May 2015
Posted in General Issues
Replies 4
Likes 0
Views 441
Votes 0
Hi there,

I have created one easyblog plugin by using onAfterEasyBlogSave trigger and I have referred plg_easyblogautoarticle. My plugin calls API of my another site and does some stuff.

Plugin works fine when I update existing posts. But when I create new post, onAfterEasyBlogSave gets triggered twice. First with isNew=1 (add post) and then with isNew=0 (update post). This happens consecutively even though I am simply adding new post. That causes my API code to execute twice.

Is this a bug in easyblog or am I missing something?

Thank you in advance.
Hello Niranjan,

I am sorry for the delay of this reply.

After some checking, it seems like the function store is triggered twice in which will trigger onAfterEasyBlogSave to be called twice. I've added the fix inside your /administrator/com_easyblog/tables/blog.php and it should be working fine now. http://screen.stackideas.com/2015-05-28_1820.png

Hope these help.
·
Thursday, 28 May 2015 18:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Niranjan,

Hurm, I've checked the code and the onAfterEasyBlogSave function only trigger once. Can you provide us your backend and FTP access so we can have a better look on your issue here?
·
Tuesday, 26 May 2015 19:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nick,

Included FTP and admin access details.

For front end user, you can login with g+.
Plugin name is EasyBlog-Kisan.com Notifications.
Site Root: /home/blog.plant.info/public_html/
Plugin physical path: /home/blog.plant.info/public_html/plugins/easyblog/notifications/

Once you post new blog, open http://www.plant.info. On front page you will see two consecutive notifications, one for added blog and another for updated blog.
Actual result: Notification of only added blog should be there.

Looking forward to your help.

Thank you.
·
Tuesday, 26 May 2015 21:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nick,

It's been 24 hours, I haven't heard from you guys.
Please update me on the status.

I have dependencies on this issue.

Thanks
·
Wednesday, 27 May 2015 21:35
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post