php forum
php mysql forum
php mysql smarty
 
Page 3 of 4 < 1 2 3 4 >
Topic Options
#227265 - 11/08/02 01:26 PM Re: help with CRON pls, namely doexpire.pl [Re: joeuser]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
this is the error message i got:<br /> [] Can't locate /usr/local/etc/httpd/htdocs/ubbthreads/cron/languages/english.pl at w3t.pm line 40.<br />Compilation failed--compilation aborted at doexpire.pl line 22. [/] <br /><br />this is turning into a nitemare! <img src="/forum/images/graemlins/shocked.gif" alt="" />

Top
#227266 - 11/08/02 03:01 PM Re: help with CRON pls, namely doexpire.pl [Re: Luka_dup1]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
So fix the path on line 40 of w3t.pm.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#227267 - 11/08/02 05:13 PM Re: help with CRON pls, namely doexpire.pl [Re: joeuser]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
and wtf is that??

Top
#227268 - 11/08/02 06:19 PM Re: help with CRON pls, namely doexpire.pl [Re: Luka_dup1]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
It's a file in the /cron/perl folder.<br /><br />You need to edit the paths inside. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#227269 - 11/09/02 07:16 AM Re: help with CRON pls, namely doexpire.pl [Re: Daine]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
aha, ta! <br />this is the line it's referring to:<br /> [] require "$config{'path'}/languages/$config{'language'}.pl"; [/] <br /><br />so what is it exactly i add? and where to? in the {'path'} section?


Edited by monkeyra (11/09/02 07:19 AM)

Top
#227270 - 11/09/02 08:53 AM Re: help with CRON pls, namely doexpire.pl [Re: Luka_dup1]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Just put in the path for the file that it's looking for. I think it would be:<br /><br />require '/usr/local/etc/httpd/htdocs/ubbthreads/cron/perl/languages/english.pl';
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#227271 - 11/09/02 11:09 AM Re: help with CRON pls, namely doexpire.pl [Re: joeuser]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
You also will probably need to edit w3tvars.pm<br /><br />There are a bunch of settings in there.... like the url this will need, database name, password, table prefix etc... <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#227272 - 11/10/02 04:34 PM Re: help with CRON pls, namely doexpire.pl [Re: Daine]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
ok, next hiccup.<br />I amended the w3t.pm and w3tvrs.pm and then tried to run perl doexpire.pl again.<br />I got a different error message this time, and I dont know what it means.<br /> [] Barewod found where operator expected at w3t.pm line 40, near /etc/httpd" (Missing operator before httpd?)<br />syntax error at w3t.pm line 40, near "/etc/httpd"<br />Compilation failed--compilation aborted at doexpire.pl line 22[/] <br /><br />This is the line I amended, I think correctly, but possibly not<br /> [] require "$config{usr/local/etc/httpd/htdocs/ubbthreads/cron/perl/languages/english.pl}/languages/$config{'language'}.pl";<br /> [/]

Top
#227273 - 11/10/02 04:41 PM Re: help with CRON pls, namely doexpire.pl [Re: Luka_dup1]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I think it should be:<br /><br />require "/usr/local/etc/httpd/htdocs/ubbthreads/cron/perl/languages/$config{'language'}.pl";<br />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#227274 - 11/10/02 04:41 PM Re: help with CRON pls, namely doexpire.pl [Re: Luka_dup1]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
See my post above. I specified the correct syntax for the "require". Don't bother using the $config stuff in the path here. You're just trying to get the thing to run. If you get that far, then you can worry about cleaning it up.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#227275 - 11/11/02 11:54 AM Re: help with CRON pls, namely doexpire.pl [Re: joeuser]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
okey dokey, i done that and i've still got the same error message.<br />just to confirm, this is the line in my w3t.pm file.<br /><br /> [] require '/usr/local/etc/httpd/htdocs/ubbthreads/cron/perl/languages/english.pl';<br />[/]

