Previous Thread
Next Thread
Print Thread
Rate Thread
#212494 10/14/2001 1:38 PM
Joined: May 2001
Posts: 29
User
User
Joined: May 2001
Posts: 29
When running 'subscriptions.pl' I get the following error message.

Notice the // between 'languages//subscriptions.pl'

Error message
~~~~~~~~~~~
Can't locate
/path/to/my/server/forum/cron/languages//subscriptions.pl in @INC

(@INC contains: /path/to/my/server/forum/cron
/usr/libdata/perl/5.00503/mach
/usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 .) at

/path/to/my/server/forum/cron/subscriptions.pl line 19.

Thank you.

Sponsored Links
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Hmm, looks like I made a booboo when porting this from PERL to PHP. That line should look like this:

# -----------------------------------------
# require the language file for this script
require "$config{'path'}/languages/$config{'language'}/subscriptions.pl";


UBB.threads Developer
Joined: May 2001
Posts: 29
User
User
Joined: May 2001
Posts: 29
Tis different, eh ;-)

Can't locate
/path/cron/languages/english/subscriptions.pl
in @INC

(@INC contains: /path/cron
/usr/libdata/perl/5.00503/mach
/usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 .)

at /path/cron/subscriptions.pl line 19.

Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Hmm, do you have the unshift line setup properly in the subscriptions.pl file along with the variables in the w3tvars.pm file?


UBB.threads Developer
Joined: May 2001
Posts: 29
User
User
Joined: May 2001
Posts: 29
I believe all is well.

See file permissions and configs below:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-rw-r--r-- 1 talk talk 2978 Oct 14 04:01 INSTALL
-rw-r--r-- 1 talk talk 10558 Oct 14 21:39 Mailer.pm
-rwxr-xr-x 1 talk talk 4535 Oct 14 21:39 doexpire.pl
-rw-r--r-- 1 talk talk 0 Oct 14 04:01 index.html
drwxrwxr-x 2 talk talk 512 Oct 14 04:01 languages
-rwxr-xr-x 1 talk talk 5395 Oct 14 21:39 subscriptions.pl
-rw-r--r-- 1 talk talk 4508 Oct 14 21:39 w3t.pm
-rw-r--r-- 1 talk talk 2652 Oct 14 21:38 w3tvars.pm


-rwxr-xr-x 1 talk talk 262 Oct 14 04:01 big5.pl
-rwxr-xr-x 1 talk talk 257 Oct 14 04:01 chinese.pl
-rwxr-xr-x 1 talk talk 302 Oct 14 04:01 danish.pl
-rwxr-xr-x 1 talk talk 266 Oct 14 04:01 english.pl

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You also might need to edit unshift line in subscriptions.pl. You might need
to change the path to the actual location of the main wwwthreads directory:

unshift(@INC, "/home/httpd/html/wwwthreads.com/php/cron");

unshift(@INC, "/correct/path/forum/cron");


# Url to the cgi-bin containing the WWWThreads php package
$config{'cgiurl'} = 'http://talk.manchester-mi.org/forum';

# Path to the cron directory in your php installation
$config{'path'} = '/path/forum/cron';

# Name of the server running sql - (yourhost.com or localhost)
$config{'dbserver'} = 'localhost';

# Name of the database you created for the sql tables
$config{'dbname'} = 'talk_manchester';

# Name of the DBI driver you are using ('mysql','Pg','oracle')
$config{'dbdriver'} = 'mysql';

# Name of the database user to connect as.
$config{'dbuser'} = 'nobody';

# Password of the database user.
$config{'dbpass'} = 'xxx';

# Use sendmail or a SMTP server. If you are on a server that has
$config{'sendmail'} = '/usr/sbin/sendmail';
# $config{'SMTP'} = 'name.smtp.server.';

# -----SITE SPECIFIC / NAVIGATION
# Title of site
$config{'title'} = 'Manchester Talk';

# Your email address
$config{'emailaddy'} = '[email protected]';

# SPECIAL FUNCTIONS----------

# Default language. Options are, big5, chinese, danish, english,
$config{'language'} = 'english';

# Which time format to use. The short format is Y2K compliant :)

# long = 'Sun Mar 7 10:19:48 1999';

$config{'timeformat'} = 'short1';

1;

Sponsored Links
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Bleh, another mixup on my part. That line that I told you to change. Go ahead and get rid of that thing altogether. You don't even need it in under PHP.


UBB.threads Developer
Joined: May 2001
Posts: 29
User
User
Joined: May 2001
Posts: 29
ok!

But will that fix this:

#doexpire.pl

Can't locate w3ttheme.pm in @INC
(@INC contains:
/path/forum/cron
/usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 .)

at /path/forum/cron/doexpire.pl line 10.


BEGIN failed--compilation aborted at
/path/forum/cron/doexpire.pl line 10.

Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Bleh[]/testimages/icons/crazy.gif[/]. You don't need this line in doexpire.pl:

use w3ttheme qw(%theme);


UBB.threads Developer
Joined: May 2001
Posts: 29
User
User
Joined: May 2001
Posts: 29
Thanks. Works great.

Ya know, my wife calls me high maintenance. What da ya think she means by that?

On that note, it looks like mail is intended to come as HTML. The tags are present but no worky. Where do you set the MIME type?

<b><i><font color=blue>Welcome to the Manchester Talk Discussion Forums.</font color=blue></i></b>


Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
[]/testimages/icons/laugh.gif[/]My wife says the same thing.

Hmm, not sure about where to set this in PHP. It might be in the php.ini file but I'm not real sure. I'll see if I can find any info on it.


UBB.threads Developer
Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)