Previous Thread
Next Thread
Print Thread
Hop To
#210349 04/16/2008 7:54 AM
Joined: Jun 2006
Posts: 353
Enthusiast
Enthusiast
Joined: Jun 2006
Posts: 353
Hi I have just had the forum moved over to MySQL version 5 in the last couple of days and I am getting this one error that repeats itself which I am listing below. Also note that I am running UBB version 7.2.2

Script: e:\inetpub\esvc000047\forum\libs\ubbthreads.inc.php - Line: 2126
replace into ubbt_CACHED_PERMISSIONS
(USER_ID,CACHED_PERMISSION_DATA,CACHED_TIMESTAMP)
values
( 'deleted' , 'a:80:{i:1;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:10;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:11;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:12;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:13;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:14;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:15;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:16;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:17;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:18;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:19;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:2;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:20;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:21;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:22;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:23;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:24;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:25;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"1\";s:5:\"reply\";s:1:\"1\";}i:26;a:3:{s:4:\"read\";s:1:\"0\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:27;a:3:{s:4:\"read\";s:1:\"0\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:28;a:3:{s:4:\"read\";s:1:\"0\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:29;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:3;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:30;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:31;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:32;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:33;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:34;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:35;a:3:{s:4:\"read\";s:1:\"0\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:36;a:3:{s:4:\"read\";s:1:\"0\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:37;a:3:{s:4:\"read\";s:1:\"0\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:38;a:3:{s:4:\"read\";s:1:\"0\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:39;a:3:{s:4:\"read\";s:1:\"0\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:4;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:40;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:41;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:42;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:43;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:44;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:45;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:46;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:47;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:48;a:3:{s:4:\"read\";s:1:\"0\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:49;a:3:{s:4:\"read\";s:1:\"0\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:5;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:50;a:3:{s:4:\"read\";s:1:\"0\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:51;a:3:{s:4:\"read\";s:1:\"0\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:52;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:53;a:3:{s:4:\"read\";s:1:\"0\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:54;a:3:{s:4:\"read\";s:1:\"0\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:55;a:3:{s:4:\"read\";s:1:\"0\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:56;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:57;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:58;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:59;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:6;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:60;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:61;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:62;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:63;a:3:{s:4:\"read\";s:1:\"0\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:64;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:65;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:66;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:67;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:68;a:3:{s:4:\"read\";s:1:\"0\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:69;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:7;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:70;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:71;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:72;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:73;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:74;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:75;a:3:{s:4:\"read\";s:1:\"0\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:76;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"1\";}i:77;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:78;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"1\";}i:79;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:8;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:80;a:3:{s:4:\"read\";s:1:\"0\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}i:9;a:3:{s:4:\"read\";s:1:\"1\";s:5:\"topic\";s:1:\"0\";s:5:\"reply\";s:1:\"0\";}}' , '1208275914' )
- Incorrect integer value: 'deleted' for column 'USER_ID' at row 1

Any help would be appreciated on how this can be stoped as it is annoying.

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
That appears to be somewhat of a bug. The value of the Uid in the cookie is being set to "deleted" instead of actually being deleted.

What you can do to fix this is edit the libs/ubbthreads.inc.php script. Line 2056 looks like this:'

if (!$Uid) $Uid = 1;

Change that, to this:

if (!$Uid || $Uid == "deleted") $Uid = 1;

Joined: Jun 2006
Posts: 353
Enthusiast
Enthusiast
Joined: Jun 2006
Posts: 353
Thanks Rick I will try that and let you know what happens in a few days time.

Joined: Jun 2006
Posts: 353
Enthusiast
Enthusiast
Joined: Jun 2006
Posts: 353
Rick did the change and this is what happened:

Fatal error: Call to undefined method html::give_rules() in e:\inetpub\esvc000047\forum\ubbthreads.php on line 261

Also note that in the script it is saying this:
// Ultimate Bulletin Board
// Script Version 7.1.1
// $Id: ubbthreads.inc.php 374 2006-09-22 16:16:21Z rick $

Last edited by Outdoorking; 04/16/2008 7:16 PM. Reason: corrected post
Joined: Jun 2006
Posts: 353
Enthusiast
Enthusiast
Joined: Jun 2006
Posts: 353
Rick this is what is on line 2056 from the old file:

$sth = $dbh->do_placeholder_query($query,array($Uid),__LINE__,__FILE__);

The line that I changed was on line 2047 which had this before I changed it to what you said to do:

if (!$Uid || $Uid == "deleted") $Uid = 1;

and I changed the line to:

if (!$Uid || $Uid == "deleted") $Uid = 1;

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Hmm, it sounds like you might have a mix/match of scripts. You say that you're running 7.2.2, but the header info you have for the libs/ubbthreads.inc.php says it's an older version.

It should have this:

// Ultimate Bulletin Board
// Script Version 7.2.2

It sounds like you need to verify that you actually have all of the 7.2.2 scripts uploaded. The give_rules function that it's looking for wasn't added until 7.2, so that's probably why it's giving the error.

Joined: Jun 2006
Posts: 353
Enthusiast
Enthusiast
Joined: Jun 2006
Posts: 353
Rick you were spot on as I uploaded the older version 7.1 . I have since uploaded 7.2.2 and all is working well.

Thanks for all you help.

Joined: Jun 2006
Posts: 353
Enthusiast
Enthusiast
Joined: Jun 2006
Posts: 353
Hi all,

I have a new error coming up after doing what Rick told me to do.

The error is:

Script: - Line: Unable to connect to the database! - Can't connect to MySQL server on 'wic002my.server-sql.com' (10060)

Note this is the only error that I am getting now. Can someone advise me on what I should do to stop it. I am currently using version 7.2.2 until the final release of 7.3. I just would like to make sure that everything is working correctly before the update comes in.

Thanks again everyone for all your help.

Joined: Jun 2006
Posts: 16,535
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,535
Likes: 150
The error tells you what's wrong, the UBB can't connect to the database server wink... This would generally be an issue with your host; either the SQL server is down or the server just can't be contacted...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 353
Enthusiast
Enthusiast
Joined: Jun 2006
Posts: 353
Would that also mean that they could be working on it at the time it could not connect.

I have been having other issues with my online sales where I am not getting notified (by email) and the purchaser is not getting notified (by email) as well since they shifted my whole site to the new server. grin

Joined: Jun 2006
Posts: 16,535
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,535
Likes: 150
Anything could mean that they're working on the server, even if it where connecting they could be working on it wink...



I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 353
Enthusiast
Enthusiast
Joined: Jun 2006
Posts: 353
Thanks Gizmo for your input as I thought that it might have been them as nothing else has come up since the change of server to version 5. blush

Joined: Jun 2006
Posts: 16,535
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,535
Likes: 150
Sorry to hear things are still hit and miss there...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Slow Queries - Any Ideas?
by BellaOnline - 10/16/2026 4:34 PM
Selling a Forum?
by ECNet - 10/10/2026 10:54 AM
Who's Online Now
4 members (Michael_E6D9, Bill_Owens, BellaOnline, 1 invisible), 316 guests, and 103 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)