Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 8    Views: 72

Gledy
Aspiring developer
Profile
Posts: 109
Reg: Feb 25, 2013
Fleet, UK
3,240
03/08/14 09:20 AM (10 years ago)

Push Notifications error

Hi, I've tried to upload my .pem file that I have made from following the pdf guide on push notifications from buzztouch, but when I do I get this error: Invalid File Type. .pem files only. You tried to upload a file named awaygroundguide.pem The error doesn't even make sense I am getting, does anyone know what is wrong?
 
Gledy
Aspiring developer
Profile
Posts: 109
Reg: Feb 25, 2013
Fleet, UK
3,240
like
03/08/14 09:35 AM (10 years ago)
I know this question was asked yesterday, but I have tried to upload the .pem file on safari, firefox and chrome as suggested in the thread from yesterday, but no difference still get the same error.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
03/08/14 09:39 AM (10 years ago)
This is the fix from TimWolf It happened to me and worked to fix it. You will need to go through ftp 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; -Tim
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
03/08/14 09:40 AM (10 years ago)
If you would like me to do it for you drop me a PM
 
Gledy
Aspiring developer
Profile
Posts: 109
Reg: Feb 25, 2013
Fleet, UK
3,240
like
03/08/14 09:43 AM (10 years ago)
Thanks Kittsy but isn't that the fix if you are self hosted? I'm not self hosted.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
03/08/14 09:44 AM (10 years ago)
ah it is I would never of though Buzztouch.com itself would be goosed sorry.
 
Gledy
Aspiring developer
Profile
Posts: 109
Reg: Feb 25, 2013
Fleet, UK
3,240
like
03/08/14 09:46 AM (10 years ago)
Thanks anyway, hopefully someone else might have a fix for my problem.
 
Rotsos
Apple Fan
Profile
Posts: 33
Reg: Jan 30, 2013
Limassol
3,430
like
03/08/14 10:25 AM (10 years ago)
I'm having the same issue as well. I have tried all major browsers on a Mac and PC. Any help would be greatly appriciated
 
Gledy
Aspiring developer
Profile
Posts: 109
Reg: Feb 25, 2013
Fleet, UK
3,240
like
03/15/14 08:25 AM (10 years ago)
Anyone that had a problem with the .pem upload, its been fixed!
 

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.