How to set up cron for feedsync

Easy Property Listings WordPress Real Estate Plugin Forums Extensions FeedSync How to set up cron for feedsync

Viewing 15 posts - 1 through 15 (of 31 total)

These forums are closed to new replies / tickets. Please open a support ticket from our new Support page.

  • Author
    Posts
  • #2344
    Trimson Partners
    Participant

    Hi Merv,

    Just wondering what the URL for the feedsync process would be? I checked your steps (http://www.realestateconnected.com.au/tutorial/how-to-import-reaxml-files-into-your-wordpress-real-estate-website/) and I can see how to run the import scripts as a cron job, just not the feedsync process.

    Cheers,
    Grace

    #2346
    Merv Barrett
    Keymaster

    Hi Grace,

    Here is a video on how to install FeedSync

    http://easypropertylistings.com.au/docs/how-to-install-feedsync/

    #2857
    Trimson Partners
    Participant

    Hi Merv,

    Thanks for that link, I see how I’m meant to add the FeedSync processor as a cron job now, however I’ve tried setting it up using the command provided on my ‘help’ page:

    /usr/bin/php -q /var/www/vhosts/trimson.com.au/httpdocs/trimson.com.au/XML/feedsync/lib/feedsync-processor.php

    But my email notification from the cron job is saying that /usr/bin/php does not exist. Am I supposed to change this to something more suited to my server? Where should this initial path be pointed?

    Thanks,
    Grace

    #2864
    Merv Barrett
    Keymaster

    The default setting works for some cPanel setups, forward the command to your server support team and they should be able to tell you the correct command to execute the script.

    /usr/bin/php this part may be unique to your server type. Please share your result so i can add to the help page for others to try.

    #3103
    Trimson Partners
    Participant

    Hey Merv,

    They came back to me and said that that was the correct path for the server. Which is totally unhelpful of them because they haven’t given me a reason why it wouldn’t be working…

    I might press them for more info.

    Also, they weren’t able to help me with my other query because it was out of the realm of their support. I am also trying to set up the trigger/processing crons for each of our imports. I copied the commands generated by the WP All Imports plugin for each one. I want the imports to happen every 2 hours between 10am and 6pm.

    This is what I set for one of the imports (I’ve also attached a screen grab of all my scheduled tasks in the Plesk panel):

    Hours: 10-18/2
    Minutes: 0
    wget -q -O /dev/null http://trimson.com.au/wp-cron.php?import_key=DSRGPI3uTpZ&import_id=5&action=trigger

    Minutes: */2
    wget -q -O /dev/null http://trimson.com.au/wp-cron.php?import_key=DSRGPI3uTpZ&import_id=5&action=processing

    Firstly, I’m not receiving a notification of anything happening at those hours, so I’m guessing something’s wrong there (but I think I’ll just fix this by just changing it to every two hours all day).

    Secondly, and most importantly, I believe the ‘processing’ script crashed the site. I think it literally goes every 2 minutes forever. How do I make it only fire when triggered??

    Cheers,
    Grace

    Attachments:
    You must be logged in to view attached files.
    #3105
    Merv Barrett
    Keymaster

    Hi Grace,

    Cron Processing

    Can you double check your command for hours and minutes. I believe you aren’t leaving the command enough time before starting the next import.

    Give each TRIGGER process at least 15-20 minutes, processing is fine at 2-5 min.

    You can check the time from Dashboard > All Import. The times run are on this page. Perform a manual process for each (especially the larger jobs) and see how long it takes to complete.

    Attachments:
    You must be logged in to view attached files.
    #3464
    Trimson Partners
    Participant

    Hey Merv,

    I’ve still had absolutely no luck with this. I’ve hit a brick wall. The web hosts came back and said that the path could in fact be /usr/local/bin and I checked the phpinfo.php file and it does exist. So I’ve tried it with that, but still I get the same error, that the path doesn’t exist.

    I noticed in your screen grab that you’re also firing the wp-cron.php file. Is that necessary? What does that do?

    Also, I finally started to get a response from the other import/processing scheduled tasks, because I removed the ‘dev/null’ in order to receive an email about the process.

    However, I seem to be getting an email from the processing task every 2 minutes, and it doesn’t stop. Is that correct? They’re never meant to stop?

    I wish I understood how this cron/scheduling works.

    Thanks,
    Grace

    #3466
    Merv Barrett
    Keymaster

    First remove your email from the cron notification box in cPanel. Otherwise it will send you an email every time it runs forever…

    The wp-cron is fine and is normally added automatically.

    Not sure about why your cron is not executing the php file. Have you tested the 1.2 Beta version? You can grab that from your account here.

    #3476
    Trimson Partners
    Participant

    Hey Merv,

    Yeah, I put my email in purposefully to determine whether anything was being triggered at all. There’s a whole lot of 0 bytes happening in the emails I get. Even when I’ve updated the xml file manually through FeedSync, it doesn’t seem to import anything.

    I haven’t tried the Beta version of FeedSync, no. It looks as though for some reason FeedSync is not in my downloads list. I think this is because we bought it without creating an account? Then we created the account afterwards to purchase the rest.

    Any chance you could hook it up to our account?

    Cheers,
    Grace

    #3477
    Merv Barrett
    Keymaster

    FeedSync does not import into WordPress it only prepares the XML files for import. To trigger the import login to WordPress and check your import scripts under the All Import button.

    These cron commands should be in your cPanel cron settings page.

    #3478
    Trimson Partners
    Participant

    Yep, the WP All Import scripts are all set as scheduled tasks in my Plesk panel (as you can see in my screen grab a few posts back).

    Sorry, I’m not referring to the FeedSync processing task returning 0 bytes (because I’ve temporarily given up on the FeedSync cron thanks to the path issue).

    Right now I’m just trying to make sure the trigger/processing WP All Import tasks are going to work once the FeedSync task is operating correctly.

    I’ve been testing each trigger/processing script out by making sure I get a notification when they’re happening. But even if the feedsync-current.xml file has new properties to import, none of the triggers/processors seem to import anything.

    Does that make sense?

    #3479
    Merv Barrett
    Keymaster

    See if any of the Plesk cron examples here work for you.

    #3480
    Merv Barrett
    Keymaster
    This reply has been marked as private.
    #3675
    Trimson Partners
    Participant

    Hey Merv,

    Our web hosts have managed to get our server processing FeedSync, however, now I’m running into warnings and a fatal error upon processing. This is what I get:

    PHP Warning:  include(../settings.php): failed to open stream: No such file or directory in /var/www/vhosts/OURDOMAIN/httpdocs/OURDOMAIN/XML/feedsync/lib/feedsync-processor.php on line 33
    
    PHP Warning:  include(../settings.php): failed to open stream: No such file or directory in /var/www/vhosts/OURDOMAIN/httpdocs/OURDOMAIN/XML/feedsync/lib/feedsync-processor.php on line 33
    
    PHP Warning:  include(): Failed opening '../settings.php' for inclusion (include_path='.:') in /var/www/vhosts/OURDOMAIN/httpdocs/OURDOMAIN/XML/feedsync/lib/feedsync-processor.php on line 33
    
    <!DOCTYPE html>
    <html lang="en">
     <head>
    	PHP Fatal error:  Call to undefined function feedsync_head() in /var/www/vhosts/OURDOMAIN/httpdocs/OURDOMAIN/XML/feedsync/lib/feedsync-processor.php on line 97

    Has anyone else reported these issues? I guess the warnings aren’t too bad, just the fatal error.

    Is this something we could potential fix by updating to FeedSync beta?

    Cheers,
    Grace

    #3676
    Trimson Partners
    Participant
    This reply has been marked as private.

These forums are closed to new replies / tickets. Please open a support ticket from our new Support page.

Viewing 15 posts - 1 through 15 (of 31 total)
  • The topic ‘How to set up cron for feedsync’ is closed to new replies.