Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
0 registered members (), 53 guests, and 184 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Bad Frog
Bad Frog
Coast of Maine
Posts: 749
Joined: May 2008
Show All Member Profiles 
Top Posters(30 Days)
Gizmo 12
Ruben 5
M4TT 4
isaac 3
Morgan 2
Tijn 1
Latest Photos
Previous Thread
Next Thread
Print Thread
w3tvars.pm did not return true value at subscriptions.pl line 28 #39634
02/11/04 12:33 AM
02/11/04 12:33 AM
Joined: Feb 2004
Posts: 10
K
Kydd Offline OP
stranger
Kydd  Offline OP
stranger
K
Joined: Feb 2004
Posts: 10
Using UBB.Threads 6.3.2

w3tvars.pm did not return a true value at subscriptions.pl line 28.
BEGIN failed--compilation aborted at subscriptions.pl line 28.

Trying to set up in cron. This happens just on the command line: perl subscriptions.pl.

Re: w3tvars.pm did not return true value at subscriptions.pl line 28 #39635
02/11/04 01:45 AM
02/11/04 01:45 AM
Joined: Feb 2004
Posts: 10
K
Kydd Offline OP
stranger
Kydd  Offline OP
stranger
K
Joined: Feb 2004
Posts: 10
Now after updating the cron scripts (only) to the latest version, and reconfiguring the w3tvars.pm, I am getting this:

Global symbol "$PAnon" requires explicit package name at ./subscriptions.pl line 90.
Global symbol "$Pnumber" requires explicit package name at ./subscriptions.pl line 90.
Global symbol "$Pnumber" requires explicit package name at ./subscriptions.pl line 91.
Global symbol "$PAnon" requires explicit package name at ./subscriptions.pl line 92.
Global symbol "$PAnon" requires explicit package name at ./subscriptions.pl line 93.
Execution of ./subscriptions.pl aborted due to compilation errors.

When running subscriptions.php from the command line I am getting this error:

<b>Fatal error</b>: Call to undefined function: send_mail() in <b>/path/to/2pop/ubbthreads/cron/php/subscriptions.php</b> on line <b>173</b><br />

Re: w3tvars.pm did not return true value at subscriptions.pl line #39636
02/11/04 02:46 AM
02/11/04 02:46 AM
Joined: Jun 2006
Posts: 292
Charlotte, NC
JoshPet Offline
enthusiast
JoshPet  Offline
enthusiast
Joined: Jun 2006
Posts: 292
Charlotte, NC
I don't know anything about the perl cron scripts as I prefer to use the PHP scripts.

But as per the php script:
<b>Fatal error</b>: Call to undefined function: send_mail() in <b>/path/to/2pop/ubbthreads/cron/php/subscriptions.php</b> on line <b>173</b><br />


The 6.4 cron script won't work on 6.3 as the mail function was complete rewritten - so the script looks for send_mail which doesn't exist yet in 6.3.


Joshua Pettit
Web Developer
www.ThreadsDev.net | www.JoshuaPettit.com
Re: w3tvars.pm did not return true value at subscriptions.pl line #39637
02/11/04 11:23 PM
02/11/04 11:23 PM
Joined: Feb 2004
Posts: 10
K
Kydd Offline OP
stranger
Kydd  Offline OP
stranger
K
Joined: Feb 2004
Posts: 10
OK I upgraded but now check out the subscriptions page .

Just #!/usr/local/bin/php displays

That is what displays when doing "whereis php". I'm guessing that's wrong...

Re: w3tvars.pm did not return true value at subscriptions.pl line #39638
02/12/04 12:40 AM
02/12/04 12:40 AM
Joined: Jun 2006
Posts: 292
Charlotte, NC
JoshPet Offline
enthusiast
JoshPet  Offline
enthusiast
Joined: Jun 2006
Posts: 292
Charlotte, NC
I'm not familiar with that - is php running as a CGI?

What happens without that line - if you run it in your browser and it returns a blank page - then it worked. <img src="https://www.ubbcentral.com/boards/images/graemlins/wink.gif" alt="" />


Joshua Pettit
Web Developer
www.ThreadsDev.net | www.JoshuaPettit.com
Re: w3tvars.pm did not return true value at subscriptions.pl line #39639
02/12/04 12:55 AM
02/12/04 12:55 AM
Joined: Feb 2004
Posts: 10
K
Kydd Offline OP
stranger
Kydd  Offline OP
stranger
K
Joined: Feb 2004
Posts: 10
I don't think php is running as CGI. I was just using the instructions at this page which might be slightly out of date.
Yeah and viewing source after taking out the bang line got this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>


Did I just send the email a few times? Oops...