Top
#227276 - 11/11/02 12:11 PM Re: help with CRON pls, namely doexpire.pl [Re: Luka_dup1]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
By "same error", you mean you're still getting "Can't locate /.../english.pl at w3t.pm line 40." ? If so, are you sure that's the correct path to english.pl?
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#227277 - 11/11/02 02:54 PM Re: help with CRON pls, namely doexpire.pl [Re: joeuser]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
correct and correct dave<br />i've taken 2 screenshots so you can see exactly whats going on.<br /> []http://www.fordmondeo.org/monkeyra/telnet1.jpg[/] <br /> []http://www.fordmondeo.org/monkeyra/telnet2.jpg[/] <br /><br />BTW, the www is just a shortcut link to the full address.


Edited by monkeyra (11/11/02 02:56 PM)

Top
#227278 - 11/11/02 03:39 PM Re: help with CRON pls, namely doexpire.pl [Re: Luka_dup1]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Virtual FreeBSD ..... hmmmmm <img src="/forum/images/graemlins/frown.gif" alt="" /><br /><br />I used to use a similar server, and I remember the paths being kind of weird, and I had play around a bit to figure out what paths to use from cron.<br /><br />1) When you're in the directory that contains english.pl, what's the output if you type "pwd"?<br /><br />2) What happens if you type "virtual perl -v" ?<br /><br />
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#227279 - 11/11/02 05:00 PM Re: help with CRON pls, namely doexpire.pl [Re: joeuser]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
aha!<br />I get a different path!<br />/usr/home/nickjenk/usr/local/etc/httpd/ubbthreads/cron/perl/languages<br /><br />when i type virtual perl -v it comes up <br />"This is perl, v5.6.1 built for i386-freebsd yadda yadda yadda....."

Top
#227280 - 11/13/02 02:39 PM Re: help with CRON pls, namely doexpire.pl [Re: Luka_dup1]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
i amended the path to the new one, and i got a new error!<br /> []http://www.fordmondeo.org/monkeyra/telnet3.jpg[/]

Top
#227281 - 11/13/02 03:13 PM Re: help with CRON pls, namely doexpire.pl [Re: Luka_dup1]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
That means that you don't have the Perl DBI (database interface) module installed. That module is needed for accessing a MySQL database from Perl. (I don't have that module installed either, so I can't use Perl for MySQL stuff.)<br /><br />Your choices:<br /><br />1) Install the DBI.pm module from CPAN.org.<br /><br />2) Install PHP as a static binary.<br /><br />3) Give up. <img src="/forum/images/graemlins/tongue.gif" alt="" />
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#227282 - 11/13/02 04:09 PM Re: help with CRON pls, namely doexpire.pl [Re: joeuser]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
lol!!<br />thanks dave. i'll have a look at installing those 2moro (maybe, lack of enthusiasm!)

Top
#227283 - 11/13/02 05:41 PM Re: help with CRON pls, namely doexpire.pl [Re: Luka_dup1]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Another thought. I haven't tried this, but you might be able to run the PHP version doexpire.php from your browser. Running it occassionally (e.g., once a week) might be easier than trying to get the cron stuff working. Assuming it works, you might want to password-protect the threads cron directory, so that not everyone can run it.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#227284 - 11/14/02 11:18 AM Re: help with CRON pls, namely doexpire.pl [Re: joeuser]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
ok, i gave it a go.<br /> [] Fatal error: Failed opening required 'path/to/ubbthreads/main.inc.php' (include_path='.:') in /usr/local/etc/httpd/htdocs/ubbthreads/cron/php/doexpire.php on line 22<br /> [/]

Top
Page 3 of 4 < 1 2 3 4 >


Moderator:  Gizmo 
Who's Online
0 registered (), 25 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
11/20/08 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
nick1, Begbie, cenk, MATTO, DougMMcts
13362 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks