Discussion Forums  >  Self Hosted Control Panels

Replies: 27    Views: 91

webwizz
Apple Fan
Profile
Posts: 81
Reg: Sep 29, 2011
Spain
4,960
03/04/13 05:43 AM (12 years ago)

Can't Upload Icon

I updated to Self-hosted 2.1.8 and started a new application, tried to upload the Icon but it goes straight to a 404 error. I tried with both a jpg and png and neither work. The page it is loading is http://mydomain.com/appwizz/bt_v15/bt_app/bt_icon.php Geraldine
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
03/04/13 01:40 PM (12 years ago)
You might want to run through a reinstall of the 2.1.8 package... that's a bit odd. Cheers! -- Smug
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
03/04/13 11:11 PM (12 years ago)
Hi webwizz, Have you sorted this out yet? Let us know if we can assist:) Ian
 
webwizz
Apple Fan
Profile
Posts: 81
Reg: Sep 29, 2011
Spain
4,960
like
03/05/13 04:08 AM (12 years ago)
Well I re-installed and tried again and I'm still getting the 404 error on uploading the App Icon. I'm going to re-download a fresh copy of 2.1.8 and see if that works. Geraldine
 
webwizz
Apple Fan
Profile
Posts: 81
Reg: Sep 29, 2011
Spain
4,960
like
03/05/13 06:00 AM (12 years ago)
OK....I downloaded a fresh copy, re-installed and I still can't upload the App Icon on a new app. I tried to upload an Icon to an older app and that worked OK. Any ideas? Geraldine
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
03/05/13 09:02 AM (12 years ago)
Try uploading that same icon that worked in an older app to your new app just to see if it's a problem with the image file?
 
webwizz
Apple Fan
Profile
Posts: 81
Reg: Sep 29, 2011
Spain
4,960
like
03/05/13 09:09 AM (12 years ago)
I did try that. It uploads OK to older apps but not to a newly created one. I deleted the first version and made another new app and still can't upload the icon. Seems to be only on a New App. Geraldine
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
03/05/13 09:17 AM (12 years ago)
Ok thanks for checking. Looking into this. Keep u posted Thanks for the support! ian Also, maybe it's a file permission on your server?
 
webwizz
Apple Fan
Profile
Posts: 81
Reg: Sep 29, 2011
Spain
4,960
like
03/05/13 10:36 AM (12 years ago)
Thanks for helping out. I'll check the file permissions but that wouldn't explain how I can upload to an older app and not a new one. Geraldine
 
webwizz
Apple Fan
Profile
Posts: 81
Reg: Sep 29, 2011
Spain
4,960
like
03/08/13 09:11 AM (12 years ago)
Any joy on solving this? Geraldine
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
03/11/13 11:23 PM (12 years ago)
Hi Geraldine, I must have missed your reply. Consulting the "expert" in this. Keep you posted. Ian
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/12/13 12:39 AM (12 years ago)
Indeed this odd. I think I understand what's happening (the trouble) but it's a bit odd. If the server is returning a 404 page, then how can an icon be uploaded at all? I say this because 404 is the universal page-not-found error. In other words, if the file doesn't exist (the /bt_v15/bt_app/bt_icon.php file), then how could other apps "find it." I think this file exists and I think the 404 is erroneous (the file must exist). So, if the file exists, but this app can't upload an icon, while others can, I would be suspect of the app's data directory and it's value in the database. If it's wrong, this won't work, and I'll be if you created another new app you would run into the same thing? Not sure really, kinda grasping here. The self hosted package has a PHYSICAL path value in the config.php file. This is used to tell the software were application files are saved. In this case, the app's icon file. All the apps in your control panel have a value in the database "pointing" to the app's data directory. When you make a new app it refers to the config.php file to get the path, then appends the app's id to the end. An apps data directory would look like... PHYSICAL PATH/files/applications/xxxxxxxx < this is an app id. The same id you see in the address bar when working with an app in the control panel. So, 5 apps would mean the /data directory would be... PHYSICAL PATH/files/applications/APP-ID-1 PHYSICAL PATH/files/applications/APP-ID-2 PHYSICAL PATH/files/applications/APP-ID-3 PHYSICAL PATH/files/applications/APP-ID-4 PHYSICAL PATH/files/applications/APP-ID-5 Next, inside each apps directory you have /images, /documents, etc. That's the first thing to check, do these directories exist. If they do, and they are readable and writeable by PHP something crazy is going on. If other apps are OK then it's probably not the icon.png file itself but something else. Weird. Like me. Fixable. Like me.
 
webwizz
Apple Fan
Profile
Posts: 81
Reg: Sep 29, 2011
Spain
4,960
like
03/12/13 04:04 AM (12 years ago)
Hi David and thanks for taking the time to help here. I have checked to see if the files exist and are writeable and they are there and are writeable. I have also made a fresh install of 2.1.8 and get the same problem there. I also get a 404 error when I click on the Files/Media link for the app. All other links work ok. Geraldine
 
annie
Android Fan
Profile
Posts: 8
Reg: Mar 13, 2013
Hove
880
like
03/13/13 12:55 PM (12 years ago)
@webwizz Did you find a fix for your upload icon problem? I am dealing with the exact same issue. Annie
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/13/13 02:05 PM (12 years ago)
@webwizz and @annie This is a strange problem indeed. 404 is the confusing part, that file obviously exists, why it won't load in your browser is super strange. I can dig into this deeper if you send me: a) A log in to your self hosted panel. Make one using david @ buzztouch.com and include the password in your email. b) An FTP login so I can have a look at your install. Host, User, Pass Send this to david @ buzztouch.com if you want me to have a look.
 
annie
Android Fan
Profile
Posts: 8
Reg: Mar 13, 2013
Hove
880
like
03/13/13 06:15 PM (12 years ago)
Actually in my case the issue was solved by installing the gd library. On Ubuntu the command to use is: apt-get install php-gd Then restart Apache
 
webwizz
Apple Fan
Profile
Posts: 81
Reg: Sep 29, 2011
Spain
4,960
like
03/14/13 05:24 AM (12 years ago)
Sent the info last night David, but I have just gone in to update one of the older apps and am getting the 404 error whenever I click on any of the screens. Geraldine
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/16/13 04:55 PM (12 years ago)
Hi gang. @webwizz is all set and working. If anyone runs into trouble, replace your bt_icon.php file with this one (Save and change the file extension to .php before uploading to your server) http://www.buzztouch.com/system/bt_icon.txt There are slight differences in this file that in the one that ships with the 2.1.8 download. The one you have "should work" and does in tons of cases. But, in some cases it doesn't. This is the new and updated version that will ship with the next release of the self hosted package.
 
webwizz
Apple Fan
Profile
Posts: 81
Reg: Sep 29, 2011
Spain
4,960
like
03/17/13 03:45 AM (12 years ago)
Hi David, Thanks for this but.....I was all set, got the icon uploaded then clicked on the Home screen to edit and got hit with the 404 again! Checked one of the older apps and same thing there. I can add a screen ok but can't edit it. And clicking on Files/Media link logs me out..... :( Geraldine
 
LocalMobileColorad...
Aspiring developer
Profile
Posts: 21
Reg: Mar 01, 2013
Aurora, CO
8,910
like
03/25/13 02:50 PM (12 years ago)
David - I'm having the same problem as Geraldine. As you have stated, I checked and the: PHYSICAL PATH/files/applications/APP-ID directory does exist. I renamed and uploaded the new file you have specified to my self-hosted site at the following path: /public_html/buzztouch/bt_v15/bt_app/ I am taken to this page: http://mobileapptoolbelt.com/buzztouch/bt_v15/bt_app/bt_icon.php with an HTTP 500 Internal Server Error. When I refresh this page, I am taken to: http://www.buzztouch.com/forum/thread.php?tid=EBA2D525ACE598253D0C294&fid=06DB0BCB08E6666&sortColumn=FT.id&sortUpDown=DESC&currentPage=3 with the message, "invalid request (4)" I'd very much like to see a fix. I'd be happy to email you my ftp and login info if it will help you look at this. Gene Murray
 
