Error with the cron job for d7

Hi to all,i installed the D7 Hookie, all good, but i have a problem with the cronjob ... It's look like work, but i get this message on mail :

/var/www/vhosts/domain/httpdocs/folder/periodic/cron.php: line 1: ?php
: No such file or directory
/var/www/vhosts/domain/httpdocs/folder/periodic/cron.php: line 2: /***************************************************************************
: No such file or directory
/var/www/vhosts/domain/httpdocs/folder/periodic/cron.php: line 3: anon_ftp: command not found
/var/www/vhosts/domain/httpdocs/folder/periodic/cron.php: line 4: anon_ftp: command not found
/var/www/vhosts/domain/httpdocs/folder/periodic/cron.php: line 5: anon_ftp: command not found
/var/www/vhosts/domain/httpdocs/folder/periodic/cron.php: line 6: syntax error near unexpected token `('
/var/www/vhosts/domain/httpdocs/folder/periodic/cron.php: line 6: `*     copyright            : (C) 2006 BoonEx Group

I set up the cronjob like this : /var/www/vhosts/domain/httpdocs/folder/periodic/cron.php

Where i go wrong ?  Thank you....

...
Quote · 29 Dec 2009

Just to make sure you have it setup correctly, check you /inc/header.inc.php file and check to see what it says next to:

$dir['root']

Your cron path should be what it says next to that PLUS periodic/cron.php trailing it.

Chris

Nothing to see here
Quote · 29 Dec 2009

Hy, i check it (because i have already read one of your post before to ask help), and it's the same plus the /periodic/cron.php ...

...
Quote · 29 Dec 2009

Looks like something is messed up or code missing with your cron.php. Try re-uploading the periodic/cron.php file into your dolphin's periodic/ directory and overwrite the existing one there.

What you are displaying is the top lines of the cron.php file that looks like this:

<?php
/***************************************************************************
*                            Dolphin Smart Community Builder
*                              -----------------
*     begin                : Mon Mar 23 2006
*     copyright            : (C) 2006 BoonEx Group
*     website              : http://www.boonex.com/
* This file is part of Dolphin - Smart Community Builder

Chris

Nothing to see here
Quote · 29 Dec 2009

Hi Zarcon , i try to re-upload the cron.php file ... but i have the some  problem, nothing change...

It's true, the line problem is about the first 6 and looks like the image you post ..

<?php

/***************************************************************************

*                            Dolphin Smart Community Builder

*                              -----------------

*     begin                : Mon Mar 23 2006

*     copyright            : (C) 2006 BoonEx Group

*     website              : http://www.boonex.com/

* This file is part of Dolphin - Smart Community Builder

*

* Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License.

* http://creativecommons.org/licenses/by/3.0/

*

* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;

* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

* See the Creative Commons Attribution 3.0 License for more details.

* You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin,

* see license.txt file; if not, write to marketing@boonex.com

***************************************************************************/

$GLOBALS['bx_profiler_disable'] = true;

This is my first line of the cron file..

...
Quote · 29 Dec 2009

So out of curiosity, is the cron working? When you upload a video, does it process?

Chris

Nothing to see here
Quote · 29 Dec 2009

Maybe a silly question? are you using a Windows server for hosting?

Quote · 30 Dec 2009

Hi, so i try to uploadone video, the upload go well, in the admin i see it and i actived, but when i try to see it tell me " Error: file not found" .

I try also to change some of my profile info ( like City, age,), but doesn't work...

This problem can be from the cronjob?

When i installed D7, the installer tell me to insert this line :

cd/var/www/vhosts/domain/httpdocs/folder/periodic; /urs/local/bin/php -q cron.php

but if i try it, i get this message :

/bin/sh: cd/var/www/vhosts/domain/httpdocs/folder/periodic: No such file or directory
/bin/sh: /urs/local/bin/php: No such file or directory

Thank you to try to help me....

...
Quote · 30 Dec 2009

Hi Jec1944 , i'm not sure (sorry) but i believe is not windows, my site is hosting by one of my friend and i think him use linux, but i will ask him ...

...
Quote · 30 Dec 2009

I may be wrong but I don't think your cron should be calling var/www/vhosts. What does it say for your

