Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jul 2006
Posts: 96
A
member
member
A Offline
Joined: Jul 2006
Posts: 96
I keep seeing these errors....

[client 211.30.153.129] PHP Notice: Undefined variable: tbopen in /**path**/ubbthreads/cache/online_now.php on line 2
[client 211.30.153.129] PHP Notice: Undefined variable: style_side in /**path**/ubbthreads/cache/online_now.php on line 4
[client 211.30.153.129] PHP Notice: Undefined variable: style_side in /**path**/ubbthreads/cache/online_now.php on line 9
[client 211.30.153.129] PHP Notice: Undefined variable: tbclose in /**path**/ubbthreads/cache/online_now.php on line 21
[client 211.30.153.129] PHP Notice: Constant UBB_MAIN_PROGRAM already defined in /**path**/index.php on line 226
[client 211.30.153.129] PHP Notice: Undefined variable: tbopen in /**path**/ubbthreads/cache/post_island_11.php on line 2
[client 211.30.153.129] PHP Notice: Undefined variable: style_side in /**path**/ubbthreads/cache/post_island_11.php on line 4
[client 211.30.153.129] PHP Notice: Undefined variable: style_side in /**path**/ubbthreads/cache/post_island_11.php on line 9
[client 211.30.153.129] PHP Notice: Undefined variable: tbclose in /**path**/ubbthreads/cache/post_island_11.php on line 29

[client 220.235.144.132] PHP Notice: Undefined variable: tbopen in /**path**/ubbthreads/cache/online_now.php on line 2
[client 220.235.144.132] PHP Notice: Undefined variable: style_side in /**path**/ubbthreads/cache/online_now.php on line 4
[client 220.235.144.132] PHP Notice: Undefined variable: style_side in /**path**/ubbthreads/cache/online_now.php on line 9
[client 220.235.144.132] PHP Notice: Undefined variable: tbclose in /**path**/ubbthreads/cache/online_now.php on line 21
[client 220.235.144.132] PHP Notice: Constant UBB_MAIN_PROGRAM already defined in /**path**/index.php on line 226
[client 220.235.144.132] PHP Notice: Undefined variable: tbopen in /**path**/ubbthreads/cache/post_island_11.php on line 2
[client 220.235.144.132] PHP Notice: Undefined variable: style_side in /**path**/ubbthreads/cache/post_island_11.php on line 4
[client 220.235.144.132] PHP Notice: Undefined variable: style_side in /**path**/ubbthreads/cache/post_island_11.php on line 9
[client 220.235.144.132] PHP Notice: Undefined variable: tbclose in /**path**/ubbthreads/cache/post_island_11.php on line 29


Lots and lots of them - Any ideas?

Last edited by Rick; 08/30/2006 8:07 PM.
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
I think it's related to this:

PHP Notice: Constant UBB_MAIN_PROGRAM already defined in /**path**/index.php on line 226

It looks like maybe the islands are being used on your index.php page but not setup properly perhaps. Do you have a link so I can check out your index.php page?

Joined: Jul 2006
Posts: 96
A
member
member
A Offline
Joined: Jul 2006
Posts: 96

Joined: Jul 2006
Posts: 6
S
stranger
stranger
S Offline
Joined: Jul 2006
Posts: 6
Hi Rick,

Were you able to find anything regarding the errors?

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Can you post the code you are using to put the islands on your main page? Most of the warnings are ok, but the tbopen/tbclose ones are a bit odd.

Joined: Jul 2006
Posts: 96
A
member
member
A Offline
Joined: Jul 2006
Posts: 96
Attached Rick.

Sorry for the dealy I am away on business.

Cheers,

Dave
Attachments
118-index.txt (13.17 KB, 510 downloads)

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Ok, just a bit of a change to how these are included to prevent the warnings. Before when you'd include them it would start out like this:

Code
define('UBB_MAIN_PROGRAM',1);

That should be:

Code
if (!defined('UBB_MAIN_PROGRAM')) define('UBB_MAIN_PROGRAM',1);
$style_side="";$tbopen="";$tbclose=""; 

The instructions on how this is done will be updated in the beta 5 control panel.

Joined: Jul 2006
Posts: 6
S
stranger
stranger
S Offline
Joined: Jul 2006
Posts: 6
Rick, we updated to Beta 5 and the logs are still showing the errors. Was there something else that needed to be done or changed to fix the problem?