Last edited by Kydd; 02/12/04 01:03 AM.
Re: w3tvars.pm did not return true value at subscriptions.pl line #39640
02/12/04 04:03 AM
02/12/04 04:03 AM
Joined: Jun 2006
Posts: 292
Charlotte, NC
JoshPet Offline
enthusiast
JoshPet  Offline
enthusiast
Joined: Jun 2006
Posts: 292
Charlotte, NC
I don't think you need it. I think those instructions are a bit outdated, as I've never added anything to the file (unless it's PHP running as a CGI).

So with the current PHP cron script, simply edit the path to main at the top. Setup the cron task on your server to run it nightly. And you should be set. <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />


Joshua Pettit
Web Developer
www.ThreadsDev.net | www.JoshuaPettit.com
Re: w3tvars.pm did not return true value at subscriptions.pl line #39641
02/12/04 10:41 AM
02/12/04 10:41 AM
Joined: Feb 2004
Posts: 10
K
Kydd Offline OP
stranger
Kydd  Offline OP
stranger
K
Joined: Feb 2004
Posts: 10
Just want to make sure what you meant by "edit the path to main at the top"? Did you mean the "she-bang" line? As in what I put in?

Re: w3tvars.pm did not return true value at subscriptions.pl line #39642
02/12/04 10:52 AM
02/12/04 10:52 AM
Joined: Feb 2004
Posts: 10
K
Kydd Offline OP
stranger
Kydd  Offline OP
stranger
K
Joined: Feb 2004
Posts: 10
BTW, after the update, runiing the perl script on the command line gets this, which is pretty much the same except the 1st line:

Global symbol "$PAnon" requires explicit package name at subscriptions.pl line 90.
Global symbol "$Pnumber" requires explicit package name at subscriptions.pl line 90.
Global symbol "$Pnumber" requires explicit package name at subscriptions.pl line 91.
Global symbol "$PAnon" requires explicit package name at subscriptions.pl line 92.
Global symbol "$PAnon" requires explicit package name at subscriptions.pl line 93.
Execution of subscriptions.pl aborted due to compilation errors.

Re: w3tvars.pm did not return true value at subscriptions.pl line #39643
02/12/04 11:59 AM
02/12/04 11:59 AM
Joined: Jun 2006
Posts: 10,177
Aberdeen, WA
R
Rick Offline
Former Developer
Rick  Offline
Former Developer
R
Joined: Jun 2006
Posts: 10,177
Aberdeen, WA
It still looks like your running a 6.3.x version of the subscriptions.pl script. I know the errors you are getting were in the 6.3.x series because they weren't declared properly. 6.4 should have resolved this issue.

Re: w3tvars.pm did not return true value at subscriptions.pl line #39644
02/19/04 07:13 PM
02/19/04 07:13 PM
Joined: Feb 2004
Posts: 10
K
Kydd Offline OP
stranger
Kydd  Offline OP
stranger
K
Joined: Feb 2004
Posts: 10
[]It still looks like your running a 6.3.x version of the subscriptions.pl script. I know the errors you are getting were in the 6.3.x series because they weren't declared properly. 6.4 should have resolved this issue. [/]

Well I checked and they are updated. On the command line this happens:

w3tvars.pm did not return a true value at /path/to/www.uemforums.com/2pop/ubbthreads/cron/perl/subscriptions.pl line 27.
BEGIN failed--compilation aborted at /path/to/www.uemforums.com/2pop/ubbthreads/cron/perl/subscriptions.pl line 27.

Does this line need "cron" in the path?

# Path to the cron directory in your php installation
$config{'path'} = '/path/to/www.uemforums.com/2pop/ubbthreads/cron';

Re: w3tvars.pm did not return true value at subscriptions.pl line #39645
02/20/04 11:56 AM
02/20/04 11:56 AM
Joined: Jun 2006
Posts: 10,177
Aberdeen, WA
R
Rick Offline
Former Developer
Rick  Offline
Former Developer
R
Joined: Jun 2006
Posts: 10,177
Aberdeen, WA
That could be your problem. This:

$config{'path'} = '/path/to/www.uemforums.com/2pop/ubbthreads/cron';


Needs to be the actual path to the root directory of your forums. So for one, you'll want to drop the cron. Is that the actual path? It could be but I've never seen a directory structure that starts with '/path/to/...'

Re: w3tvars.pm did not return true value at subscriptions.pl line #39646
02/23/04 11:45 PM
02/23/04 11:45 PM
Joined: Feb 2004
Posts: 10
K
Kydd Offline OP
stranger
Kydd  Offline OP
stranger
K
Joined: Feb 2004
Posts: 10
[]That could be your problem. This:

$config{'path'} = '/path/to/www.uemforums.com/2pop/ubbthreads/cron';


Needs to be the actual path to the root directory of your forums. So for one, you'll want to drop the cron. Is that the actual path? It could be but I've never seen a directory structure that starts with '/path/to/...' [/]

Nah I was just making it shorter than it really is...but I removed the "/cron" part and still getting the same errors on the command line. I reuploaded all of the scripts again (in ASCII natch), triple checked the vars, even ran from command line as root, but no good...I know I have the correct perl modules installed too...

Anything else?

I may just try getting the php scripts to work...I was having an issue with that but I believe it's because I was running the scripts as a root (in the crontab) when they are owned by "admin". We'll see if that fixes things, because when I run subscriptions.php, the emails go out. But it sure looks like crap in Yahoo Mail! The HTML is not getting parsed!


Shout Box
Today's Birthdays
No Birthdays
Recent Topics
Member being directed to "stopforumspam?"
by Lisanne. 07/14/18 10:27 AM
7.6.1.1 - Broken ReCaptcha (Not A Bug)
by M4TT. 07/01/18 06:02 PM
Control Panel / Transactions Username
by Morgan. 06/20/18 05:38 AM
random 500 server errors on post
by Bad Frog. 05/31/18 09:34 AM
Forum Statistics
Forums36
Topics35,126
Posts191,358
Members12,092
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.2
(Preview build 20180524)