Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 13    Views: 114

Feather
I hate code!
Profile
Posts: 22
Reg: Oct 22, 2013
San Diego
7,720
12/10/13 09:21 PM (11 years ago)

Image Gallery not working?

Hey all, So I'm using the MacImageGallery plugin on my latest app. I'm pretty sure I've done it all correctly (the files are in the project, the extensions are correct in the control panel, etc) but when I compile, the app can't find the images and I get the red X image. This is the output I get when I try to run the gallery (it's jumbly): 2013-12-10 20:19:22.969 ratsrus[21198:1323] BT_fileManager: File does not exist in cached directory: "noImage.png" 2013-12-10 20:19:22.981 ratsrus[21198:1323] Mac_photo: Error loading image from: Error Domain=NSCocoaErrorDomain Code=260 "The operation couldn’t be completed. (Cocoa error 260.)" UserInfo=0xed72100 {NSFilePath=/Users/davidvanbeveren/Library/Application Support/iPhone Simulator/7.0.3/Applications/AABF447B-0FB8-4457-8158-4FE34348E5FE/ratsrus.app/noImage.png, NSUnderlyingError=0xed785c0 "The operation couldn’t be completed. No such file or directory"} 2013-12-10 20:19:23.381 ratsrus[21198:1327] BT_fileManager: File does not exist in cached directory: "noImage.png" 2013-12-10 20:19:23.381 ratsrus[21198:1817] BT_fileManager: File does not exist in cached directory: "noImage.png" 2013-12-10 20:19:23.397 ratsrus[21198:1817] Mac_photo: Error loading image from: Error Domain=NSCocoaErrorDomain Code=260 "The operation couldn’t be completed. (Cocoa error 260.)" UserInfo=0xed6c670 {NSFilePath=/Users/davidvanbeveren/Library/Application Support/iPhone Simulator/7.0.3/Applications/AABF447B-0FB8-4457-8158-4FE34348E5FE/ratsrus.app/noImage.png, NSUnderlyingError=0xed785c0 "The operation couldn’t be completed. No such file or directory"} 2013-12-10 20:19:23.397 ratsrus[21198:1327] Mac_photo: Error loading image from: Error Domain=NSCocoaErrorDomain Code=260 "The operation couldn’t be completed. (Cocoa error 260.)" UserInfo=0xea42b00 {NSFilePath=/Users/davidvanbeveren/Library/Application Support/iPhone Simulator/7.0.3/Applications/AABF447B-0FB8-4457-8158-4FE34348E5FE/ratsrus.app/noImage.png, NSUnderlyingError=0xea53ec0 "The operation couldn’t be completed. No such file or directory"} I'm sure it's possible the answer is staring me in the face and I'm going to look silly in 2 seconds. Either way, thanks for any help you guys can give me! Oh, also, the project is 3.0 and I'm running Xcode 5. Thanks! ~Samantha~
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/10/13 09:28 PM (11 years ago)
Hi Samantha, Have you tried doing a Build > Clean yet? Maybe it's thinking the images are somewhere else, and you just need to reestablish the links. You've verified 100% that the noImage.png file exists in the Xcode project? And in the correct BT Folder? Mark
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
12/10/13 10:24 PM (11 years ago)
I am currently working on one app and this app too uses MacImage gallery plugin and it works perfectly for me. The file named "noImage.png" is missing in your project. This file is required by the MacImage gallery and it comes with this plugin itself. You can find this file in the MacImage gallery plugin folder. If its not there then you will have to add one.
 
Feather
I hate code!
Profile
Posts: 22
Reg: Oct 22, 2013
San Diego
7,720
like
12/10/13 10:55 PM (11 years ago)
I re-downloaded the self-hosted version of the MacImageGallery and couldn't find the "noImage.png". I did, however, see a "load_error.png" but I didn't want to mess with that and screw up the whole thing so I made my own "noImage" and put it in the folder for the plugin. I was thinking maybe MacApple updated the plugin, changed the name of the image, and not the code?? After I added the image, cleaned, and recompiled, I saw my "noImage" where the red X had been. That's all well and good but my own images still aren't working :( Thanks for all the help, I appreciate it! ~Samantha~
 
bigPaul
Lost but trying
Profile
Posts: 103
Reg: Mar 08, 2013
Darwin
4,530
like
12/11/13 01:19 AM (11 years ago)
I have no idea about xcode/apple, but one thing that has caught out a few Android peeps is that there is not allowed to be any CAPITAL letters in the image names?
 
Feather
I hate code!
Profile
Posts: 22
Reg: Oct 22, 2013
San Diego
7,720
like
12/11/13 01:51 AM (11 years ago)
Oops, forgot to post my log. 2013-12-10 21:40:48.019 ratsrus[23347:5727] BT_fileManager: File does not exist in cached directory: "blank.png" 2013-12-10 21:40:48.021 ratsrus[23347:70b] ratsrus_appDelegate: tabBarController selected: 1 2013-12-10 21:40:48.022 ratsrus[23347:70b] ratsrus_appDelegate: hideAudioControls 2013-12-10 21:40:48.022 ratsrus[23347:70b] BT_application: getScreenDataByItemId 021B458E817DDF846D19C25 2013-12-10 21:40:48.022 ratsrus[23347:70b] BT_application: screenType is Mac_image_gallery for screen with nickname: "Gallery" and itemId: 021B458E817DDF846D19C25 2013-12-10 21:40:48.023 ratsrus[23347:70b] Mac_image_gallery: viewWillAppear 2013-12-10 21:40:48.023 ratsrus[23347:70b] Mac_image_gallery: viewWillAppear (super) 2013-12-10 21:40:48.024 ratsrus[23347:70b] Mac_image_gallery: configureNavBar (super) for screen with itemId: 021B458E817DDF846D19C25 2013-12-10 21:40:48.024 ratsrus[23347:70b] BT_viewUtilities: getNavBarBackgroundColorForScreen: Screen "Gallery" does not use a navBarBackgroundColor 2013-12-10 21:40:48.024 ratsrus[23347:70b] Mac_image_gallery: configureBackground (super) for screen with itemId 021B458E817DDF846D19C25: 2013-12-10 21:40:48.024 ratsrus[23347:70b] BT_background_view: updateProperties (color and image) for screen with itemId: 021B458E817DDF846D19C25: 2013-12-10 21:40:48.025 ratsrus[23347:70b] BT_fileManager: File does exist in Xcode bundle: "blank.png" 2013-12-10 21:40:48.025 ratsrus[23347:70b] BT_background_view: "blank.png" exists in Xcode bundle - not downloading. 2013-12-10 21:40:48.025 ratsrus[23347:70b] BT_background_view: setImage 2013-12-10 21:40:48.029 ratsrus[23347:70b] Mac_image_gallery: viewDidAppear 2013-12-10 21:40:48.127 ratsrus[23347:70b] Mac_image_gallery: loadData 2013-12-10 21:40:48.127 ratsrus[23347:70b] Mac_image_gallery: using menu items from the screens configuration data. 2013-12-10 21:40:48.128 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.128 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.128 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.128 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.129 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.129 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.129 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.129 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.130 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.130 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.130 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.130 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.130 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.131 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.131 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.131 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.131 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.131 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.132 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.132 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.132 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.132 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.132 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.133 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.133 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.133 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.133 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.134 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.134 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.134 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.134 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.134 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.135 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.135 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.135 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.135 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.135 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.136 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.136 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.136 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.136 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.136 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading. 2013-12-10 21:40:48.137 ratsrus[23347:572b] BT_fileManager: File does not exist in cached directory: "noImage.png" 2013-12-10 21:40:48.139 ratsrus[23347:4433] BT_fileManager: File does not exist in cached directory: "noImage.png" I don't think it's about capitals (but thanks for the suggestion ^^). The "noImage" is working and all my other images are numbers.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
12/11/13 04:00 AM (11 years ago)
In ios the capital names of any image or other files work so, thats not the issue here. Have you put the images in the BT_Images folder or they are referred from an url? The error log shows that neither the image name nor the image url is included in the json (config file). error- 2013-12-10 21:40:48.136 ratsrus[23347:70b] Mac_image_gallery: no image name, no image URL, not downloading.
 
Feather
I hate code!
Profile
Posts: 22
Reg: Oct 22, 2013
San Diego
7,720
like
12/11/13 02:24 PM (11 years ago)
All images are in my BT_Images folder and my JSON shows that it;s there: {"itemId":"021B458E817DDF846D19C25", "itemType":"Mac_image_gallery", "itemNickname":"Gallery", "navBarTitleText":"Gallery", "backgroundColor":"#000000", "navBarStyle":"transparent", "startImageIndex":"1", "cacheWebImages":"1", "showImageNavButtons":"1", "showSaveImageButton":"1", "showEmailImageButton":"1", "showCountInNavBar":"1", "childItems":[ {"itemId":"55980516B8732BD957FA9D8", "itemType":"MacImageItem", "imageFileName":"1.png"}, {"itemId":"D9355297D794E407765C794", "itemType":"MacImageItem", "imageFileName":"2.png"}, {"itemId":"DB50DC34F844E1EEE88FA0F", "itemType":"MacImageItem", "imageFileName":"3.png"}, {"itemId":"0EB8E97A418E4D4B6FE5E5F", "itemType":"MacImageItem", "imageFileName":"4.png"}, {"itemId":"739476C560E40E503F612E1", "itemType":"MacImageItem", "imageFileName":"5.png"}, {"itemId":"C40E2B18FACFA9F41DA500F", "itemType":"MacImageItem", "imageFileName":"6.png"}, {"itemId":"B49D5F5AC19CE59E7A9BA16", "itemType":"MacImageItem", "imageFileName":"7.png"}, {"itemId":"05D2A247D77C3073150B5E9", "itemType":"MacImageItem", "imageFileName":"8.png"}, {"itemId":"F94F87178FEC4A938B3CF92", "itemType":"MacImageItem", "imageFileName":"9.png"}, {"itemId":"198BFA487E94D3E5D5A707B", "itemType":"MacImageItem", "imageFileName":"10.png"}, {"itemId":"3A080E7AD571715EA128E00", "itemType":"MacImageItem", "imageFileName":"11.png"}, {"itemId":"9DB20F696CC566760AD5BA7", "itemType":"MacImageItem", "imageFileName":"12.png"}, {"itemId":"853B8EC544891DB0378159D", "itemType":"MacImageItem", "imageFileName":"13.png"}, {"itemId":"447B80ED005F0041ABE44E4", "itemType":"MacImageItem", "imageFileName":"14.png"}, {"itemId":"B22BCD5BD3C3CF8D576143B", "itemType":"MacImageItem", "imageFileName":"15.png"}, {"itemId":"6B0378C39336935FD1B9CE9", "itemType":"MacImageItem", "imageFileName":"16.png"}, {"itemId":"9803B6F28F565F36496CBE3", "itemType":"MacImageItem", "imageFileName":"17.png"}, {"itemId":"51233D8D14C691FF8666670", "itemType":"MacImageItem", "imageFileName":"18.png"}, {"itemId":"19DB8FC850C9D4A5287DD79", "itemType":"MacImageItem", "imageFileName":"19.png"}, {"itemId":"002B3825900946B4467D4F7", "itemType":"MacImageItem", "imageFileName":"20.png"}, {"itemId":"81B29BE66EC2AC3EEDB55F1", "itemType":"MacImageItem", "imageFileName":"21.png"}, {"itemId":"2AD04F8AB5358D2F8216E30", "itemType":"MacImageItem", "imageFileName":"22.png"}, {"itemId":"D28EF447EF4E7E8F180E973", "itemType":"MacImageItem", "imageFileName":"23.png"}, {"itemId":"6888619077B3C503FAB886A", "itemType":"MacImageItem", "imageFileName":"24.png"}, {"itemId":"6B17B4F5D7AF39C43D4C43F", "itemType":"MacImageItem", "imageFileName":"25.png"}, {"itemId":"381EB4EBD21B463323B96D2", "itemType":"MacImageItem", "imageFileName":"26.png"}, {"itemId":"EAC9E4B0FF1DA3B01C14745", "itemType":"MacImageItem", "imageFileName":"27.png"}, {"itemId":"DC8742A6F1E2580DB9A129B", "itemType":"MacImageItem", "imageFileName":"28.png"}, {"itemId":"C4087243C05F26C7128ED91", "itemType":"MacImageItem", "imageFileName":"29.png"}, {"itemId":"96D72298ED160F31853A178", "itemType":"MacImageItem", "imageFileName":"30.png"}, {"itemId":"CB9B56BE7E9778273B30557", "itemType":"MacImageItem", "imageFileName":"31.png"}, {"itemId":"2F0CE85FFECA75F7AA10CBA", "itemType":"MacImageItem", "imageFileName":"32.png"}, {"itemId":"1EDFA5D14F4F762ACE4AAF7", "itemType":"MacImageItem", "imageFileName":"33.png"}, {"itemId":"3FCC01FB1BB2019912B7D63", "itemType":"MacImageItem", "imageFileName":"34.png"}, {"itemId":"0294915F9EBACE4FA8486C5", "itemType":"MacImageItem", "imageFileName":"35.png"}, {"itemId":"3E1431F956C42301619EF19", "itemType":"MacImageItem", "imageFileName":"36.png"}, {"itemId":"5F06E92A4282EAC8267BE75", "itemType":"MacImageItem", "imageFileName":"37.png"}, {"itemId":"83C70B8E6559F088AD2D010", "itemType":"MacImageItem", "imageFileName":"38.png"}, {"itemId":"8E13E0F3EEAED5FC0E70D48", "itemType":"MacImageItem", "imageFileName":"39.png"}, {"itemId":"66AF392397648820B669BE3", "itemType":"MacImageItem", "imageFileName":"40.png"}, {"itemId":"1DBDEAE619D481B9A77A499", "itemType":"MacImageItem", "imageFileName":"41.png"}, {"itemId":"7EA14515C2C799B744E8545", "itemType":"MacImageItem", "imageFileName":"42.png"} ]}, Cleaned, deleted the app, and re-compiled with the new config pasted into the app, and same issues. :(
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/11/13 02:32 PM (11 years ago)
Interesting. It gives 42 cases of not being able to find an image file, and you have 42 images in your JSON. So, it's at least parsing the JSON correctly...or so it would appear. Have you tried putting the images in your BT_Art folder? Give it a try for the heck of it and see what happens. Mark
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
12/11/13 02:43 PM (11 years ago)
@Mark we just figured it out. Looks like when saving the image for the first time (adding a childitem/photo to the gallery) it saves it under the wrong JSON. So load up gallery in your control panel, add a new image from the gallery plugin page, and JSON will look like this: {"itemId":"D9355297D794E407765C794", "itemType":"MacImageItem", "imageFileName":"2.png"}, It SHOULD look like this: (we found out when we found the field BLANK when trying to edit one of the pictures): {"itemId":"55980516B8732BD957FA9D8", "itemType":"MacImageItem", "imageName":"2.png"}, Notice it should be ImageName not ImageFileName. Pictures attached of the find: http://s13.postimg.org/9787wh8xj/gallery01.png AND http://s11.postimg.org/itap18kg3/gallery02.png So we just updated the fields by clicking on the image properties one by one and re-adding "1.png", "2.png" to fix the json. Case closed! PM sent to Keith from a clients account, so he should see this :-) Cheers! David https://buzztouchmods.com/hire-me
 
Feather
I hate code!
Profile
Posts: 22
Reg: Oct 22, 2013
San Diego
7,720
like
12/11/13 02:46 PM (11 years ago)
Yeah, what David said ^^ Just wanted to thank everyone for their help! You guys are great :3 ~Samantha~
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/11/13 03:01 PM (11 years ago)
Rock on! Great detective work! Mark
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
12/11/13 07:52 PM (11 years ago)
Just jumped and see all you guys here! All works well here on Hostgator and self. Wee issue for me that might just be me. First image (child added) errors but doesn't crash but can subsequently be deleted to solve issue? Away from Mac. Will look. We all good?
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
12/13/13 10:52 PM (11 years ago)
Did this get fixed in the plugin? -- Niraj
 

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.