Discussion Forums  >  Self Hosted Control Panels

Replies: 14    Views: 136

Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
02/10/14 05:12 PM (11 years ago)

upload icon goes to blank page - self hosted

{EDIT} I see at the very left bottom of the blank window flash by... waiting for www.patrickmotox.net... that is my website. Hello everyone. Have just set up Buzztouch self hosted. It is up and running, have installed all my plugins, created an app with a menu. When I get to the point to upload an icon I have choosen, (the URL is - <a href="http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php?appGuid=EA22DC8597A18E523357D4248" target="_blank" rel="nofollow">http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php?appGuid=EA22DC8597A18E523357D4248</a>) so I know it is aware of the id for the project, I hit upload and the screen goes to a blank page with the Url text box showing - "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php". This seems to follow the same pattern on the Buzztouch web host. Nothing on the screen. From a previous thread, information shown below with a similar issue, I updated the bt_icon.php to see if any difference. None. I suspected as much since the thread was older, and I just installed the Self Hosted Buzztouch panel today. It appears the bt_icon.php is firing, because if I use an Icon that is smaller than 72x72 it does recognize that and give me the error to choose another. --> $strMessage .= "<br/>The image you uploaded is too small. Choose an image that is at least "; So it appears the bt_icon.php is firing but the process is stopping once the upload button is pushed and?....... It should be going to manage icon, where I can center it. But alas the page is blank, white, nada. Any help is much appreciated. Very fun so far getting the Buzztouch panel setup on my linux server. So far everything else is working. kind regards Patrick McGoey previous thread on uploading icon. <a href="https://www.buzztouch.com/forum/thread.php?tid=EBA2D525ACE598253D0C294&fid=06DB0BCB08E6666&sortColumn=FT.id&sortUpDown=&currentPage=3" target="_blank" rel="nofollow">https://www.buzztouch.com/forum/thread.php?tid=EBA2D525ACE598253D0C294&fid=06DB0BCB08E6666&sortColumn=FT.id&sortUpDown=&currentPage=3</a>
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/10/14 07:46 PM (11 years ago)
I don't know if allows anything but a 'png' file, but that's all I use, and I haven't had an issue that I can recall… It can be 'bigger' than 72 x 72, just not smaller, I think… I know I've used bigger. Anyway, try it with a PNG file, and see if it makes any difference. If not, check to make sure that the file (and everything on your self hosted) has permissions set to '755'. It's a small detail that will make big problems, and we've all done it at least once. Cheers! -- Smug
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
02/10/14 07:58 PM (11 years ago)
At least once for this chap. Was about to post the 'permissions' thang after my recent adventures. It can be easy to blame BT but so often it's another factor thrown in to make us all smarter and better. As I like to say these days, I echo the above, never had an issue with .png just make sure that baby ain't smaller. Wish I was a little bit taller, Wish I was png On an upload I'd be a baller. Night.
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
02/10/14 10:33 PM (11 years ago)
Ok. I am using a png it is a 100x100. When I tested using a smaller 56x56 the bt_icon.php did the right thing and sent me a message saying it was to small. Expected. With the 100x100 it does not give me the message it just goes through to the white screen, I don't get the manage Icon screen. So I checked and changed every directory and file under BT-server to 755. this did not work same result. Then I changed every directory and file under BT-server to 777. every file, every directory. It did not work. Are there other areas outside of BT-server that we need to change mode of the files and directories? Is there any log files that will show how far into the bt_icon.php it is going, and where possibly it is failing? I looked at /var/log/Apache2 and there were 2 log files there, but didn't really tell me anything.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/10/14 10:40 PM (11 years ago)
Who are you hosted with? Given that it does work on some, but not all, but we're all working with the same edition, gives a bit of credence to different environments. How about a manual upload? Just to see if it's something in the php…? The directory is going to be a bit cryptic… You'll need to find your applications GUID, and then using an FTP Client, navigate to: BT_Root/files/applications/<your long GUID>/images/ it will need to be named <GUID>_icon.png Cheers! -- Smug
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
02/10/14 11:15 PM (11 years ago)
I have my own Linux box, run my own apache2 server. I host myself. Here is the Json from this info, along with the php script log. You can't manually upload an Icon, David has a post out there stating that ftping an Icon into the directory bypasses the database, and that is where the info is pulled to show you have an Icon setup. Everything up to this point For the rest of the setup has been working. Well I might add. I have put xxxxx in to protect api key and secret. //////////////////////////////////////////////////////////// here is the Json data. and below that the php log file. //////////////////////////////////////////////////////////// {"BT_appConfig": { "BT_items":[ {"itemId":"EA22DC8597A18E523357D4248", "itemType":"BT_app", "buzztouchAppId":"EA22DC8597A18E523357D4248", "buzztouchAPIKey":"A3D70FFDD535AB8D8xxxxxx", "dataURL":"http://www.patrickmotox.net/BT-server/api/app/?command=getAppData&appGuid=EA22DC8597A18E523357xxxxx&apiKey=A3D70FFDD535AB8D8xxxxxx&apiSecret=92EBA3F2EFBF743764xxxxx", "reportToCloudURL":"http://www.patrickmotox.net/BT-server/api/app/?command=reportToCloud&appGuid=EA22DC8597A18E523357xxxxx&apiKey=A3D70FFDD535AB8D8xxxxxx&apiSecret=92EBA3F2EFBF743764xxxxx&deviceId=[deviceId]&deviceLatitude=[deviceLatitude]&deviceLongitude=[deviceLongitude]&deviceModel=[deviceModel]&userId=[userId]", "registerForPushURL":"http://www.patrickmotox.net/BT-server/api/app/?command=registerForPush&appGuid=EA22DC8597A18E523357xxxxx&apiKey=A3D70FFDD535AB8D8xxxxxx&apiSecret=92EBA3F2EFBF743764xxxxx&deviceId=[deviceId]&deviceLatitude=[deviceLatitude]&deviceLongitude=[deviceLongitude]&deviceModel=[deviceModel]&userId=[userId]", "lastModified":"Tue, 11 Feb 2014 04:21:41 -0800", "lastPublished":"Mon, 10 Feb 2014 17:11:39 -0800", "name":"Test", "version":"1.0", "currentMode":"Design", "startLocationUpdates":"0", "promptForPushNotifications":"0", "allowRotation":"largeDevicesOnly", "BT_themes":[ {"itemId":"A6EE34854C10B6F81C75E1A", "itemType":"BT_theme", "backgroundColor":"#FFFFFF"} ], "BT_tabs":[ ], "BT_menus":[ ], "BT_screens":[ {"itemId":"3A60BD18C1C8A5113827B94", "itemType":"CR_animated_circlemenu", "itemNickname":"testMenu", "itemId": "3A60BD18C1C8A5113827B94", "itemType": "CR_animated_circlemenu", "itemNickname": "testMenu", "smallButtonSize": "64", "largeButtonSize": "64", "backgroundColor": "#000000", "smallMenuSize": "240", "largeMenuSize": "240" , "childItems":[ {"itemId":"CDE39692E19FC6E1EECB29F", "itemType":"BT_menuItem", "loadScreenWithItemId":"D50F8CD57D684A38323FABE", "titleText":"First Button"} ]}, {"itemId":"D50F8CD57D684A38323FABE", "itemType":"BT_screen_map", "itemNickname":"Location", "navBarTitleText":"Location", "singleLocationDefaultZoom":"15", "defaultMapType":"standard", "childItems":[ ]} ] } ] }} //////////////////////////////////////////////// Here is the php logging. ///////////////////////////////////////////////// 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:08 -0800] "POST /BT-server/bt_v15/bt_app/bt_icon.php HTTP/1. 1" 500 342 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php" "Mozilla/5.0 (X11; Ubuntu; Linu x i686; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:14 -0800] "POST /BT-server/bt_v15/bt_app/bt_icon.php HTTP/1. 1" 200 3601 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php?appGuid=EA22DC8597A18E523357D42 48" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:14 -0800] "GET /BT-server/files/theme/style.css HTTP/1.1" 20 0 2815 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php" "Mozilla/5.0 (X11; Ubuntu; Linux i6 86; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:14 -0800] "GET /BT-server/scripts/shadowbox-build-3.0b/shado wbox.css HTTP/1.1" 200 1025 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php" "Mozilla/5.0 ( X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:14 -0800] "GET /BT-server/scripts/shadowbox-build-3.0b/shado wbox.skin2.css HTTP/1.1" 200 647 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php" "Mozilla/ 5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:14 -0800] "GET /BT-server/styles/imgareaselect-animated.css HTTP/1.1" 200 611 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php" "Mozilla/5.0 (X11; Ubunt u; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:14 -0800] "GET /BT-server/scripts/utilities.js HTTP/1.1" 200 1107 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php" "Mozilla/5.0 (X11; Ubuntu; Linux i68 6; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:14 -0800] "GET /BT-server/scripts/swfobject.js HTTP/1.1" 200 2787 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php" "Mozilla/5.0 (X11; Ubuntu; Linux i68 6; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:14 -0800] "GET /BT-server/scripts/shadowbox-build-3.0b/shado wbox.js HTTP/1.1" 200 7673 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php" "Mozilla/5.0 (X 11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:14 -0800] "GET /BT-server/scripts/shadowbox-build-3.0b/shado wbox.skin2.js HTTP/1.1" 200 5028 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php" "Mozilla/ 5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:14 -0800] "GET /BT-server/bt_v15/bt_scripts/app_utilities.js HTTP/1.1" 200 1898 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php" "Mozilla/5.0 (X11; Ubu ntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:14 -0800] "GET /BT-server/scripts/jquery.imgareaselect.pack. js HTTP/1.1" 200 4445 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php" "Mozilla/5.0 (X11; U buntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:14 -0800] "GET /BT-server/scripts/jquery-1.3.2.min.js HTTP/1 .1" 200 20092 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php" "Mozilla/5.0 (X11; Ubuntu; L inux i686; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:14 -0800] "GET /BT-server/scripts/footer.js HTTP/1.1" 304 17 8 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php" "Mozilla/5.0 (X11; Ubuntu; Linux i686; r v:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:14 -0800] "GET /BT-server/scripts/shadowbox-build-3.0b/libra ries/sizzle/sizzle.js HTTP/1.1" 200 4986 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php" " Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:14 -0800] "GET /BT-server/scripts/shadowbox-build-3.0b/langu ages/shadowbox-en.js HTTP/1.1" 200 643 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php" "Mo zilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:14 -0800] "GET /BT-server/scripts/shadowbox-build-3.0b/playe rs/shadowbox-img.js HTTP/1.1" 200 1327 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php" "Mo zilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:14 -0800] "GET /BT-server/scripts/shadowbox-build-3.0b/playe rs/shadowbox-iframe.js HTTP/1.1" 200 794 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php" " Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:14 -0800] "GET /BT-server/scripts/shadowbox-build-3.0b/adapt ers/shadowbox-jquery.js HTTP/1.1" 200 789 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:14 -0800] "GET /BT-server/images/texture.png HTTP/1.1" 304 1 80 "http://www.patrickmotox.net/BT-server/files/theme/style.css" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:2 4.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:15 -0800] "GET /BT-server/files/theme/logo.png HTTP/1.1" 304 180 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php" "Mozilla/5.0 (X11; Ubuntu; Linux i686 ; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:15 -0800] "GET /BT-server/images/red_dot.png HTTP/1.1" 304 1 79 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:15 -0800] "GET /BT-server/images/blank.gif HTTP/1.1" 304 178 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv :24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:15 -0800] "GET /BT-server/images/default_app_icon.png HTTP/1 .1" 304 179 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php" "Mozilla/5.0 (X11; Ubuntu; Lin ux i686; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:15 -0800] "GET /BT-server/images/iphone_icon_builder.png HTT P/1.1" 304 181 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:15 -0800] "GET /BT-server/images/icon_overlay_icon.png HTTP/ 1.1" 304 179 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php" "Mozilla/5.0 (X11; Ubuntu; Li nux i686; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:15 -0800] "GET /BT-server/images/att.png HTTP/1.1" 304 180 " http://www.patrickmotox.net/BT-server/files/theme/style.css" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:15 -0800] "GET /BT-server/images/screen_icon.png HTTP/1.1" 3 04 181 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php" "Mozilla/5.0 (X11; Ubuntu; Linux i6 86; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:16 -0800] "GET /BT-server/bt_v15/bt_app/bt_icon.php?appGuid= EA22DC8597A18E523357xxxxx HTTP/1.1" 200 3559 "http://www.patrickmotox.net/BT-server/bt_v15/bt_app/?appGuid=E A22DC8597A18E523357xxxxx" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 76.197.9.96 - - [10/Feb/2014:21:45:17 -0800] "GET /BT-server/bt_v15/bt_app/?appGuid=EA22DC8597A 18E523357xxxxx HTTP/1.1" 200 3341 "http://www.patrickmotox.net/BT-server/account/?id=d1be4b46c1ef6482aea7081 b80bb7d1e" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0" 127.0.1.1:80 ::1 - - [10/Feb/2014:21:45:21 -0800] "OPTIONS * HTTP/1.0" 200 125 "-" "Apache/2.4.6 (Ubuntu) PH P/5.5.3-1ubuntu2.1 (internal dummy connection)" 127.0.1.1:80 ::1 - - [10/Feb/2014:21:45:23 -0800] "OPTIONS * HTTP/1.0" 200 125 "-" "Apache/2.4.6 (Ubuntu) PH P/5.5.3-1ubuntu2.1 (internal dummy connection)" patrick@patrick-A780L3C /var/log/apache2 $ gedit
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/10/14 11:30 PM (11 years ago)
If you're running php 5.5.x, that 'could' be a reason… I need to find confirmation, but I don't know if BT self hosted can go that high. I could be wrong; I'm scrambling to find a recent post that mentioned something about that… I'm running 5.3 on my server. Cheers! -- Smug
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
02/10/14 11:46 PM (11 years ago)
OK. good to know. So in monitoring the website I find this. when I hit the upload button, for the image,after choosing the image. the response in debug is: [22:40:54.880] POST http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php [HTTP/1.0 500 Internal Server Error 15ms] and [22:40:54.887] The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol. @ http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
02/10/14 11:56 PM (11 years ago)
This is what is delivered once I have picked the icon to upload. what is next is where it is failing (down at the bottom of this) ////////////////////////////////////////////////////////////////////////////////// (<script type="text/javascript" src="http://www.patrickmotox.net/BT-server/scripts/footer.js"></script>) this is the outer. Inner is below. ///////////////////////////////////////////////////////////////////////////////// <!-- begin outer content wrap --> <div class="contentWrapper"> <!-- begin innter content wrap --> <div class="contentWrap"> <!-- class.Page.fnGetTopNavBar --> <div class="topNavBar colorLightBg"> <table class="topNavBarTable" cellpadding="0" cellspacing="0"> <tbody><tr> <td class="logo"> <a href="http://www.patrickmotox.net/BT-server" title="buzztouch"><img src="http://www.patrickmotox.net/BT-server/files/theme/logo.png" alt="logo"></a> </td> <td class="logout"> <a href="http://www.patrickmotox.net/BT-server/account/" title="Account" class="topRightLink">Patrick's Account</a>&nbsp; | &nbsp;<a href="http://www.patrickmotox.net/BT-server/admin/" title="Admin" class="topRightLink">Admin</a>&nbsp; | &nbsp;<a href="http://www.patrickmotox.net/BT-server/?logOut=1" title="logout" class="topRightLink">Logout</a> </td> </tr> </tbody></table> </div> <!-- end class.Page.fnGetTopNavBar --> <script type="text/javascript"> var lastImage = ""; function fnLoadImage(imageUrl){ if(document.images["screenImg"].src != imageUrl){ document.images["screenImg"].src = imageUrl; } lastImage = imageUrl; } // img onLoad function imgLoaded(){ //set image after background image loads window.setTimeout("fnDelayImage()", 100); } //delayed image display function fnDelayImage(){ fnSetImage('../../images/default_app_icon.png'); //document.getElementById("iconCanvas").style.visibility = "visible"; //document.getElementById("previewImage").style.visibility = "visible"; //document.getElementById("iconOverlay").style.visibility = "visible"; } //load image function fnLoadIcon(theUrl){ document.images["image_preview"].src = theUrl; } //sets app icon then rememberd it function fnSetImage(theUrl){ document.images["image_preview"].src = theUrl; document.forms[0].iconUrl.value = theUrl; } //onLoad function init(){ fnLoadImage('../../images/screen_icon.png'); } //depends on action function fnUpload(theCommand){ document.forms[0].command.value = theCommand; document.getElementById("loading").style.visibility = "visible"; document.forms[0].submit(); } </script> <style type="text/css"> .iphoneBg{ position:relative; z-index:10; float:right; height:737px; width:389px; overflow:hidden; background:url('../../images/iphone_icon_builder.png'); background-repeat:no-repeat; } .screenBg{ z-index:10; height:480px; width:320px; position:relative; left:36px; top:128px; } .screenImg{ width:320px; height:480px; visibility:visible; } .image_preview{ z-index:2; width:100%; height:100%; overflow:hidden; } .iconOverlay_icon{ height:72px; width:72px; position:relative; left:0px; top:-72px; z-index:22; padding:0px; background:url('../../images/icon_overlay_icon.png'); background-position:50% 50%; } </style> <input name="appGuid" id="appGuid" value="EA22DC8597A18E523357D4248" type="hidden"> <input name="command" id="command" value="" type="hidden"> <input name="iconUrl" id="iconUrl" value="../../images/default_app_icon.png" type="hidden"> <input name="imgGuid" id="imgGuid" value="D32F41CF4059C89AB827C0D" type="hidden"> <input name="large_image_location" id="large_image_location" value="" type="hidden"> <input name="small_image_location" id="small_image_location" value="" type="hidden"> <input name="large_imageURL" id="large_imageURL" value="" type="hidden"> <input name="small_imageURL" id="small_imageURL" value="" type="hidden"> <!--filled oncrop event --> <input name="x1" value="" id="x1" type="hidden"> <input name="y1" value="" id="y1" type="hidden"> <input name="x2" value="" id="x2" type="hidden"> <input name="y2" value="" id="y2" type="hidden"> <input name="w" value="" id="w" type="hidden"> <input name="h" value="" id="h" type="hidden"> <div class="content"> <fieldset class="colorLightBg"> <!-- app control panel navigation--> <div class="cpNav"> <span style="white-space:nowrap;"><a href="http://www.patrickmotox.net/BT-server/bt_v15/bt_app/?appGuid=EA22DC8597A18E523357D4248" title="Application Control Panel">Application Home</a></span> &nbsp;&nbsp;|&nbsp;&nbsp; <span style="white-space:nowrap;"><a href="http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_icon.php?appGuid=EA22DC8597A18E523357D4248" target="_self" title="App Icon" style="white-space:nowrap;">App Icon</a></span>&nbsp;&nbsp;|&nbsp;&nbsp; <span style="white-space:nowrap;"><a href="http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_core.php?appGuid=EA22DC8597A18E523357D4248" target="_self" title="Core" style="white-space:nowrap;">Core</a></span>&nbsp;&nbsp;|&nbsp;&nbsp; <span style="white-space:nowrap;"><a href="http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_layout.php?appGuid=EA22DC8597A18E523357D4248" target="_self" title="Layout" style="white-space:nowrap;">Layout</a></span>&nbsp;&nbsp;|&nbsp;&nbsp; <span style="white-space:nowrap;"><a href="http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_theme.php?appGuid=EA22DC8597A18E523357D4248" target="_self" title="Theme" style="white-space:nowrap;">Theme</a></span>&nbsp;&nbsp;|&nbsp;&nbsp; <span style="white-space:nowrap;"><a href="http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_screens.php?appGuid=EA22DC8597A18E523357D4248" target="_self" title="Screens" style="white-space:nowrap;">Screens</a></span>&nbsp;&nbsp;|&nbsp;&nbsp; <span style="white-space:nowrap;"><a href="http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_menus.php?appGuid=EA22DC8597A18E523357D4248" target="_self" title="Menus" style="white-space:nowrap;">Menus</a></span>&nbsp;&nbsp;|&nbsp;&nbsp; <span style="white-space:nowrap;"><a href="http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_users.php?appGuid=EA22DC8597A18E523357D4248" target="_self" title="App Users" style="white-space:nowrap;">App Users</a></span>&nbsp;&nbsp;|&nbsp;&nbsp; <span style="white-space:nowrap;"><a href="http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_files.php?appGuid=EA22DC8597A18E523357D4248" target="_self" title="Files / Media" style="white-space:nowrap;">Files / Media</a></span>&nbsp;&nbsp;|&nbsp;&nbsp; <span style="white-space:nowrap;"><a href="http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_configData.php?appGuid=EA22DC8597A18E523357D4248" target="_self" title="JSON Data" style="white-space:nowrap;">JSON Data</a></span>&nbsp;&nbsp;|&nbsp;&nbsp; <span style="white-space:nowrap;"><a href="http://www.patrickmotox.net/BT-server/bt_v15/bt_app/bt_appVersion.php?appGuid=EA22DC8597A18E523357D4248" target="_self" title="Publish Changes" style="white-space:nowrap;">Publish Changes</a><img id="publishDot" src="http://www.patrickmotox.net/BT-server/images/red_dot.png" style="vertical-align:middle;margin:0px;margin-bottom:2px;margin-left:5px;"></span> </div> <div class="contentBox colorLightBg"> <div class="contentBand colorBandBg"> Manage Icon for Test </div> <table style="margin-top:15px;" cellpadding="0" cellspacing="0"> <tbody><tr> <td style="padding-left:10px;padding-right:10px;"> <div> Choose a .JPG or .PNG image to upload. After uploading the image, you'll be asked to "crop" the image to 72 x 72 pixels. If you upload an image that is exactly 72 x 72 (because you created it in an image editor first), click it to "select it" before clicking the "Save" button. </div> <div style="padding:10px;"> <div style="padding-top:10px;white-space:nowrap;"> <input name="image" size="30" type="file"> </div> <div style="padding-top:10px;white-space:nowrap;"> <input name="upload" value="upload" class="buttonSubmit" onclick="fnUpload('upload_large');return false;" type="button"> <input value="cancel" class="buttonCancel" onclick="document.location.href='index.php?appGuid=EA22DC8597A18E523357D4248';return false;" type="button"> </div> <div id="loading" style="white-space:nowrap;color:red;visibility:hidden;padding-top:10px;"> uploading....please don't click anything... </div> </div> </td> <td style="text-align:right;"> <div class="iphoneBg"> <div class="screenBg"> <img id="screenImg" name="screenImg" class="screenImg" onload="imgLoaded();" src="../../images/screen_icon.png" alt="sample screen"> </div> <div class="iconOuter" style="position:relative;left:165px;top:-110px;"> <div id="iconImage" class="iconImage"> <img id="image_preview" src="../../images/default_app_icon.png" alt="app icon" class="rounded"> </div> <div id="iconOverlay_icon" class="iconOverlay_icon" style="display:block;visibility:visible;"> &nbsp; </div> </div> </div> </td> </tr> </tbody></table> </div> </fieldset> <!-- class.Page.fnGetBottomNavBar --> <div class="bottomNavBar"> <div class="bottomNavBarLeft"> </div> <div class="bottomNavBarRight"> <a href="http://www.buzztouch.com" target="_blank" style="color:#FF822E;"><i>powered by</i> Buzztouch<i>™ v2.1.9</i></a> </div><div style="clear:both;"></div> </div><div style="clear:both;"></div> <!-- end class.Page.fnGetBottomNavBar --></div> <!--end inner content wrap--> </div> <!--end outer content wrap--> </div> <!-- end form --> after clicking upload
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
02/11/14 01:37 AM (11 years ago)
Hi, just my two cents: - permissions: files must have permission 0644 and folders must have permission 0755 (and on some server setups the folder "file' needs permission 0777 - php version: At this moment the software will only run on php 5.3.x and below. Other versions will cause trouble..... Hope this helps. Best Regards, Danny
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
02/11/14 06:41 AM (11 years ago)
Thanks and looking.
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
02/11/14 06:48 AM (11 years ago)
Yes, I have 5.5.35, so..... off to work.
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
02/11/14 10:32 AM (11 years ago)
Well... Here I am. Same result. Hmmm. Installed versions: * (system) php-5.3.28 (/home/patrick/.phpbrew/php/php-5.3.28) +default EDIT: So, I thought, hmmm. I did a complete clean install of linux (lamp) with php 5.3.28. Setup the buzztouch console, no problems at all (I am getting good at this setup). Installed plugins, no problems. everything validates, looks great. created a test app, go to upload icon. Blah. Same thing. White screen. Same result as above. Permissions all look right to me. Is there anyway to put the icon image into the directory and then to update the database? I know the database needs to have the entry, So I can at least test???????? Hmmmmm....
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
02/11/14 09:59 PM (11 years ago)
More digging. I found that the icon image is getting to the point where it is being stored in /files/uid/temp/ directory. So the bt_icon.php is working in the respect it can take the file and store it in /temp, where it then is supposed to do it's resizing and then preview to the panel screen, then the user can set the boundries of the icon before saving. I can tell by the name of the file, it is being processed somewhat (icon_full_B2064002AB842291677A169.png), and stored in temp. This tells me the bt_icon.php has grabbed the image, determined the path, named the image, and placed it in temp. It hasn't however finished processing the image (resize),or displayed it in the panel view. After that, then rename the image move to image directory and write to the DB. Somewhere after putting the image in temp and attempting to resize the image is where the screen goes blank, I am thinking possibly that the panel is not getting displayed due to something breaking during or before that. Anyone know the ins and outs of bt_icon.php? Everything else is working. I can add Docs, images, audio, video, add users. create new projects, add plugins etc.. What I can't do is prepare the project because you have to have an icon to proceed. I renamed the temp icon to default_app_icon.png and placed in images folder and added an entry into the DB, but it still doesn't work. ANY IDEAS!!! help.....
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/11/14 10:33 PM (11 years ago)
Holy mackerel. That is a lot to go through, lol! I feel kind of bad for you… it shouldn't be this hard. Major applause for keeping with it! Believe me, once it's up and running you'll be our resident expert, next to PSMDanny! I'm getting close to the end of my (usable) suggestions… PHP Version - Check File Permissions - ??? (I know you checked them once… with the new install too?) I hope there isn't any kind of MySQL specific requirement; That would bite. Also, the 'physical' path attribute in your config.php file could cause an issue if it's not correct… Let us know how it goes… Cheers! -- Smug
 

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.