By James on Wednesday, 03 April 2019
Posted in General Issues
Replies 9
Likes 0
Views 1.9K
Votes 0
Why this injecting everywhere front end, back end, even when I was doing email template for different component via back end, and when it send it to myself and I read the source code I found this, which it shouldnt be - i understand if automation cron ticked and it should be use backend only or only com_payplans area?

I understand the real cron task should be used on actual cpanel cron task or at least generate cron code or something to provide user to create themself for cron task cpanel?


<img alt=Cron Job Starts src=https://www.-----------------------.co.uk/index.php?option=com_payplans&view=cron&tmpl=component style=display: none;>



Thank you.
Hey James,

When automatic cron enabled , wheenever your site fronend will be accessible it will run the cron job if required.
In payplans it's you can setup cron job either automatic or automatic.
Refer below mentioned document for more detailed information on this.
https://stackideas.com/docs/payplans/administrators/cronjobs/cronjobs

Let me know if you have any query.

Thank you for understanding !
·
Thursday, 04 April 2019 11:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha,

Yes i understand but that code line is everywhere, even back end, and RS Form Pro! DJ Classifieds email template which is I've used like perfect html email code which uses <html>xxxxxxx </html> and when ive save the email template, the extra line was being added from Payplans, I could not delete it off, because it keep appearing, and when I test email sent it to me, extra line was from that Payplans.

Image display error (because email doesnt support display:none) but the rest look good on email (outlook)

If i turn CRON automatic off and set it up on server, which I know no more injecting.

How to find the this <img alt="Cron Job Starts" src="https://www.v2..co.uk/index.php?option=com_payplans&view=cron&tmpl=component" style="display: none;" />

It's at near bottom next to </body></html> on front end, back end.

I received an email from email template, it's still there. It does not need to be there.

It's very heavily injecting everywhere.

It just need improve CRON coding or somewhere else better for automatic.

The reason why I do not want an user to know that I am using payplans which gives out to people to know that is joomla or etc.

If anyone can see their site with Payplans with automatic CRON setting or issue with email template etc please comment here. Thank you

I understand the CRON setting on Payplans 3.5 was easier.

Kind regards
·
Thursday, 04 April 2019 16:29
·
0 Likes
·
0 Votes
·
0 Comments
·
After reading this you gave me this CRON tutorial link,

I read up and I understand which you did mention

This is the reason why automated cron is not advisable and is more of a last resort if the server itself does not allow or support cronjobs.


I understand that, but I'm only letting you know the injecting is quite heavy. I will speak to someone else (hosting provider) and switch automatic cron off, let someone know about it.

Thank you:)
·
Thursday, 04 April 2019 16:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Your manual say CRON server set up - but you didnt say anything is recommend which I can see every 5 mins on screenshot, for server, but when I look at automatic cron, the normal is every 15 mins, which one or is there any recommend value?

Please correct me if the number is high visitor to the site would that affect CRON, or adjust higher or more lower?

Or would that is up to hosting provider to adjusting to meet the process?
·
Thursday, 04 April 2019 16:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey James,

How to find the this <img alt="Cron Job Starts" src="https://www.v2..co.uk/index.php?option=com_payplans&;view=cron&tmpl=component" style="display: none;" />

You can remove this line of code from this PHP file JoomlaFolder/plugins/system/payplans/payplans.php , you can refer my attached screenshot below.
And this HTML code will not affect any performance issue on your site even it injected on the Payplans pages.

However, we will see if possible to get rid of these code in the future version.

Your manual say CRON server set up - but you didnt say anything is recommend which I can see every 5 mins on screenshot, for server, but when I look at automatic cron, the normal is every 15 mins, which one or is there any recommend value?

You can setup cron job as per your requirement, if you would like to activate automatic cron from backend, this is the following cron internal for this.
Lowest - 1 hour
Low - 30 minutes
Normal - 15 minutes
High - 5 minute

And I noticed our documentation there got some wrong information, we will update this for the cron frequency to 5 minute.

Please correct me if the number is high visitor to the site would that affect CRON, or adjust higher or more lower?

It shouldn't affect anything for the cron job execution.

Or would that is up to hosting provider to adjusting to meet the process?

Regarding this cron interval setting, it's really up to you how long you would like to set for the cron interval, but I would recommend you that set the cron interval to 5 minute.

I understand the CRON setting on Payplans 3.5 was easier.

Actually Payplans 3 Cron setting is the same in Payplans 4.
And the older version of PayPlans 3.x also will inject this cronjob HTML on the pages, but it's strange why it's only happen on Payplans 4 which inject this HTML code into your RS Form Pro! DJ Classifieds email template, is it possible for you to setup one of your development site and provide us with your site backend, FTP and guide us how to replicate this so we can able to check this on your development site?

Thank you for understanding
·
Thursday, 04 April 2019 17:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha,

Thank you for much more clearer reply, much appreciate it

Okay you're in luck as my hosting provider have just create duplicate of V2 to testdrive site yesterday, so I can turn V2 automated cron setting off and carry on at V2.

I also have create much simpler login for you.

Once you've successful logon to access testdrive site.

--- Homepage - you can check source code which is far bottom.
--- Login back end as super admin -- you can check source code
--- Go to DJ Classified, click Option, look for Notification Setting, and put the Notification email address which you can test email yourself, rather testing front end to test it yourself.

Once you've set the email address that you will receive email. Go to DJ Classified Component again, and click Email Templates

Find Advert edition - Administrator notification, and ensure you toggle to see the code not viewer, (click Advert edition, click toggle once, click Cancel, then re-enter again, you will see full HTML code, and go on bottom of source, you will see injection code, When you try to remove of injection code, Click Save... and look at source bottom again, you will see injection code again.

You can also send it yourself via actual email, all you have to click Save & Send email to Admin button which you will receive email which what customer will have (because it does same thing on different email template)

When you receive the email, look at the source code you will see injection code.

--- RS Form! Pro - Go to RS Form! Pro, click Form, Click Account Registeration, click Form Properties, click User Emails. You will see Contents. NOTE it is a bit difficult to explain to you, Toggle Text first from HTML, then edit the Email Text, you can see HTML codes, look at bottom source, there is no payplan injection code, but click Save, then toggle HTML from Text, click Preview and look at source code which you'll see bottom page, that is payplan injection..

To test the RS Form! Pro to receive email. you need to register testdrive domain /register and select Business and fill the form...

You will receive an email and have a look source code.

I hope this replicate information helps you lot.
·
Thursday, 04 April 2019 19:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey James,

Thank you for sharing the development site access as well as the steps to replicate this issue.
I am able to replicate this issue at your site. Will update you once i finished checking this.

Thank you for understanding !
·
Friday, 05 April 2019 15:21
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post