Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
6 registered (AllenAyres, driv, Harold, Ian, Island Piper, Mark S), 10 Guests and 19 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 05/15/08
Posts: 1
Top Posters (30 Days)
Ruben Rocha 165
Rick 116
Gizmo 105
Thelockman 61
driv 53
AllenAyres 35
ScriptKeeper 34
Mark S 30
Ian 30
phoebe 25
Latest Photos
My Home System
test photo gallery
Bernese Mountain Dogs
My Daimler
Dorado and shark
Topic Options
Rate This Topic
#2127 - 07/31/06 11:14 PM [FIXED in b3] B2 Notices and warnings in control panel
Philipp Offline
journeyman

Registered: 07/29/06
Posts: 74
The first warning is right on the first page of the admin control panel

Quote:
Notice: Undefined index: timestamp in /Applications/MAMP/htdocs/ubbt7/admin/login.php on line 315

Notice: Undefined index: timestamp in /Applications/MAMP/htdocs/ubbt7/admin/login.php on line 339


To fix this problem find in admin/login.php:

Code:
// Get the xml feed for news
$ubbt_news_links = "";


and add:

Code:
if (!isset($ubbt_admin['timestamp'])) $ubbt_admin['timestamp'] = 0;


2) The next issue appear on the Portal Settings page but only if the cache directory is empty

Quote:
Warning: include(/Applications/MAMP/htdocs/ubbt7/cache/forum_list.php) [function.include]: failed to open stream: No such file or directory in /Applications/MAMP/htdocs/ubbt7/admin/portal_settings.php on line 65

Warning: include() [function.include]: Failed opening '/Applications/MAMP/htdocs/ubbt7/cache/forum_list.php' for inclusion (include_path='.:/Applications/MAMP/bin/php5/lib/php') in /Applications/MAMP/htdocs/ubbt7/admin/portal_settings.php on line 65

Notice: Undefined variable: tree in /Applications/MAMP/htdocs/ubbt7/admin/portal_settings.php on line 66


To fix this problem find in admin/portal_settings.php:

Code:
 include("{$config['FULL_PATH']}/cache/forum_list.php");


and replace with:

Code:
(file_exists("{$config['FULL_PATH']}/cache/forum_list.php")) ? include("{$config['FULL_PATH']}/cache/forum_list.php") : $tree = array() ;


Edited by Rick (08/01/06 12:04 PM)
_________________________
CompatDB.org Support Forums

Top
#2142 - 08/01/06 04:55 AM Re: B2 Notices and warnings in control panel [Re: Philipp]
Mark S Online   content
Carpal Tunnel
***

Registered: 07/04/06
Posts: 4041
Loc: Liverpool : England : UK
V B2

I dont have a copy of the Error,
but i have a link direct to my control panel.

Clicked on that,
Sent me there, informed me i wasnt logged in.
Please wait while we take you to the login screen.

Then a whole load of code.

I think i had previously deleted my cache,
testing out stuff and wanted a fresh start.
_________________________
Version v7.2.2 smile smile < Threads satisfaction status
People who inspire me Rick Gizmo Ian David jgeoff ntdoc
To answer the question you must first give a question.

Top
#2164 - 08/01/06 12:03 PM Re: B2 Notices and warnings in control panel [Re: Philipp]
Rick Administrator Offline

*****

Registered: 06/04/06
Posts: 7883
Loc: Aberdeen, WA
Thanks for the report and the fixes!
_________________________
UBB.threads™ Developer
My Personal Website · StogieSmokers.com

Top


Shout Box

Today's Birthdays
Eric Flyxe, mark_l_88@yahoo.com
Recent Topics
restricting a media tag to a single forum...
by bakerzdosen
Yesterday at 12:52 PM
Recover topics??
by femistyle
Yesterday at 12:22 PM
duplicate entries in viewmessage.php lang file (7.4.1)
by alnadabi
Yesterday at 05:54 AM
Order of variables in language files should be permanent
by alnadabi
Yesterday at 05:12 AM
How do I set Moderation Queue for an individual user?
by luket
11/20/08 11:28 AM
Forum Stats
4249 Members
33 Forums
30488 Topics
154659 Posts

Max Online: 978 @ 06/24/07 08:19 PM