LocalMobileColorad...
Aspiring developer
Profile
Posts: 21
Reg: Mar 01, 2013
Aurora, CO
8,910
like
03/30/13 06:03 PM (12 years ago)
@Annie, of the many fixes that were suggested, you are correct: a GD Library issue. This was confirmed by David. If you run a WHM server, here's the procedure to add the GD Library: 1. Login to WHM. 2. Find “EasyApache (Apache Update)” from the left hand panel. 3. Click on “Start customizing based on profile”. 4. Select the defaulted Apache version. 5. Select the defaulted PHP version. 6. Select the defaulted PHP build. 7. Now scroll down to the bottom and select “Exhaustive Options List”. 8. Select “GD” by checking the check box next to it. 9. Proceed with the recompile by clicking the button. If you have this GD Library issue and you do not have root access to WHM (i.e., you are a web hosting company's or reseller's customer) then raise a help desk ticket and have them do the above on the server.
 
annie
Android Fan
Profile
Posts: 8
Reg: Mar 13, 2013
Hove
880
like
03/30/13 06:41 PM (12 years ago)
@LocalMobileColorado: I think some others in this thread may have had other causes of this error than the missing gd library gd is the library used by PHP to image manipulation - when you upload the icon gd does the resizing part. Most hosting company servers come with it installed, but I set up my server from scratch and forgot to put it in. You can check to see if it is installed by 1. Logging into your Buzztouch server as the administrator. 2. Clicking the 'Admin' link at the top right of the screen. 3. Clicking the 'Show PHP Info' link in the left menu. 4. Scroll down about halfway down the page into the alphabetical list of modules, and you should find a 'gd' section (mine comes between 'ftp' and 'gettext'). 5. If you can't find this 'gd' section then you need to install it. If you can find it and it's enabled then you already have it, so you have a different problem.
 
LocalMobileColorad...
Aspiring developer
Profile
Posts: 21
Reg: Mar 01, 2013
Aurora, CO
8,910
like
03/31/13 11:47 AM (12 years ago)
@Annie - Great tip about viewing the PHP info from within self-hosted buzztouch itself. This makes me wonder, is there a list of various modules that buzztouch requires that could serve as a checklist when one is preparing to install it. In my case, I originally set up my hosting server for a different purpose that doesn't require the GD Library. Then, when I added buzztouch, I didn't think about installing GD at the time because I didn't know it was needed.
 
annie
Android Fan
Profile
Posts: 8
Reg: Mar 13, 2013
Hove
880
like
03/31/13 12:06 PM (12 years ago)
@LocalMobileColorado - I'm very new to this, I've just installed one self-hosted buzztouch server for a client. I looked around for such a list but couldn't find one. There is a document called 'Setting up buzztouch self hosted control panel on the Amazon EC2 Cloud' (on the How 'To's page') that mentions some features that needed to go in. But this guide assumes you are starting with server set up that already has a lot pre-installed.
 
LocalMobileColorad...
Aspiring developer
Profile
Posts: 21
Reg: Mar 01, 2013
Aurora, CO
8,910
like
03/31/13 01:36 PM (12 years ago)
As far as BT goes, I'm a newbie, too. I also found the same documents as you. I think that this is an issue for the "powers that be" to improve the new-user experience -- hint! -- hint! :-)
 
annie
Android Fan
Profile
Posts: 8
Reg: Mar 13, 2013
Hove
880
like
03/31/13 01:49 PM (12 years ago)
They need a detailed requirements document!
 
tiger
Aspiring developer
Profile
Posts: 121
Reg: Dec 26, 2010
USA
1,210
like
05/30/14 06:21 PM (11 years ago)
I had this problem today and I just downloaded the fix and it fix the problem.
 
tiger
Aspiring developer
Profile
Posts: 121
Reg: Dec 26, 2010
USA
1,210
like
05/31/14 04:23 PM (11 years ago)
I had this problem today and I just downloaded the fix and it fix the problem.
 

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.