• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Youtube Crones Not working

Started by indiyatube,

Previous topic - Next topic

0 Members and 9 Guests are viewing this topic.

indiyatubeTopic starter

Hi,

   All my youtube Crones not working. It showing Last run as Never only and no videos updating automatically. Please look after my problem. I am using Latest Phpvibe 3.6 Second Version.

Thanking You.
  •  

Marius P.

Hi,
You need to add a cron for the file cron.php in your system.
See step 4 : http://www.phpvibe.com/installing-phpvibe/
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

indiyatubeTopic starter

Quote from: @Mario on
Hi,
You need to add a cron for the file cron.php in your system.
See step 4 : http://www.phpvibe.com/installing-phpvibe/

Done Everything but no update. It still showing Never and no posts updating.
  •  

Marius P.

Did you run www.yoursite.com/cron.php in your browser (just to see that all is ok)?
Also, make sure you setup the cron correctly for your environment.

I use

/user/bin/php /home/xxxx/public_html/cron.php

as my cron running command, basically /path to php-bin executable AND / full path till cron.php
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

indiyatubeTopic starter

Quote from: @Mario on
Did you run www.yoursite.com/cron.php in your browser (just to see that all is ok)?
Also, make sure you setup the cron correctly for your environment.

I use

/user/bin/php /home/xxxx/public_html/cron.php

as my cron running command, basically /path to php-bin executable AND / full path till cron.php

When i run file on browser, then it executed a import. But i need this to be done automatic from time to time.

Now i have my path in plesk with cent os as - indiyatube@indiyatube.com/httpdocs/cron.php

Please provide me correct link to execute at command plz.
  •  

Marius P.

I don't think that's an path at all.
I can't tell you what your path is, is your path, should be visible in the admin panel.

I can tell you a trick:

Make a file called er.php containing
<?php echo "it"s a big error time".now; ?>
Upload it to root and execute it in browser. This will trow you two errors, in the errors it will show your path:
/something/something/etc/er.php

/something/something/etc/ is your path.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

indiyatubeTopic starter

Quote from: @Mario on
I don't think that's an path at all.
I can't tell you what your path is, is your path, should be visible in the admin panel.

I can tell you a trick:

Make a file called er.php containing
<?php echo "it"s a big error time".now; ?>
Upload it to root and execute it in browser. This will trow you two errors, in the errors it will show your path:
/something/something/etc/er.php

/something/something/etc/ is your path.

Done this trick but it shows blank page..
  •  

Marius P.

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  


Marius P.

Quote from: indiyatube on
Am on OVH Dedicated server.

And that topic shows you where to find the error log for your panel...
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Marius P.

Ok, I got another idea:

Make a file called path.php with this content

<?php 
require_once("load.php");
echo ABSPATH;
?>



this placed in the phpvibe root and visited in the browser will print out the server's path.


You should really get some help with your server, hosting is not an easy thing, there are over 200 settings and more ways it can go wrong when owning a dedicated/VPS and not knowing what to do/what it involves.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

indiyatubeTopic starter

Quote from: @Mario on
Ok, I got another idea:

Make a file called path.php with this content

<?php 
require_once("load.php");
echo ABSPATH;
?>



this placed in the phpvibe root and visited in the browser will print out the server's path.


You should really get some help with your server, hosting is not an easy thing, there are over 200 settings and more ways it can go wrong when owning a dedicated/VPS and not knowing what to do/what it involves.

Ok. Instead can i send you my server details.. so you can set one time to work cron well.

If ok i will send details via private message.

Thank you.
  •  

Marius P.

Send them. My colleague from MediaVibe said you want a 5 minutes cron, that's an waste of server resources since Youtube's API will not return new results in under 3-6 hours.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

indiyatubeTopic starter

Quote from: @Mario on
Send them. My colleague from MediaVibe said you want a 5 minutes cron, that's an waste of server resources since Youtube's API will not return new results in under 3-6 hours.

Hi please check pm plz. I have send you all.

Thank you.
  •  

Marius P.

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

indiyatubeTopic starter

  •  

Marius P.

Quote from: indiyatube on
Thank you very very much. Hope the settings work well.

Let me know. Also make sure you lower a cron's time by editing it since by default is 86400 seconds (once a day)
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

indiyatubeTopic starter

Quote from: @Mario on
Let me know. Also make sure you lower a cron's time by editing it since by default is 86400 seconds (once a day)

Yes i changed bcz to change settings to run cron. Does i need to reset them to default??
  •  

Marius P.

You don't need to reset anything, just edit every cron on the phpvibe admin and edit 86400 to your time (example 600) for 10 minutes.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

indiyatubeTopic starter

Quote from: @Mario on
You don't need to reset anything, just edit every cron on the phpvibe admin and edit 86400 to your time (example 600) for 10 minutes.

Fine thank you. I will do it. You changed same for 10minutes in plesk panel too. If so thank you very much.
  •  

indiyatubeTopic starter

Quote from: indiyatube on
Fine thank you. I will do it. You changed same for 10minutes in plesk panel too. If so thank you very much.

Hi,
 
   The cron running every ten minutes. But giving error and no video updating.

I getting error to my email as follows

/var/www/vhosts/indiyatube.com/httpdocs/cron.php: line 1: syntax error near unexpected token `('
/var/www/vhosts/indiyatube.com/httpdocs/cron.php: line 1: `<?php error_reporting(0); '


Thanking You.
  •  

Marius P.

Past the first 3-4 lines in cron.php, edited anything there?


Should look like:




<?php error_reporting(0); 
//Vital file include
require_once("load.php");
//Run Youtube
$crons = $db->get_results("select * from ".DB_PREFIX."crons where cron_type = 'youtube' or cron_type = 'youtube-1by1' order by cron_lastrun ASC limit 0,100000");
if($crons) {
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

indiyatubeTopic starter

Quote from: @Mario on
Past the first 3-4 lines in cron.php, edited anything there?


Should look like:




<?php error_reporting(0); 
//Vital file include
require_once("load.php");
//Run Youtube
$crons = $db->get_results("select * from ".DB_PREFIX."crons where cron_type = 'youtube' or cron_type = 'youtube-1by1' order by cron_lastrun ASC limit 0,100000");
if($crons) {


I havent edited anything.
  •  

Marius P.

But you've executed it before and confirmed is working. Code errors are code error 100/100 tries to execute it. So, something must have changed for it to no longer work.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

indiyatubeTopic starter

Quote from: @Mario on
But you've executed it before and confirmed is working. Code errors are code error 100/100 tries to execute it. So, something must have changed for it to no longer work.

Ok. Should i replace it with original file? Will it set?
  •  

Similar topics (7)