$dir['root'] in you /inc/header inc.php, as Zarcon was asking? If you are gosting on a Linux/Apache server, should start something like this:  $dir['root']               = "/home/gemma28/public_html/"; and my cron is working fine and without the trailing /perodic/cron.php. That is my actual directory path as setup by the installation.

 

This is the cron that I run:  * * * * * /usr/bin/php -q /home/gemma28/public_html/periodic/cron.php

Hope this helps a little.

 

Quote · 30 Dec 2009

Yes, the only reason I was asking is that I have only seen hpptdocs/folders referenced on a windows server installation. Normal Linux and Apachie is public_html and that is where your scripts are served from. However, when you install a script/program it will also write duplicate files to the www folder.

Quote · 30 Dec 2009

Yes, the only reason I was asking is that I have only seen hpptdocs/folders referenced on a windows server installation. Normal Linux and Apachie is public_html and that is where your scripts are served from. However, when you install a script/program it will also write duplicate files to the www folder.

This is what  i found on the header.inc.php :

$dir['root']               = "/var/www/vhosts/spiridusi.ro/httpdocs/purcelusi/";

from the installer tell me to set the cronjob like this :

cd/var/www/vhosts/domain/httpdocs/folder/periodic; /urs/local/bin/php -q cron.php

but doesn't work.

So i try to use this comand like what i read on one post from Zarcon :

/var/www/vhosts/spiridusi.ro/httpdocs/purcelusi/periodic/cron.php

But i receveid the error message i write at the beginnen of the post...

...
Quote · 30 Dec 2009

well, I had a look at your website, lot of mods there, which may or may not have anything to do with your problem. I am stumped as I have never really seen directory root paths configured like that and your is the second one that I have seen where the original domain name is also in doc root path. I have installed many scripts and have 33 domains and run my on server and have not come across anything like that.

 

Best bet is to get with your provider and see if you can work it out, because without really knowing what they are using to power the server with, it's hard to say what the cron configuration would be.

 

Best of luck.

Quote · 30 Dec 2009

well, I had a look at your website, lot of mods there, which may or may not have anything to do with your problem. I am stumped as I have never really seen directory root paths configured like that and your is the second one that I have seen where the original domain name is also in doc root path. I have installed many scripts and have 33 domains and run my on server and have not come across anything like that.

Best bet is to get with your provider and see if you can work it out, because without really knowing what they are using to power the server with, it's hard to say what the cron configuration would be.

Best of luck.

Ok, i spoke with my friend, the server is Linux CentOs, him give me the correct comand :

cd /var/www/vhosts/spiridusi.ro/httpdocs/purcelusi/periodic; /usr/bin/php -q cron.php

and now i get this eror :

<font color="red">register_globals is On (warning, you should have this param in Off state, or your site will unsafe)</font> <br />
Please go to the <br />
<a href="http://www.boonex.com/trac/dolphin/wiki/GenDolTShooter">Dolphin Troubleshooter</a> <br />
and solve the problem.

We check and the register_global is OFF only for my site, but it's off...

So, i read one post with the some problem, but i don't see or understand what was the solution...

Thank again to all for the help...

...
Quote · 30 Dec 2009

