Previous Thread
Next Thread
Print Thread
Hop To
Joined: Feb 2004
Posts: 10
K
stranger
stranger
K Offline
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.

Joined: Feb 2004
Posts: 10
K
stranger
stranger
K Offline
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 />

Joined: Jun 2006
Posts: 742
enthusiast
enthusiast
Joined: Jun 2006
Posts: 742
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
Joined: Feb 2004
Posts: 10
K
stranger
stranger
K Offline
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...

Joined: Jun 2006
Posts: 742
enthusiast
enthusiast
Joined: Jun 2006
Posts: 742
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
Joined: Feb 2004
Posts: 10
K
stranger
stranger
K Offline
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/2004 1:03 AM.
Joined: Jun 2006
Posts: 742
enthusiast
enthusiast
Joined: Jun 2006
Posts: 742
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
Joined: Feb 2004
Posts: 10
K
stranger
stranger
K Offline
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?

Joined: Feb 2004
Posts: 10
K
stranger
stranger
K Offline
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.

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
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.

Joined: Feb 2004
Posts: 10
K
stranger
stranger
K Offline
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';

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
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/...'

Joined: Feb 2004
Posts: 10
K
stranger
stranger
K Offline
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!


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
0 members (), 744 guests, and 147 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)