To post a new support question, click the Post New Topic button below.
Current Version: 4.9.1 | Sytist Manual | Common  Issues | Feature Requests

Please log in or Create an account to post or reply to topics.
You will still receive notifications of replies to topics you are part of even if you do not subscribe to new topic emails.

Problem Setting Up A Cron Job!

S
15 posts
Fri Feb 24, 17 1:19 PM CST
With my provider (1and1) I need to run the CRON job from the command line... so I've SSH'd into my hosting from my Mac (all fine logging in) but when running the command, I keep getting this error!

Parse error: syntax error, unexpected ')', expecting '(' in /homepages/18/d132470505/htdocs/clickandbuilds/StewartClarkePhotography/galleries/sy-admin/admin.functions.php on line 551
(uiserver):u38525944:/homepages/18/d132470505/htdocs/clickandbuilds/StewartClarkePhotography/galleries/sy-admin$

Does that mean anything to you?

Thanks,
Stewart
S
15 posts
Fri Feb 24, 17 1:30 PM CST
I've also tried using the other method you mentioned (http) and got his output... has it worked? it mean nothing to me!

--2017-02-24 19:24:54-- https://scphotography.co.uk/galleries/sy-admin/sy-cron.php
Resolving scphotography.co.uk (scphotography.co.uk)... 217.160.0.160
Connecting to scphotography.co.uk (scphotography.co.uk)|217.160.0.160|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: '/dev/null'

/dev/null [ ] 91 --.-KB/s in 0s

2017-02-24 19:24:54 (3.79 MB/s) - '/dev/null' saved [91]

(uiserver):u38525944:/homepages/18/d132470505/htdocs/clickandbuilds/StewartClarkePhotography/galleries/sy-admin$
This reply was deleted.
S
15 posts
Fri Feb 24, 17 5:23 PM CST
Hi Tim, I'm very much struggling with this... as per my first message, the cron job gives an error when trying to run... but if I type in '/usr/bin/wget -O /dev/null https://scphotography.co.uk/galleries/sy-admin/sy-cron.php' I get the message as per above and my server then spit out any test email messages in the que!

Can you offer some help?

Thanks,
Stewart
16,207 posts (admin)
Sun Feb 26, 17 5:29 AM CST
I don't know why you would be getting the error in your first post. I would expect you would see that on every page of the admin.

Maybe try this one:

wget -q --spider https://scphotography.co.uk/galleries/sy-admin/sy-cron.php


https://www.picturespro.com/sytist-manual/settings/automated-emails/
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
S
15 posts
Sun Feb 26, 17 2:43 PM CST
Thanks Tim, that command just function like the one above (except no return output in the ssh terminal)... once entered, it turfs out any previous test emails and that's it... you can add test emails afterwards and they just sit waiting... nothing automated!

One thing comes to mind, which may have nothing to do with it. My install was under a different domain 'clarkesphotography.co.uk' it was hosted on the same server as my main domain. I wanted to combine my sites, so I just moved the install folder to a location inside my scphotography domain. The database remained the same, it's just the address going to the install folder changed... everything seems to work perfectly fine, I've had order, plus the sitemaps generate correct... so I haven't thought nothing else of it...

Could there be an underline issue with me doing that? I really don't know...
16,207 posts (admin)
Mon Feb 27, 17 5:21 AM CST
The domain name won't have anything to do it with it.

I am not familiar with how 1and1 does cron jobs (actually dislike that host), but just did a search and found these links (which seems to be way over complicated for this since cPanel hosting makes it pretty easy).

https://help.1and1.com/hosting-c37630/scripts-and-programming-languages-c85099/cron-jobs-c37727/create-a-cron-job-a595882.html

http://stackoverflow.com/questions/10011450/cron-job-on-1and1

https://help.1and1.com/hosting-c37630/scripts-and-programming-languages-c85099/cron-jobs-c37727/explanation-of-cron-jobs-a595881.html
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
S
15 posts
Mon Feb 27, 17 8:39 AM CST
Thanks Tim, I'll take a look... much appreciated.
re: 1and1, yes I'm disliking them as time goes on... maybe a move is due!

Cheers,
Stew
Edited Mon Feb 27, 17 8:40 AM by Stewart Clarke
This reply was deleted.
S
15 posts
Wed Mar 01, 17 4:15 AM CST
@Antell li, you star, thank you... that's perfect! :-)
Edited Wed Mar 01, 17 4:15 AM by Stewart Clarke
10 total messages
Please log in or Create an account to post or reply to topics.
This post has been viewed 750 times
 
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