Discussion Forums  >  Self Hosted Control Panels

Replies: 5    Views: 90

MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
05/23/12 02:11 AM (13 years ago)

PHP Error

Does anyone know what this means: Oops, a PHP error was trapped. -------------------------------------------------------------------------------- File: /..../...../...../BT-server/bt_v15/bt_app/bt_theme_AJAX.php Line: 39 Message: Creating default object from empty value Thanks.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
05/23/12 03:06 AM (13 years ago)
Yup. Remove this line in the bt_theme_AJAX.php file: $thisPage->pageTitle = $objApp->infoArray["name"] . " Control Panel"; Just commet it out or remove it totally. It's updated for the next release. It should not have been in that file. Duh. It's trying to set the page "title" but AJAX.php files do not display in the browser so they should not have a title. Funny how thing sneak in!
 
chandywidi
Aspiring developer
Profile
Posts: 26
Reg: Apr 30, 2012
jakarta
1,910
like
05/23/12 03:20 AM (13 years ago)
hi david i found some problem with 'php error was trapped' too just like this below 'Oops, a PHP error was trapped. File: /usr/lib/php/head.php Line: 30 Message: Undefined index: ckey ' how do i fix those error, i dont know where is located thanks david
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
05/23/12 03:27 AM (13 years ago)
/usr/lib/php/head.php is not part of the buzztouch package. I'm nots sure where this is coming from. However...you can probably remove the 'trapped error' message with a simple adjustment in the config.php file in the root of the buzztouch package. Look for the handleShutdown() function starting on line 99 in the config.php file. Comment out the "echo" statements and your message should go away. The idea behind this method is that it will print the "php error was trapped" message to the screen if it thinks something is wrong with your PHP installation. In you case, the /usr/lib/php/head.php file may have an issue so the handleShutdown() method is printing. But again, I have no idea where the head.php file is on your server.
 
Geo3d
Aspiring developer
Profile
Posts: 31
Reg: Apr 19, 2012
location unknow...
910
like
05/23/12 04:42 AM (13 years ago)
If I could suggest; use Firebug for Firefox - works wonders in identifying 'where' your problem might lie
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
05/23/12 08:52 AM (13 years ago)
Worked like a charm. Thanks David.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.