If you have a support question or comment, click the Post New Topic link below.
Current Version: 3.9.5 | Sytist Manual | Sytist Articles 

Mail Issues

 
Please log in or Create an account to post or reply to topics.
 
Elizabeth Andrews
48 posts
Tue Dec 22, 20
11:37 PM
Hi Tim,

I'm setting up my website (just bought today!) and I've spent pretty much all day trying to get the automated emails to work. For some reason the php emails don't work so I setup smtp. The test email button on the mail setup page works with that SMTP setup.

Next was automated cron emails, I was originally getting a bunch of errors from lines 2-4 on the output stating it couldn't find the links and a fatel error always occured on line 4. I hard coded the locations and no more "output" but the entire cron jobs just gets hung up in an "interrupted 255") state.

I'm using a synology, and I've waited until now to mention it because I read through all your support forum and see that "you have no experience" with them. I bought this synology for $2000 (with drives and extra ram) because it can self host with all the space one could ever need. Paired with your product, it's the perfect host... if we can get it working. I have seen many other people have them, so if any of you kind souls can help I would equally appreciate it.

Its a 920+ Synology, I installed:
PHP 5.6, 7.0, 7.2 and 7.4, I'm using 7.4 as the default. (enabled all extensions)
MariaDB 10
Web Station
Apachie HTTP Server 2.4
PHPMyAdmin

I have enabled auto emails and test mode ticked on the Automated messages page.

I created numerous Test Cron Job emails to different addresses and can see them in the database waiting to go.

I run the cron job via control panel / scheduler / user defined script which is as follows:

php /volume1/web/sy-admin/sy-cron.php

(I have tried many other variants that bring up an error, this and "/usr/bin/php" both at least do something with the php file).

The error I get before hardcoding the first 4 lines is:

Standard output/error:
PHP Warning: include(../sy-config.php): failed to open stream: No such file or directory in /volume1/web/sy-admin/sy-cron.php on line 2

Warning: include(../sy-config.php): failed to open stream: No such file or directory in /volume1/web/sy-admin/sy-cron.php on line 2
PHP Warning: include(): Failed opening '../sy-config.php' for inclusion (include_path='.') in /volume1/web/sy-admin/sy-cron.php on line 2

Warning: include(): Failed opening '../sy-config.php' for inclusion (include_path='.') in /volume1/web/sy-admin/sy-cron.php on line 2
PHP Warning: require(//store/store_functions.php): failed to open stream: No such file or directory in /volume1/web/sy-admin/sy-cron.php on line 4

Warning: require(//store/store_functions.php): failed to open stream: No such file or directory in /volume1/web/sy-admin/sy-cron.php on line 4
PHP Fatal error: require(): Failed opening required '//store/store_functions.php' (include_path='.') in /volume1/web/sy-admin/sy-cron.php on line 4

Fatal error: require(): Failed opening required '//store/store_functions.php' (include_path='.') in /volume1/web/sy-admin/sy-cron.php on line 4

Once I hard code those first few lines to:

include "/volume1/web/sy-config.php";
require "/volume1/web/sy-inc/functions.php";
require "/volume1/web/sy-inc/store/store_functions.php";

I get no output what so ever except for "interrupted, 255". Nothing is sent out, nothing is removed from ms_cron_emails.

It's very perplexing, and after reading through that entire sy-cron.php file, it has pretty much all the functionality in there that convinced me to buy the product, so I really hope I can get this working!

Before today, I couldn't read PHP, never knew I could logically disect a database (although phpmyadmin makes that a bit easy), never read so much of a forum in my life. My point is, I've really had a good go at this, now I need some help!

Thanks

Liz


Elizabeth Andrews
48 posts
Wed Dec 23, 20
8:13 AM
I don't think this makes a difference, but I'm pointing a spare domain (lizandrews.ca) at the synology until I get enough of a website to replace my main (lizandrews.com).

Hopefully it doesn't have an identity issue!
Tim - PicturesPro.com
13572 posts
admin
Wed Dec 23, 20
9:39 AM
In the sy-cron.php file, try changing the second line which is

include "../sy-config.php";

To these lines and see if that makes a difference.

$base = dirname(dirname(__FILE__));
include $base ."/sy-config.php";
 
 
 
 
 
Tim Grissett, DIA - PicturesPro.com || My Email Address: info@picturespro.com
Elizabeth Andrews
48 posts
Wed Dec 23, 20
9:48 AM
Hi Tim,

I now get no output at all:

Task: Liz_Auto_Message
Start time: Wed, 23 Dec 2020 08:43:30 GMT
Stop time: Wed, 23 Dec 2020 08:43:30 GMT
Current status: 255 (Interrupted)
Standard output/error:


From Nessy

My husband called the Synology NAS Nessy, he thinks its the lochness monster, I'm begining to think the same thing.

I've searched and tried many different iterations of running this in the "task scheduler", and I came upon this article:

https://blog.viking-studios.net/en/synology-php-7-cli-without-errors-nextcloud-and-php-7/

I'm not sure if its the problem or not as it goes beyond my understanding, but I have spent all morning identifying the PHP profile directory he refers to as , do you think this might have something to do with it? If it is do you have any suggestions there?


Tim - PicturesPro.com
13572 posts
admin
Wed Dec 23, 20
11:18 AM
Perhaps there is an error log somewhere recording an error if there is one.

I don't have any experience with these servers and don't know why the cron job would not be working.

Some people are using a third party service for their cron jobs:
https://cron-job.org/en/

the link to use would be like yoursite/sy-admin/sy-cron.php

 
 
 
 
 
Tim Grissett, DIA - PicturesPro.com || My Email Address: info@picturespro.com
Elizabeth Andrews
48 posts
Wed Dec 23, 20
11:53 AM
I was worried you might say you didn't have any experience with synologies, it seemed to be the concluding comment on most synology posts. The limiting factor in all hosting packages is storage space, synology and other NAS units are one of the few answers to that limitation, and they pair so well with self hosting.

I see many of your customers have also gone this route because most photographers are the same, space hungry. It would be fantastic if we could get some more support for synology in the future, which I am more than happy to contribute to as and where I can.

Thankfully cron-job.org works, although I will keep searching for a way to make it work locally as the less 3rd party dependancies the better. If I find a way, I'll post it on here for the next synology customer!

Much appreciated

Liz



Edited Wed Dec 23, 20 11:54 AM by Elizabeth Andrews
Loading more pages
Loading more pages

Sign up for email promotions.

Your information is safe with us and won't be shared.

Thank you for signing up!

 
©2003 - 2021 Grissett, LLC. All Rights Reserved.

By continuing to browse or by clicking Accept Cookies, you agree to the storing of cookies on your device necessary to provide you with the services available through our website.

    Accept   Privacy & Cookie Policy
Loading More Photos
Scroll To Top
Close Window
Loading
Close