Discussion Forums  >  Self Hosted Control Panels

Replies: 4    Views: 90

MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
05/25/12 10:34 AM (13 years ago)

PHP error

Keep getting this error, even though things seem to be alright. Oops, a PHP error was trapped. File: /home/cdoct0/public_html/BT-server/files/plugins/bt_screen_menuButtons/itemProperties.php Line: 128 Message: Undefined variable: soundEffectFileName
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/25/12 10:37 AM (13 years ago)
What's the name of the file?
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
05/25/12 10:54 AM (13 years ago)
I have a menu button screen, on a self hosted server. When I select a button, to choose its icon, it opens a small windows where I choose the file or URl, and at the bottom I have that message.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
05/25/12 11:04 AM (13 years ago)
Initialize the soundEffectFileName variable to an empty string at the top of this file: itemProperties.php in the plugin folder for bt_screen_menuButtons $soundEffectFileName = ""; Alternatively, you could adjust the handleShutdown() method in the config.php file in the root of the project. The handleShutdown() method is designed to print some errors if PHP seems "funky." Because different servers have different ways of handling PHP errors, interesting things can happen. a) Fix each message as you see them (like in this case).. OR b) Comment out the "echo" statements in the handleShutdown() OR c) Both ;-)
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
05/25/12 11:08 AM (13 years ago)
Thanks guys.
 

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.