Discussion Forums  >  Grunts, Groans, Complaints

Replies: 10    Views: 76

MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
02/09/13 09:32 AM (11 years ago)

BT Server Erroring Out During Packaging

Hi Gang, I thought I'd post the issue I'm having in hopes that perhaps someone else has had this problem. Haven't been able to diagnose the cause. When packaging an app for download (iOS only) if I have uploaded an app icon after the upgrade, the system errors out with the following message: {"result":{"status":"success", "message":"The project was packaged successfully."}} Oops, a PHP error was trapped.File: /BT-server/bt_v15/bt_app/bt_appDownload_AJAX.php Line: 516 Message: imagecreatefromjpeg(): '/BT-server/files/temp/2EBCAA6D5CAC86D583FD8DD_icon.jpg' is not a valid JPEG file Get the same error if the icon is a png. Apps that were in the system prior to the update still package fine. The error occurs with 1) newly created apps or 2) old apps where I've uploaded a new app icon. The strange thing is the zipped package creates fine and is stored in my temp directory. I can manually download that and unzip it and it works fine, including the re-sized icons: icon_57, icon_72, etc. Anyone else experience this? David and I have been emailing back and forth trying to diagnose the issue. I thought if anyone else is having this issue it may help us find the cause. Thanks.
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
02/09/13 11:01 AM (11 years ago)
Running into something similar. Can't download iOS sourcecode for any app, new, old, with icon, new icon, etc. Same file bt_appDownload_AJAX.php this is the error I'm getting, a few more lines down from you. {"result":{"status":"success", "message":"The project was packaged successfully."}} Oops, a PHP error was trapped. File: /BT-server/bt_v15/bt_app/bt_appDownload_AJAX.php Line: 567 Message: mkdir() [function.mkdir]: File exists I posted it in Davids 2.1.8 update thread here last night. https://www.buzztouch.com/forum/thread.php?tid=815A787A69398D95FD0652D&currentPage=5 I do see my package in that temp folder as well, wish I had looked there last night. I thought it might exist but figured it was jank. Good to know I can use that if you've tested one. No issues with Android, so working with that instead.
 
Korkut Ata
Aspiring developer
Profile
Posts: 108
Reg: Aug 09, 2011
Luxembourg
11,580
like
02/09/13 11:14 AM (11 years ago)
Exactly the same as MGoBlue. Where is that temp directory you found the project pack? Thanks,
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
02/09/13 12:21 PM (11 years ago)
FTP into your box and navigate to this directory- /BT-server/files/temp you'll see your packaged zips in there. I haven't tested one yet but @mgo seems to have. Package look @ the right size, maybe let us know if yours works?
 
Korkut Ata
Aspiring developer
Profile
Posts: 108
Reg: Aug 09, 2011
Luxembourg
11,580
like
02/09/13 12:27 PM (11 years ago)
Thanks @ATRAIN53, I'll post when I checked.
 
Korkut Ata
Aspiring developer
Profile
Posts: 108
Reg: Aug 09, 2011
Luxembourg
11,580
like
02/09/13 12:36 PM (11 years ago)
Meanwhile my error changed to: {"result":{"status":"success", "message":"The project was packaged successfully."}} Oops, a PHP error was trapped. File: /xxxx/xxxxxxx.net/httpdocs/BT-server/bt_v15/bt_app/bt_appDownload_AJAX.php Line: 15 Message: set_time_limit() has been disabled for security reasons Is it something related to API issues?
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/09/13 12:37 PM (11 years ago)
Message: mkdir() [function.mkdir]: File exists Same here, temp folder was a good solution, thanks guys ;) David https://buzztouchmods.com
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
02/09/13 12:48 PM (11 years ago)
I've tested two different packages that were in my temp folder and they both work fine.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/09/13 01:02 PM (11 years ago)
@MGoBlue confirmed I deleted the old one from temp, tried to recompile and download, saw a new one in the temp, used it, works perfectly as expected! David https://buzztouchmods.com
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
02/09/13 03:59 PM (11 years ago)
Hey, first I was getting the same error but with the magic quotes error. Now I've created a php.ini I get this one: File: Unknown Line: 0 Message: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/timezonedb.so' - /usr/lib/php/extensions/no-debug-non-zts-20090626/timezonedb.so: cannot open shared object file: No such file or directory Unable to download as well. miguel
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
03/30/13 09:09 AM (11 years ago)
For anyone following this thread, I solved my packaging problem today. In the config.php file, I added the www into my url. All works fine now: ORIGINAL: /* application URL. Do not enter the trailing slash (/) after any URL. */ define("APP_URL", "http://domain.com/XXXXX"); CORRECTED: /* application URL. Do not enter the trailing slash (/) after any URL. */ define("APP_URL", "http://www.domain.com/XXXXX");
 

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.