Hi to all,untill  today i try to resolve the cronjob problem (but i don't have result), and only now i play with the D7, and i start to have problem...

When i try to registrad a new user, i fill up all the mandatory field, but when i click on " Join Now" ... nothing happen...

II try also to setup some info at the admin profie... but nothing....

In the Administration side and sometime i see on the top of page this error message :

Warning: shell_exec() has been disabled for security reasons in /var/www/vhosts/spiridusi.ro/httpdocs/purcelusi/inc/classes/BxDolModuleDb.php on line 54

Warning: shell_exec() has been disabled for security reasons in /var/www/vhosts/spiridusi.ro/httpdocs/purcelusi/inc/classes/BxDolModuleDb.php on line 54

I re-install Dolphin few time, but no change...

I'm sorry to ask again and agian help, but i really don't understand and i don't know where i can ask help...

Thank you and Happy NEW YEAR to all !!!!

...
Quote · 31 Dec 2009

Hi, i try the solution i found in this post , so i insert the #! before /usr/bin/php,  and now i don't get any mail from the cronjob...

This is normal? I try to migrate the profiles, but nothing happen...

I try also to upload one video, after from the admin site i activeded it, from the site i can see the thoumbal, but when i try to see it i get the error : " file not found "...

And when i try to make a new user, after i fill up all the field and i click the "join now", nothing happen...

What test i can do for to be sure the cronjob work correctly ?

Thank you so much...

...
Quote · 31 Dec 2009

I got an email saying "0"  and I still do. The cron.php defo works, its just finding the damn command line that will work!

Quote · 31 Dec 2009

I got an email saying "0"  and I still do. The cron.php defo works, its just finding the damn command line that will work!

ok, i think i found the correct line :

cd /var/www/vhosts/spiridusi.ro/httpdocs/purcelusi/periodic; /usr/bin/php -q cron.php

but i get this message :

<font color="red">register_globals is On (warning, you should have this param in Off state, or your site will unsafe)</font> <br />
Please go to the <br />
<a href="http://www.boonex.com/trac/dolphin/wiki/GenDolTShooter">Dolphin Troubleshooter</a> <br />
and solve the problem.

now if i check from the administration with the host toll i get this, so what i have to do now? :

Different settings
register globals Off Off
safe mode Off Off
disabled functions nem,master,passthru,system,curl_exec,curl_multi_exec,show_source,shell_exec
memory limit 128M 128M
max execution time 1000 300
post_max_size 500M 128M or more
upload max filesize 500M 128M or more
allow_url_fopen On On
allow_url_include (for php > 5.2) Off Off
mbstring installation mbstring extension installed Installed
PHP version 5.2.11 4.4.0/5.1.0 and higher
SQL Client library version

5.0.86

4.1.2 and higher

...
Quote · 1 Jan 2010

Ok, because i'm SURE i have the register_global off , i delete from the file : header.inc.php this line :

$aErrors[] = (ini_get('register_globals') == 0) ? '' : '<font color="red">register_globals is On (warning, you should have this param in Off state, or your site will unsafe)</font>';

And now the cronjob WORK !!! I start to tranfer all the member, all the photo.. and work fine.

I know is not the corect solution, but this is it, is the only way to resolve one of my problem...

Now i have the problem with some bottons that doesn't want to work if i have the javascrip enable on the browes (like Safari), when i disable the javasrcipt they work ( but i get a lot of error message).

For example : when i want to edit the profile, when i click at the send botton (with javascript enable) nothing happen (but if i don't fill up one mandatory field, the script show me the red "circle").  If i disable the javascript, when i can save the modification...

On the server is php 5.2.11, my javascript on the Mac is the last one (i check yesterday ), so no idea about it...

Anyway thanks again for the help.

...
Quote · 1 Jan 2010

I had also problems with cron. 
Look if the following is working for you : /usr/local/bin/php -q

To me the cron seems to work now, I not get errors in mail now. 
Only video is not found error stays.

Kids first
Quote · 1 Jan 2010

I had also problems with cron. 
Look if the following is working for you : /usr/local/bin/php -q

To me the cron seems to work now, I not get errors in mail now. 
Only video is not found error stays.

Hi, i talk with my hosting and him tell me i don't have to use the " local" , before i deleting that function, i get ths error message :

<font color="red">register_globals is On (warning, you should have this param in Off state, or your site will unsafe)</font> <br />
Please go to the <br />
<a href="http://www.boonex.com/trac/dolphin/wiki/GenDolTShooter">Dolphin Troubleshooter</a> <br />
and solve the problem.

for this i delete the function and now the cron work : data migration, mass mailer (before doesn't work, video, etc....

But thank for the help....

...
Quote · 1 Jan 2010

I got the message from our hosting that we have to use /usr/local/bin/php  for our server. 

but no video format is working at all. I have tryed witch flv and mp4  now its says: video is being processed. But nothing is happened. I see the video in admin /video included picture. not more. 

****/usr/local/bin/php -q /home/xxxxxx/domains/xxxxxxxxxxxl/public_html/periodic/cron.php

This what I have now
Server is dedictaed.

Kids first
Quote · 1 Jan 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.