Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Autonews Infusion Not Working

Asked Modified Viewed 2,951 times
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
  • Started this discussions
asked
Senior Member

I've posted about this infusion before and here I am again asking for help. I thought I would see if I can get some help here before I give up on this much needed infusion...for me anyway.

With much help from Grimloch, we have been able to get this infusion to infuse and in Grimloch's case the infusion is working as it is supposed to be. In my case, the infusion gets infused, the settings page for the infusion works but it will absolutely not send out email notifications to subscribers at all. This infusion has been around since at least version 7.01.03 of php-fusion and always worked flawlessly until version 7.02.07. Beginning with version 8, I ran into problems...first getting it installed and then again not being able to get it to send out notifications. With version 9 the same issues have come up which has brought me to this point.

I am attaching the files that I have been using on php-fusion version 9.10.20 in the hopes that some guru out there can figure out what the problem is. I am also attaching the original version that worked on php-fusion 7.02.07

Attached files: Auto_News.zip = urrent version that will infuse on 9.10.20
autonews_infusion.zip = original version that worked until 7.02.07

Thanks in advance.
afoster attached the following file:
auto_news.zip [No information available / 60 Downloads]
autonews_infusion_1.zip [No information available / 70 Downloads]
0 replies

34 posts

A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
  • Started this discussions
answered
Senior Member

Thanks for your response douwe...there is a cron job file but the developer stated that the script will work without the use of a cron job. To answer your question, I don't know which script executes the sending of the mail. I believe it is the autonews_include file but can't be sure. There is a panel that is generated that when I click on it (as the administrator) it takes me to an autonews settings page where I pick which events I want the members to know about. This script worked flawlessly on version 7.02.07 and for a while on version 8.00.20. It works with fusion 9 also, but only if I manually generate the email through the settings page. I am using the files that Mathias provided in this thread.
0 replies
M
MathiasHU
M
https://fusion.bltfm.hu/
  • Junior Member, joined since
  • Contributed 48 posts on the community forums.
  • Started 3 threads in the forums
  • Answered 1 question
answered
Junior Member

Panel visibility, guest. Sending email works. As soon as I have time, I'll review the whole system.
0 replies
D
douwe_yntema
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
answered
Senior Member

Mail is sent from autonews_include.php, lines 104 and 110, from function autonews_send.
Function autonews_send is called from function autonews, in same file.
Function autonews is called in autonews_panel.php

But there is an interval declared at:

// Returns TRUE if newsmail needs to be sent or are being sent
function autonews_check(&$autonews_settings)
{
 return !bit_isset($autonews_settings['include'], 0) && // Not disabled
 $autonews_settings['frequency'] > 0 && // Not 'never'
 (($autonews_settings['status'] == AUTONEWS_STATUS_WAIT && $autonews_settings['ts_thissend'] + $autonews_settings['frequency'] < time()) || // Time for a new mail
 ($autonews_settings['status'] == AUTONEWS_STATUS_SEND && $autonews_settings['ts_lastchunk'] + $autonews_settings['senddelay'] < time()) // Sending is ongoing
 );
}
0 replies
G
Grimloch
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Answered 2 questions
answered
Senior Member

@MathiasHU

Quote

Panel visibility, guest. Sending email works. As soon as I have time, I'll review the whole system.


I think afoster and myself mis-read this whole thing as far as the side panel permissions. We (I specifically) thought it had to be administrator. This morning I had 2 autonews messages from one of my test sites after I had gone to bed so I know that it DID IN FACT send automatically. Now I just have to confirm that all the queries are correct to generate the correct urls in the emails. Had some problems with that This has been a really LONG HARD road but I think the light at the end of the tunnel is FINALLY in sight !! But I'll leave it up to afoster to confirm that it will work as intended on his site as well.
1 reply
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
  • Started this discussions
answered
Senior Member

Just to be sure I understand what I have read here, the panel should not be set to have the Administrator or Super Administrator as the only people to see the panel. The other options are Member of Public. I have set it to Public and have posted a shout...now waiting to see if I get the notification automatically. I will post again once the hour is up and I either get the notification or not. Thanks to all for your continued assistance in trying to get this working for me.
0 replies
D
douwe_yntema
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
answered
Senior Member

It wlil only send a mail if someone is visiting the site, and the code in the panel gets executed. That's why its visibility must be set to public.

This is common practice in Fusion for Cron jobs alternative
0 replies
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
  • Started this discussions
answered
Senior Member

I went back and checked my version 7.02.07 of php-fusion and the panel is in fact set to public. However, I did not have to be on the site to receive notifications. The notifications are sent after the prescribed time as long as there is new information on the site.

This morning I posted a shout and set the panel to one hour and since it is a test site, no one will be visiting the site and hopefully I will get the notification of the shout post.
0 replies
D
douwe_yntema
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
answered
Senior Member

If no one is visiting the test site, I am pretty sure you will get NO emails.

Maybe as a test visit the site by yourself a couple of times
0 replies
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
  • Started this discussions
answered
Senior Member

I will make a test visit to the site a few times, but first I want to test to see if it will send the notification without visiting the site like it does on 7.02.07.
0 replies
D
douwe_yntema
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
answered
Senior Member

In the original version V7.02.07 there is no mail sent either if no one visits the site, unless you set up a cron-job or similar on the webserver.
This is the same for both versions.

For that you have to execute the file autonews_cronjob.php by the cron task and make the setting cronjob to TRUE
0 replies
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
  • Started this discussions
answered
Senior Member

Well, you're right...I received no notification until I visited the site. I posted a test shout on my version 7.02.07 site to see if the notification is sent from there but the hour is not yet up so I won't know if that works or not.

On another note, take a look at the attached screenshot and tell me why it shows pm31 after Tue Mar 15. I cannot find where that is generated from.
afoster attached the following image:
Image not found
0 replies
D
douwe_yntema
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
answered
Senior Member

Cannot find it either.

I have not installed the infusion, so I cannot test it.
It has todo with escaping date format I guess.

https://stackoverflow.com/questions/53213573/twig-date-and-time-formatting-with-text-in-between
0 replies
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
  • Started this discussions
answered
Senior Member

This infusion is just not working for me...could be a server setting or something else but it is not working. Thanks to everyone that provided assistance.
0 replies
D
douwe_yntema
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
answered
Senior Member

Does other email from the same site beeing sent?

I meant: are your mail server settings correct?
0 replies
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
  • Started this discussions
answered
Senior Member

Yes, other emails are being sent, so the server settings are correct.
0 replies

Labels

Statistics

  • Views 0 views
  • Posts 34 posts
  • Votes 0 votes
  • Topic users 6 members

6 participants

A
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
  • Started this discussions
C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
G
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Answered 2 questions
D
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
R
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions
M
M
https://fusion.bltfm.hu/
  • Junior Member, joined since
  • Contributed 48 posts on the community forums.
  • Started 3 threads in the forums
  • Answered 1 question

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet