Previous Thread
Next Thread
Print Thread
Rate Thread
#208902 03/13/2001 8:43 AM
Joined: Nov 2000
Posts: 23
Power User
Power User
Offline
Joined: Nov 2000
Posts: 23
On the latest beta build 5.2b2 you get a division by zero error if you are not logged in and viewing posts. Check it out here
http://boards.world-gaming.cc/php/postlist.php?Cat=&Board=gendisc

Magicia (Site Manager)
http://uwo.world-gaming.cc

Sponsored Links
NeXeon #208903 03/13/2001 9:05 AM
Joined: May 1999
Posts: 242
Coder
Coder
Offline
Joined: May 1999
Posts: 242
I've left my warnings on for wwwthreads and all sorts of strange stuff got spit out in the form of warnings that I thought were serious (I guess not []/w3timages/icons/wink.gif[/]).

Try turning off the warnings to see if that helps - should be in the php.ini file.

[]/w3timages/icons/smile.gif[/] 6 []/w3timages/icons/frown.gif[/]
Screamers

Joined: Nov 2000
Posts: 23
Power User
Power User
Offline
Joined: Nov 2000
Posts: 23
I don't have access to things like that. []/w3timages/icons/frown.gif[/] Also I had never had this problem before and we have been running WWWThreads for about 7 months.

Magicia (Site Manager)
http://uwo.world-gaming.cc

NeXeon #208905 03/13/2001 6:06 PM
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Hmm, Ok give this a try. Edit postlist.php, line 173 currently looks like this:

if (!$user[U_FlatPosts]) {

Try changing that, to this:

if ($user[U_FlatPosts] < 1) {



UBB.threads Developer
Joined: Nov 2000
Posts: 23
Power User
Power User
Offline
Joined: Nov 2000
Posts: 23
Post deleted by Magicia

Sponsored Links
NeXeon #208907 03/14/2001 3:55 AM
Joined: Nov 2000
Posts: 23
Power User
Power User
Offline
Joined: Nov 2000
Posts: 23
I added the change and unfortunetly nothing still get division by zero at line 817.


Magicia (Site Manager)
http://uwo.world-gaming.cc

NeXeon #208908 03/14/2001 9:35 AM
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Ok, for some reason $user[U_FlatPosts] is getting set to 0 even though it should default to the $theme['flatposts'] setting in theme.inc.php. What do you have for this setting? If you have a positive value then it should be working, but you can try adding this bit of code and it should tell you what it is being set to:

Line 817 of postlist.php you can put this:

echo "user[U_FlatPosts] is $user[U_FlatPosts']";

This should print out that value after the subject. If it is coming up blank or 0 then somehow we have to get it to force a positive value in there because the checks that are supposed to do this are failing.


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:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
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 20240430)