To post a new support question, click the Post New Topic button below.
Current Version: 5.2.5 | Sytist Manual | Common Issues | Feature Requests
Cron File Error On Line 3 In Sy-cron.php File
Hi. My automated emails stopped working. I host with siteground and was able to setup the cron job correctly, and just chatted with their customer service. It appears to be an issue with my cron php file. This is the error. Any help? Thank you!
The error when trying to send the emails
Fatal error: require(): Failed opening required '//functions.php' (include_path='.:/usr/local/ph
This is my command and it is the correct one
/usr/bin/php -q /home/customer/www/clientphotocart.jenniferkoochofphotography.com/public_html/admin/sy-cron.php
Your automated emails / cron job stopped working because of changes your host made. Not by any changes in Sytist.
It is now not reading the PHP path with dirname(__FILE__) when executing the cron command.
You will need to edit the sy-config.php file that is inside your public_html folder through the file manager in your hosting control panel.
Make a backup of it first.
Change this line (2):
$setup['path']= dirname(__FILE__);
TO
$setup['path']= "/home/customer/www/clientphoto
And save.
My Email Address: info@picturespro.com
Hey tim. Thanks for the reply. I went ahead and edited the config file, but im still receiving the same error
Fatal error: require(): Failed opening required '//functions.php' (include_path='.:/usr/local/ph
My config file now looks like this:
The sy-cron file looks like this:
I don't know how you could be getting the same error message if you made that change. Are you sure you saved it?
If you can't get this to work you can try this option.
wget -q --spider http://www.yourwebsite.com/sy-admin/sy-cron.php
Replace yourwebsite.com/sy-admin with the URL to YOUR Sytist admin.
https://www.picturespro.com/sytist-manual/settings/automated-emails/
My Email Address: info@picturespro.com
I will try that thanks. I went into the installation files to retrieve the original config file to upload, maybe that will work. I noticed the file is a bit diff than the one already installed on my site. I did recently upgrade to the new sytist a few days ago.
The config file in the install files i just downloaded looks like this:
<?php
date_default_timezone_set('America/Los_Angeles');
/* WHEN EDITING BELOW, EDIT ONLY BETWEEN THE DOUBLE QUOTES (" ") */
/* DATABASE SETTINGS */
$setup['pc_db_location'] = "localhost"; // database hostname or location
$setup['pc_db'] = "database_name"; // The name of the database
$setup['pc_db_user'] = "database_username"; // username to the database
$setup['pc_db_pass'] = "password"; // password to the database
/* FOLDER SETTINGS */
$manage_folder = "sy-admin"; // Folder for the admin files
$inc_folder = "sy-inc"; // Includes folder
$graphics_folder = "sy-graphics"; // Folder for the graphics
$themes_folder = "sy-themes"; // Folder for themes
$misc_folder = "sy-misc"; // Folder for miscellaneous file uploads
$photos_upload_folder = "sy-photos"; // Folder where photos are uploaded
$layouts_folder = "sy-layouts"; // Folder where photos are uploaded
/* DO NOT EDIT BELOW HERE */
$setup['url'] = "http://".$_SERVER['HTTP_HOST']."";
$setup['secure_url'] = "https://".$_SERVER['HTTP_HOST']."";
$setup['path']= dirname(__FILE__);
$setup['content_folder'] = "";
$setup['tags_folder'] = "tags";
$setup['manage_folder'] = "$manage_folder"; // Folder for the admin files
$setup['inc_folder'] = "$inc_folder"; // Includes folder
$setup['graphics_folder'] = "$graphics_folder"; // Folder for the graphics
$setup['misc_folder'] = "$misc_folder"; // Folder for miscellaneous file uploads
$setup['themes_folder'] = "$themes_folder"; // Folder for miscellaneous file uploads
$setup['photos_upload_folder'] = "$photos_upload_folder";
$setup['layouts_folder'] = "$layouts_folder";
error_reporting(E_ALL ^ E_NOTICE);
ini_set('memory_limit', '512M');
ini_set('upload_max_filesize', "60M");
ini_set('post_max_size', "60M");
ini_set("log_errors", "on");
ini_set("error_log", $setup['path']."/errors.txt");
// ini_set('sendmail_from', 'user@domain.com');
?>
Should i upload this one to overwrite the existing config file that looks like this:
<?php
$setup['path']= "/home/customer/www/clientphoto
$setup['url'] = "http://".$_SERVER['HTTP_HOST']."";
$setup['pc_db_location'] = "localhost";
$setup['pc_db'] = "dbkkxac47cbstn";
$setup['pc_db_user'] = "uhd6p4cbzh8nf";
$setup['pc_db_pass'] = "jzu97gjytsxn";
$setup['content_folder'] = "";
$setup['manage_folder'] = "admin";
$setup['inc_folder'] = "sy-inc";
$setup['graphics_folder'] = "sy-graphics";
$setup['misc_folder'] = "sy-misc";
$setup['photos_upload_folder'] = "sy-photos";
$setup['layouts_folder'] = "sy-layouts";
$setup['tags_folder'] = "tags";
$setup['downloads_folder'] = "sy-downloads";
error_reporting(E_ALL ^ E_NOTICE);
ini_set('memory_limit', '256M');
ini_set('upload_max_filesize', '30M');
ini_set('post_max_size', '30M');
//ini_set('log_errors', 'on');
//ini_set('error_log', $setup['path']."/errors.txt");
ini_set('session.gc_maxlifetime', 3600);
ini_set('session.save_path', $setup['path']."/sy-phpsessions");
// Below is used when installing on a temporary URL. If you have your domain pointing to this hosting account now and no longer using a temporary URL, remove the line bellow
//$setup['temp_url_folder'] = "/clientphotocart";
// If you need to make adjustments to this file do so below this line before the closing PHP tag.
?>
I went ahead and replaced the config file with the more current one and input the database info and new path. The site is still fuinctioning and am waiting to see if emails will be sent.
Still receiving the same error
Fatal error: require(): Failed opening required '//functions.php' (include_path='.:/usr/local/ph
There was no need to replace the config file. What you have looked correct if it is the correct file.
What happened when you tried what I put in my last post or did you not try it?
wget -q --spider http://www.yourwebsite.com/sy-admin/sy-cron.php
Replace yourwebsite.com/sy-admin with the URL to YOUR Sytist admin.
My Email Address: info@picturespro.com
Hi Tim. Thanks for the response. I know it can get frustrating when so many people ask the same questions or ask before reading the faqs or the tutorials you have with all the diff suggestions. I can assure you before I post here, I followed all the diff directions. A few days back I thought maybe if I purchased the current sytist upgrade that might help with this issue, and also use the new cool features. So I did that. Then when nothing worked, i contacting siteground before posting here. They told me the correct cron command is this, and when using it, i get that error. I had this issue before when I was with godaddy a few years back and it wasn’t resolved. I’ve been having this issue for a very long time but with covid and not working often I just ignored it.But am trying to get my business back on track.
I’ve been using this since 2008 when I first purchased prophoto. Upgraded to sytist in 2015, and made a recent upgrade again. I think I’ve made a total of 20 posts my entire time. I truly need help and have exhausted anything I can do on my own and with my current hosting company's support.
I will try wget -q --spider again, and keep you posted. I'll try reaching out to siteground again as well just in case. I am moving hosting companies again soon.
Thanks for your help and time!
Jen
One thing you can try if the wget option doesn't work is to modify the sy-cron.php file.
It starts:
<?php
include "../sy-config.php";
require $setup['path']."/".$setup['inc_folder']."/functions.php";
Add this on line 3:
$setup['path']= "/home/customer/www/clientphoto
So it would be:
<?php
include "../sy-config.php";
$setup['path']= "/home/customer/www/clientphotocart.jenniferkoochofphotography.com/public_html";
require $setup['path']."/".$setup['inc_folder']."/functions.php";
You will need to make a backup and would have to be reuploaded after an update.
My Email Address: info@picturespro.com

Loading more pages