Discussion Forums  >  Self Hosted Control Panels

Replies: 18    Views: 169

ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
09/11/12 07:03 PM (13 years ago)

Blog Pro Plugin - viewController error

G'day All, I just thought I'd post here before trying the "Plugin Forum" as someone may have already come up against my problem where the Blog Pro Plugin throws a viewController error in xcode and just gives a blank screen on the device. First up, I'm self hosted with BT 2.1.7. I've downloaded and installed the Blog Pro Plugin, created some screens in my control panel (as per the Blog Pro Manual using the supplied values), downloaded the source code, changed the compile sources for the javascript files and have xcode compiling and running the code (All of my other screen types work fine). When I go to a blog from an item in a "Menu Simple Advanced Screen" (BTM) I get this error: BT_viewControllerManager: the screen to load is nickname: "Welcome Blog" itemId: 7E190419C472E06FD67EF83 itemType: BTA_screen_blogpro BT_viewControllerManager: initViewControllerForScreen nickname: "Welcome Blog" itemId: 7E190419C472E06FD67EF83 type: BTA_screen_blogpro BT_viewControllerManager: initViewControllerForScreen: ERROR, could not initialize view controller for screen with itemId: 7E190419C472E06FD67EF83 When I try a different blog from a tab bar bottom icon I get this which is not an error but it never loads: taylorshill_appDelegate: tabBarController selected: 3 taylorshill_appDelegate: hideAudioControls BT_application: getScreenDataByItemId 02D4D0A4D9C4260B4136B8F BT_application: screenType is BTA_screen_blogpro for screen with nickname: "Principal Blog" and itemId: 02D4D0A4D9C4260B4136B8F It appears to load but the screen just comes up blank. Any ideas greatly appreciated as the error logs are not that helpful for me at least! I can supply the json data if that helps - it looks ok as well.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
09/11/12 09:50 PM (13 years ago)
It does look like the BTA_screen_blogpro class file is not loading. The messages you posted from the Console are good hints. It looks to me like the "same thing" is happening whether you use a menu item to load the plugin or a bottom tab bar "tap." The messages in the console are a little different but the same thing is happening, the view controller for the blog isn't loading. Interestingly, the itemType of "BTA_screen_blogpro" does NOT match the class name of the actual objective c view controller class. I justed looked at the plugin, the class name for the view controller is BTA_screen_blogPro (note the capital P). This tells me three things: 1) If you changed the itemType of the blog screens in your JSON to "BTA_screen_blogPro" (with a captial P), they would load. Of course you would have to do this manually after downloading your project because of the way the control panel works. 2) We have a typo somewhere in our backend systems causing this. It's also possible that the config.txt file (which I helped make with the developer) has a typo. In either case, I'll find it and fix it pronto so this doesn't happen again. 3) You can't be the only one running into this problem. But, I've heard from more than a few folks about how "cool" this plugin is so it must be working for some? Strange. In fact, in thinking, I tested this plugin alot before releasing it...even stranger. I'll fix the typos on this end, you fix them on your end, I'll be it works :-)
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
09/11/12 09:54 PM (13 years ago)
Thanks - I'm onto it now ... you couldn't get paid support this good! Will let you know ASAP.
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
09/11/12 10:07 PM (13 years ago)
Excellent @David that was it! I changed the two occurrences of the BTA_screen_blogro to BTA_screen_blogPro in the config.txt file and the blogs loaded as expected. I'll re-download when you get a chance to update as I assume each time I re-fresh it'll generate json with the lowercase 'P' Thanks again :)
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
09/12/12 03:49 AM (13 years ago)
This is fixed (not sure if you're self hosted or not). If you add another screen using bt.com control panel, the little p should become a big P. If you're self hosted, you'll need to fetch the new package. Amazing how many of these files I literally know by heart. As soon as I read your post I knew were to look. Now, if I could only get more of these darned "learning path" lessons done! LOL
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
09/12/12 07:01 AM (13 years ago)
Thanks David, Midnight here so I'll download the self hosted version tomorrow and give it go. Great that you've squashed another bug :) Looking forward to those learning path videos. Cheers Darrel
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
09/12/12 05:16 PM (13 years ago)
Update ... I've re-downloaded the self-hosted plugin, installed on server, re-downloaded the source files, configured, complied and run the project but still get the same errors. Config.txt still has the small 'p' even if I change it to a capital 'P' the console still show an error and an item type of "BTA_screen_blogpro" The plugin is still at version 1.0 for self-hosted. Will there be un update for self-hosted soon? (Please!)
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
09/12/12 11:45 PM (13 years ago)
Hmm...somethings not adding up. First though..version...yeah, we're trying to get better at version control things. We're been working with devs, and the control panel, to make this better. In theory, every change, including small ones should show a new version. Today...none of the versions are changing while we work through the first few weeks. So, I just downloaded the self hosted package and looked at the files. ALL of them (config.txt, BTA_screen_blogPro.h, BTA_screen_blogPro.m use the "P" (capital) in the source. This is good and as expected. Could it be that your self hosted panel didn't get the latest version like you thought? Seems strange that it didn't? I suppose you could update it manually? It's not too tough. Dunno whats easier. If you want to change it manually, just find the plugin, change the values in BTA_screen_blogPro.m, .h, .java and config.txt to the capital P. You'll also want to look at the database itself to be sure the loadClassOrActionName field in bt_plugins table has the right value. I'm happy to do this for you but will need your FTP credentials and a login for the control panel. Seems overkill, you're capable. Going back..I don't understand how your download could be different than mine? Visit the market, find the blog plugin, click the "download" link...you should get the same thing I'm getting.
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
09/13/12 03:24 AM (13 years ago)
Hi David, Thanks for the comments above. I used the control panel to update the first time and when it didn't work I used FTP to put the files in place just to make sure. I tried the project source download a number of times on both of these installs. One thing I didn't do was create a new blog so perhaps it is a reference in database itself. I'll look into that one and report back, I'm happy to update the files manually too.
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
09/13/12 04:47 AM (13 years ago)
Ok, good news! I changed the mysql plugin table so the loadClassOrActionName had the capital 'P', downloaded source code, generated a new blog and everything appears to work! See: http://www.evernote.com/shard/s2/sh/c1f190f6-078a-4da2-a7cf-04b2fd975a5c/55d1ef940b80ef27aca3768cfbe60052 I have some other problems that should be directed to Danny and/or the plugin forum (?) Like the Blog List Colors not being generated in the json http://www.evernote.com/shard/s2/sh/1d464c03-9146-4bc1-bdbf-16230d874013/815870a2934ed4de16ac447b76f38e96 And the "Full" view not appearing: http://www.evernote.com/shard/s2/sh/a1ee752f-4893-484e-85c3-c79e57cff3bb/a685d4fd3aec2abc34e2e74c640daada Happy to follow up with whoever you think I should?
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
09/13/12 04:53 AM (13 years ago)
Log appears to show the full webview not loading (null item) .... BTA_screen_blogPro: didSelectRowAtIndexPath: Selected Row: 1 BTA_screen_blogPro: This is the thisMenuItem's JSON data: { blogDateDay = 13; blogDateMonth = Sep; blogDateYear = 2012; blogStyleColor = blue; fullText = "Tes message jksdfhgjkdghsjkgf sdjk f gdskfdsfs df dfh d dhkh jskf h kjsh jksdh jks"; iconName = "bird.png"; introText = Test; rowAccessoryType = none; titleText = "Test Item 2"; } BTA_screen_blogPro: This is the dynamicscreenitemid: (null) BT_viewControllerManager: handleTapToLoadScreen BT_viewControllerManager: the parent screen nickname: "Test" itemId: BTA_screen_blogPro BT_viewControllerManager: the menu/button tapped is itemId: (null) BT_viewControllerManager: the screen to load is nickname: "" itemId: (null) itemType:
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
09/13/12 07:18 AM (13 years ago)
Hi Ictguy (and David), Just got back and see this post. @ictguy: could you please try to delete (in every app) every blog screen and after that uninstall the plugin. Next re-install the new version. See if that works. @David: strange thing that is happening here. Lot of people are using the plugin without problems (also self hosted). Could it be that some conversion (to lower case) is done when uploading the plugin to the plugin market? Best Regards, Danny
 
Otatech
Code is Art
Profile
Posts: 80
Reg: Jul 18, 2012
Rome
800
like
09/13/12 10:35 AM (13 years ago)
Hi all I've installed the new "release" (even if it is still the 1.0), but in the configuration data it writes still "itemType":"BTA_screen_blogpro". Maybe there will be a new version? :-)
 
Otatech
Code is Art
Profile
Posts: 80
Reg: Jul 18, 2012
Rome
800
like
09/13/12 10:47 AM (13 years ago)
Hi all I've installed the new "release" (even if it is still the 1.0), but in the configuration data it writes still "itemType":"BTA_screen_blogpro". Maybe there will be a new version? :-)
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
09/13/12 01:11 PM (13 years ago)
Hi, @otatech: I've send you an email containing: Hi Mariano, could you please delete every blog screen and instances. I made a test app on your server and see that it's using:BTA_screen_blogpro I downloaded the plugin from the store and checked every file. There is no BTA_screen_blogpro in it. It does only contain BTA_screen_blogPro (Pro with a capital P). After that I uninstalled my plugin at my own server and installed the latest version of the plugin and it's working right out of the box. What I would like to try (on your server) is to un-install the plugin an re-install it with the latest release. Because you didn't mention I'm not sure if you uninstalled it (correctly) so I would like to try it myself. OK?? Just overwriting the php files doesn't work. Part of it is in your database thanks in advance, please make sure you delete every blog screen, otherwise I won't be able to uninstall. Once we found out what the issue is/was we'll release a new package under a new version number. Hope to hear from you soon. Best Regards, Danny
 
Otatech
Code is Art
Profile
Posts: 80
Reg: Jul 18, 2012
Rome
800
like
09/13/12 01:46 PM (13 years ago)
Hi Danny, 1 - I deleted the plugin from my self hosting server 2 - I reinstalled the plugin 3 - I made a little test app and I saw immediately that in the Configuration Data there was the CORRECT ""itemType":"BTA_screen_blogPro" 4 - I linked to the site you gave me Now it runs OK ;-) Thanx very much for your help and your pacience :-)
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
09/13/12 01:50 PM (13 years ago)
Well, That sounds great. So for everyone with the same problem. Please uninstall (after you deleted all blogscreens and items) and after that reinstall latest version (note that it still says version 1.0). That should do the trick!! If more help is needed, feel free to ask in the discussion about the plugin here: http://www.buzztouch.com/plugins/discussions.php?pid=EF1AA98408AA4E656C3F7BD Have lots of fun with the plugin and don't forget to checkout www.bt-addons.com for more information and new templates and plugins..... Best Regards, Danny
 
Otatech
Code is Art
Profile
Posts: 80
Reg: Jul 18, 2012
Rome
800
like
09/13/12 02:39 PM (13 years ago)
Hi Danny, 1 - I deleted the plugin from my self hosting server 2 - I reinstalled the plugin 3 - I made a little test app and I saw immediately that in the Configuration Data there was the CORRECT ""itemType":"BTA_screen_blogPro" 4 - I linked to the site you gave me Now it runs OK ;-) Thanx very much for your help and your pacience :-)
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
09/13/12 05:09 PM (13 years ago)
Hi Danny, I did the complete clear out of Blog Pro entries, uninstalled the plugin, downloaded the new version, installed on the server, downloaded the source code, installed as per instructions for javascript files, added a blog to my control panel as per your manual. Ran it in the simulator. The plugin is working i.e. it has capital 'P' in the config.txt json and it shows the list view. However, I still have the issue with the font colors on the list view and the blank "fullview" as documented with screenshots above. I'll move this to the BlogPro plugin forum and see what we can do from their. Appreciate any thoughts you have on the matter.
 

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.