Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2000
Posts: 3,590
Likes: 1
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Likes: 1
I installed all required software ok.

I ran the configure php script with no errors.

But, when I ran the adduser for the Admin user, I got some errors.

In reply to:


Warning: mt_rand(): Invalid range: 0..0 in E:\websites\wwwthreads\wwwthreads\adduser.php on line 198

Warning: mt_rand(): Invalid range: 0..0 in E:\websites\wwwthreads\wwwthreads\adduser.php on line 199

Warning: Server Error in E:\websites\wwwthreads\wwwthreads\adduser.php on line 269




and at the bottom of the screen

In reply to:


PHP Warning: mt_rand(): Invalid range: 0..0 in E:\websites\wwwthreads\wwwthreads\adduser.php on line 198 PHP Warning: mt_rand(): Invalid range: 0..0 in E:\websites\wwwthreads\wwwthreads\adduser.php on line 199 PHP Warning: Server Error in E:\websites\wwwthreads\wwwthreads\adduser.php on line 269




The user was created, b/c I can log in. But things seem real glitchy.

Any ideas? I'm evaluating this to see if I want to purchase it.

bryan


Sponsored Links
Joined: Aug 2000
Posts: 3,590
Likes: 1
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Likes: 1
Well, I partially fixed it...had the slash in the relative path, making it an absolute path. I knew it looked funny...but it was there by default. *shrug*

Now, to be able to get the Admin user to login would be nice.

bryan


Joined: Aug 2000
Posts: 3,590
Likes: 1
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Likes: 1
Ha! thought I fixed it. :rolleyes

In reply to:


Warning: mt_rand(): Invalid range: 0..0 in E:\websites\wwwthreads\wwwthreads\adduser.php on line 198

Warning: mt_rand(): Invalid range: 0..0 in E:\websites\wwwthreads\wwwthreads\adduser.php on line 199

Warning: Server Error in E:\websites\wwwthreads\wwwthreads\adduser.php on line 269

WWWThreads PHP Demo



Main Index | Search | New user | Login | Who's Online | FAQ | User List


Username has been registered.

Your username has been reserved. You should be receiving an email shortly with your password.



WWWThreads | Contact Us Powered BY WWWThreads 5.1.2php demo






PHP Warning: mt_rand(): Invalid range: 0..0 in E:\websites\wwwthreads\wwwthreads\adduser.php on line 198 PHP Warning: mt_rand(): Invalid range: 0..0 in E:\websites\wwwthreads\wwwthreads\adduser.php on line 199 PHP Warning: Server Error in E:\websites\wwwthreads\wwwthreads\adduser.php on line 269




what I did was fix the config and create a new database and run the creation php page. the above attempt was my attempt to create the administrator user.

I'm running NT4.0, (oops, not Apache) IIS4.0, MySQL, and the WWWThreads 5.1.2demo

Any ideas?

bryan


Joined: Aug 2000
Posts: 3,590
Likes: 1
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Likes: 1
I fixed the line of code causing part of the problem...it was related to crypting the password.

But, what I'm still getting is the following when I attempt to do ANYTHING with a user or the Admin user.

In reply to:


We encountered a problem. The reason reported was:

Username/Password not found.

This is not necessarily an error.




bryan


ps- now, things work fine with "cookies" enabled, but I wanted to test the session tracking without cookies. Is this just a limit with the demo version?

Edited by bsampsel on 05/23/01 12:50 PM.


Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Glad you got things going to this point. If you are running PHP4 and sessions are configured and setup in your php.ini file then the demo will work with sessions.


UBB.threads Developer
Sponsored Links
Joined: Aug 2000
Posts: 3,590
Likes: 1
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Likes: 1
That's the funny thing. Sessions are configured.

I even wrote my own code that utilized sessions, explicitly disabling cookies with PHP4. That's one of the things that attracted me to this forum package, that it utilized the PHP4 cookieless session tracking (which I've dinked with myself in the past).

bryan


Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Hmm. That's strange. If you take a look at the main.inc.php file and look for the word session, you will see where sessions are invoked. It could be that $config[sessionpath] isn't set properly. This sets the directory where session data is stored and if this directory isn't writeable by the webserver then it wouldn't work.


UBB.threads Developer

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:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 253
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 2042
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 30
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20261026)