[Thu Sep 14 22:41:45 2006] [error] [client 72.30.132.72] script not found or unable to stat: /var/www/vhosts/aus-city.com/cgi-bin/ultimatebb.cgi
[client 203.59.8.110] PHP Notice: Undefined variable: tbopen in /var/www/vhosts/aus-city.com/httpdocs/ubbthreads/cache/online_now.php on line 2
[client 203.59.8.110] PHP Notice: Undefined variable: style_side in /var/www/vhosts/aus-city.com/httpdocs/ubbthreads/cache/online_now.php on line 4
[client 203.59.8.110] PHP Notice: Undefined variable: style_side in /var/www/vhosts/aus-city.com/httpdocs/ubbthreads/cache/online_now.php on line 9
[client 203.59.8.110] PHP Notice: Undefined variable: tbclose in /var/www/vhosts/aus-city.com/httpdocs/ubbthreads/cache/online_now.php on line 20
[client 203.59.8.110] PHP Notice: Constant UBB_MAIN_PROGRAM already defined in /var/www/vhosts/aus-city.com/httpdocs/index.php on line 224
[client 203.59.8.110] PHP Notice: Undefined variable: tbopen in /var/www/vhosts/aus-city.com/httpdocs/ubbthreads/cache/post_island_11.php on line 2
[client 203.59.8.110] PHP Notice: Undefined variable: style_side in /var/www/vhosts/aus-city.com/httpdocs/ubbthreads/cache/post_island_11.php on line 4
[client 203.59.8.110] PHP Notice: Undefined variable: style_side in /var/www/vhosts/aus-city.com/httpdocs/ubbthreads/cache/post_island_11.php on line 9
[client 203.59.8.110] PHP Notice: Undefined variable: tbclose in /var/www/vhosts/aus-city.com/httpdocs/ubbthreads/cache/post_island_11.php on line 24
[client 58.22.131.11] script '/var/www/vhosts/aus-city.com/httpdocs/ubbthreads/showthreaded.php' not found or unable to stat
[client 58.22.131.11] PHP Notice: Undefined variable: tbopen in /var/www/vhosts/aus-city.com/httpdocs/ubbthreads/cache/online_now.php on line 2
[client 58.22.131.11] PHP Notice: Undefined variable: style_side in /var/www/vhosts/aus-city.com/httpdocs/ubbthreads/cache/online_now.php on line 4
[client 58.22.131.11] PHP Notice: Undefined variable: style_side in /var/www/vhosts/aus-city.com/httpdocs/ubbthreads/cache/online_now.php on line 9
[client 58.22.131.11] PHP Notice: Undefined variable: tbclose in /var/www/vhosts/aus-city.com/httpdocs/ubbthreads/cache/online_now.php on line 21
[client 58.22.131.11] PHP Notice: Constant UBB_MAIN_PROGRAM already defined in /var/www/vhosts/aus-city.com/httpdocs/index.php on line 224
[client 58.22.131.11] PHP Notice: Undefined variable: tbopen in /var/www/vhosts/aus-city.com/httpdocs/ubbthreads/cache/post_island_11.php on line 2
[client 58.22.131.11] PHP Notice: Undefined variable: style_side in /var/www/vhosts/aus-city.com/httpdocs/ubbthreads/cache/post_island_11.php on line 4
[client 58.22.131.11] PHP Notice: Undefined variable: style_side in /var/www/vhosts/aus-city.com/httpdocs/ubbthreads/cache/post_island_11.php on line 9
[client 58.22.131.11] PHP Notice: Undefined variable: tbclose in /var/www/vhosts/aus-city.com/httpdocs/ubbthreads/cache/post_island_11.php on line 24
[client 58.22.131.11] script '/var/www/vhosts/aus-city.com/httpdocs/ubbthreads/showthreaded.php' not found or unable to stat

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Yes, you need to update how you're including each portal box on your pages. If you click on the 'external use' link next to each island, you'll see the updated code that needs to be placed into your pages.

Joined: Jul 2006
Posts: 6
S
stranger
stranger
S Offline
Joined: Jul 2006
Posts: 6
Dah... Couldn't see the fix cause the glasses got in the way..

smile

Done and thanks Rick.. All fixed...


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (Geoff), 1,124 guests, and 219 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 20240501)