Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
1 registered (Ruben), 43 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 03/24/10
Posts: 8
Top Posters (30 Days)
Ruben 50
Gizmo 24
DennyP 24
Dunny 15
SteveS 13
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 2 1 2 >
Topic Options
#22835 - 11/29/00 03:02 AM each/GLOBALS?
Anonymous
Unregistered

After installing, I get:

Warning: Variable passed to each() is not an array or object in main.inc.php on line 19

Any idea why?
Top
#22836 - 11/29/00 03:18 AM Re: each/GLOBALS?
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Try doing this, the block of code in main.inc.php looks like this:

<pre>

while( list($key,$value) = each($GLOBALS)) {

if (is_string($value) == 1) {

$GLOBALS[$key] = stripslashes($value);

}

}</pre>
Try changing that, to this:

<pre>

if (is_array($GLOBALS)==1) {

while( list($key,$value) = each($GLOBALS)) {

if (is_string($value) == 1) {

$GLOBALS[$key] = stripslashes($value);

}

}

}</pre>

-------------------

Scream

WWWThreads Developer
Top
#22837 - 11/29/00 03:29 AM Re: each/GLOBALS?
Anonymous
Unregistered

That got it...tx. BTW...is the DB format different for PHP, or can I just have it use my Perl DB?
Top
#22838 - 11/29/00 03:30 AM Re: each/GLOBALS?
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Great. Let me know if this leads to any other weird problems.
If you have your PERL version upgraded to 5.1.2 then you can use the same database as I am doing here.

-------------------

Scream

WWWThreads Developer
Top
#22839 - 11/29/00 03:38 AM Re: each/GLOBALS?
Anonymous
Unregistered

Ok. I also find that on your board, it doesn't mark new posts in a board when using the PHP version. It tells me that there's new posts for a board, but when I get the thread list, the icon is neither orange, nor does it have the "new" graphic next to it.
Top
#22840 - 11/29/00 03:40 AM Re: each/GLOBALS?
Anonymous
Unregistered

Hmmmm. When I create a board and go into it, I get:

Seeya! Unknown column 'B_UStatus' in 'field list': 1054

Warning: 0 is not a MySQL result index in /usr/home/boards/usr/local/etc/httpd/htdocs/wwwthreads-php/mysql.inc.php on line 88

to the right of the new post icon.
Top
#22841 - 11/29/00 03:41 AM Re: each/GLOBALS?
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Hmm, have you already read the posts using the PERL version? Have had quite a bit of useage of the PHP version over the past week or so and haven't had anyone report this. So, just curious if you have been using the PERL version at all because this will throw things off when coming over to the PHP version.

-------------------

Scream

WWWThreads Developer
Top
#22842 - 11/29/00 03:44 AM Re: each/GLOBALS?
Anonymous
Unregistered

I did use it yesterday, maybe this morning, but not since I made this thread.
Top
#22843 - 11/28/00 04:27 PM Re: each/GLOBALS?
Anonymous
Unregistered

Any idea on this one, Scream?
Top
#22844 - 11/28/00 04:45 PM Re: each/GLOBALS?
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Are you running this with a new database or the PERL database? If you are running under the PERL database then you need to upgrade to 5.1.2 or you won't have the B_UStatus field in the w3t_Users table.

-------------------

Scream

WWWThreads Developer
Top
#22845 - 11/28/00 04:47 PM Re: each/GLOBALS?
Anonymous
Unregistered

I used the createtable.php included with the PHP version to make a new DB to start from scratch.
Top
#22846 - 11/28/00 04:51 PM Re: each/GLOBALS?
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Looks like a typo on my part. When creating the w3t_Posts table I have it creating a B_UStats field instead of a B_UStatus field. You can fix this real quickly by going into the mysql shell and typing this:
ALTER TABLE w3t_Posts CHANGE B_UStatus B_UStatus varchar(1);
-------------------

Scream

WWWThreads Developer
Top
#22847 - 11/28/00 04:55 PM Re: each/GLOBALS?
Anonymous
Unregistered

Another typo? <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" /> Check the ALTER command in yer post. <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" /> I know what you mean, though. Thanks.
Top
Page 1 of 2 1 2 >



Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image