Cron errors here after 3.1 update :( | Wordpress Support | Forum Archive

The free forums are no longer in use. It remains available as read-only archive.

Avatar
Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
The forums are currently locked and only available for read only access
sp_Feed Topic RSSsp_TopicIcon
Cron errors here after 3.1 update 🙁
March 5, 2014
11:00 am
Avatar
Guest
Guests

Hi Ovidiu,

after updating to version 3.1, my cron jobs stopped working properly.

 

This is the command I always used for one of my sites. http://www.neoz.it

/usr/bin/php  /home3/neozit/public_html/wp-content/plugins/xcloner-backup-and-restore/cloner.cron.php

I get :


Content-type: text/html
<h2>To run this script you need to create a custom config file inside XCloner Config, and call the script using php cli command like this:</h2>
<strong>php /home3/neozit/public_html/wp-content/plugins/xcloner-backup-and-restore/cloner.cron.php mycustomconfig.php</strong>


 
Also tried with configuration file and command :


/usr/bin/php  /home3/neozit/public_html/wp-content/plugins/xcloner-backup-and-restore/cloner.cron.php neoz.php

and I get :

Content-type: text/html
<h2>To run this script you need to create a custom config file inside XCloner Config, and call the script using php cli command like this:</h2>
<strong>php /home3/neozit/public_html/wp-content/plugins/xcloner-backup-and-restore/cloner.cron.php mycustomconfig.php</strong>


 
AND

 /usr/bin/php  /home3/neozit/public_html/wp-content/plugins/xcloner-backup-and-restore/cloner.cron.php?config=neoz.php

and I get :

Status: 404 Not Found
Content-type: text/html

No input file specified.

 

With previous version of XCloner Cron Jobs always worked perfectly on my 3 website without config file and command :

/usr/bin/php  /home3/neozit/public_html/wp-content/plugins/xcloner-backup-and-restore/cloner.cron.php 

 

Please … can you help me ? Smile

 

 

March 5, 2014
5:55 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

The correct cron command should be this one

 

/usr/bin/php  /home3/neozit/public_html/wp-content/plugins/xcloner-backup-and-restore/cloner.cron.php neoz.php

 

Make sure you reinstall XCloner latest version, the cloner.cron.php file should have this code at the top

 

if(!defined('STDIN') ) {
echo  "<h2>".$topErrorLine1."</h2>\n";
echo "<strong>".$topErrorLine2."</strong>\n";
exit;
}

 

Let me know if you have further issues

March 5, 2014
7:36 pm
Avatar
Guest
Guests

I did it Ovidiu. And I checked the code of cloner.cron.php. It corresponds 🙂

 

But the backup does not start and I get the same message :

 

Content-type: text/html

<h2>To run this script you need to create a custom config file inside XCloner Config, and call the script using php cli command like this:</h2>
<strong>php /home3/neozit/public_html/wp-content/plugins/xcloner-backup-and-restore/cloner.cron.php mycustomconfig.php</strong>

🙁

March 5, 2014
7:40 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Could you create a new php file and add this code inside and tell me what is the output?

 

<?php

echo php_sapi_name();

March 5, 2014
10:26 pm
Avatar
Guest
Guests

Sorry Ovidiu,

i created test.php and lounched a cron with this command :

/usr/bin/php  /home3/neozit/public_html/wp-content/plugins/xcloner-backup-and-restore/test.php

This is what I get in email  as a report.

Content-type: text/html

cgi-fcgi

I hope that this was your request.

😉
March 6, 2014
3:42 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Check this forum post http://www.xcloner.c.....e-2/#p9990 , might be best to do that in your case and add a custom validation if you like. What php version are you using?

March 6, 2014
5:32 pm
Avatar
Guest
Guests

PHP 5.4

The hosting is BLUEHOST in America.

Ok I try the solution described in that other post and I let you know 😉

Thanks Wink 

March 10, 2014
10:47 am
Avatar
Guest
Guests

Ok, the solution provided seems to work great 😉

Laugh

Thanks a lot for your support !

March 10, 2014
11:06 am
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

I have posted an update for XCloner, please download and reinstall it and let me know if you still have the issue.

 

Ovidiu

Forum Timezone: America/Chicago
Most Users Ever Online: 867
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
mlguru: 30
Django29: 29
Andy: 21
D: 21
Marcus: 20
Jamie F: 19
Member Stats:
Guest Posters: 738
Members: 10030
Moderators: 2
Admins: 3
Forum Stats:
Groups: 3
Forums: 7
Topics: 2397
Posts: 8236
Newest Members:
Omar Vera
Moderators: TriP: 0, Steve Burge: 0
Administrators: Ovidiu Liuta: 2484, Victor Drover: 1, Valentin Barbu: 0