Discussion Forums  >  Self Hosted Control Panels

Replies: 10    Views: 79

WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
01/06/14 09:09 AM (11 years ago)

Fix for .pem cert not uploading

FIXED: In BT-server/bt_v15/bt_app change line 431 of file: bt_pushNotifications.php <<OLD>> //if(strtolower($userfile_type) != "application/octet-stream" || strtolower($file_ext) != "pem"){ <<NEW>> if(strtolower($userfile_type) != "application/x-x509-ca-cert" || strtolower($file_ext) != "pem"){ If you want to see how the old code was broken; I inserted this line to get visible output in the control panel that showed what the variables were set to. It was then apparent where the mismatch was: $strMessage = "<br/>file_ext is: " . $file_ext . " filename is: " . $filename . " userfile_type is: " . $userfile_type; Hope this helps someone! Seizure Later, Tim
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/06/14 09:20 AM (11 years ago)
Thank you @WolfTimJ! LA
 
Skywalker
Apple Fan
Profile
Posts: 117
Reg: Dec 25, 2013
上海
1,670
like
01/06/14 05:51 PM (11 years ago)
hi, Tim your solution seems to be for the self-hosted users, what if I am a buzz-server host one, I can't access the file: BT-server/bt_v15/bt_app ... in this case, what can I do? Thanks for your help. Best Regards, Skywalker
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/07/14 12:38 AM (11 years ago)
Thank you, Tim! Also, thanks for already reporting this on the BT v3 error listing. @Skywalker -- you will have to wait for the BT Team to make the fix. -- Niraj
 
Skywalker
Apple Fan
Profile
Posts: 117
Reg: Dec 25, 2013
上海
1,670
like
01/07/14 09:09 PM (11 years ago)
hi,Tim Thanks for your solution, Now I can upload the .pem file to my self-hosted server, But I still can't push notification to my test devices, it's said that no device registered, I remember, when I upload the .pem file to the Buzz server, it immediately shows that my iPhone and iPad are registered in the control panel, why there's a different thing in my own server? Do you know what's wrong with this? Thanks, SKywalker.
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
01/07/14 09:15 PM (11 years ago)
In your core settings ---> push notifications. Be sure you Prompt To Enable Push Notifications is set to yes, and reset the Register Device URL if it might have been changed. Tim
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
01/13/14 04:59 AM (11 years ago)
@Tim- Wow! This was really helpful. At first i thought that i missed something while creating the .pem file. Tried creating it couple of time and then decided to take a look at the forum and hit this post. I am happy to inform you that the .pem file got uploaded perfectly. Thanks a lot.
 
Chris from Staffor...
Aspiring developer
Profile
Posts: 335
Reg: Oct 14, 2013
Stafford
5,750
like
01/19/14 01:14 PM (11 years ago)
I have finally got a .pem file but Buzztouch won't let me upload to my control panel grrrrr!
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
01/19/14 01:39 PM (11 years ago)
The fix is the first message in this thread.
 
Chris from Staffor...
Aspiring developer
Profile
Posts: 335
Reg: Oct 14, 2013
Stafford
5,750
like
01/19/14 01:58 PM (11 years ago)
I'm not self hosted though
 
Chris from Staffor...
Aspiring developer
Profile
Posts: 335
Reg: Oct 14, 2013
Stafford
5,750
like
02/06/14 04:31 PM (11 years ago)
Fix for non self hosted - upload your pen file through windows and it works Don't know why but it does!
 

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.