1 jaromy Feb 19, 2009 23:28
3 daethian2 Feb 22, 2009 21:50
I have error code where my widget should be:
Notice: Trying to get property of non-object in /home/purpleme/public_html/blog/plugins/post2myspace_plugin/_post2myspace.plugin.php on line 118
Catchable fatal error: Object of class post2myspace_plugin could not be converted to string in /home/purpleme/public_html/blog/inc/users/model/_group.class.php on line 324
4 jaromy Feb 23, 2009 07:51
Hmmmm ... thanks for the error info, guys. I'll take a look into it and see what's up.
Gcasanova, you will be prompted to enter your myspace account info after you click on the link to Post to Myspace (i.e. from the Myspace page).... it will be more obvious once it's working.
Daethian2, what version of b2evo are you using?
Thx,
J
5 yabba Feb 23, 2009 08:45
Change this :
if( ! $current_User->check_perm( 'item_post!'.$Item->status, 'edit', false, $this ) ) {
To :
if( empty( $current_User ) || ! $current_User->check_perm( 'item_post!'.$Item->status, 'edit', false, $this ) ) {
¥
6 daethian2 Feb 23, 2009 17:30
jaromy wrote:
Hmmmm ... thanks for the error info, guys. I'll take a look into it and see what's up.
Gcasanova, you will be prompted to enter your myspace account info after you click on the link to Post to Myspace (i.e. from the Myspace page).... it will be more obvious once it's working.
Daethian2, what version of b2evo are you using?
Thx,
J
I'm only one update behind.
7 daethian2 Feb 23, 2009 17:30
¥åßßå wrote:
Change this :
if( ! $current_User->check_perm( 'item_post!'.$Item->status, 'edit', false, $this ) ) {
To :
if( empty( $current_User ) || ! $current_User->check_perm( 'item_post!'.$Item->status, 'edit', false, $this ) ) {
¥
What file are we changing plz? :)
8 yabba Feb 23, 2009 18:01
Daethian2 wrote:
Notice: Trying to get property of non-object in /home/purpleme/public_html/blog/plugins/post2myspace_plugin/_post2myspace.plugin.php on line 118
That one ;)
¥
9 daethian2 Feb 23, 2009 18:13
¥åßßå wrote:
Daethian2 wrote:
Notice: Trying to get property of non-object in /home/purpleme/public_html/blog/plugins/post2myspace_plugin/_post2myspace.plugin.php on line 118
That one ;)
¥
Well that would make sense now wouldn't it??? :oops: :oops: :oops: :oops:
Sorry... I'm not coming back till I've had some sleep. :-/
10 jaromy Feb 23, 2009 21:01
Thanks for the help, Yabba. I'll make the change and post the new version (should be up in 10 min). Let me know if this doesn't fix the problem... unfortunately I can't reproduce it yet here on my b2evo installation (but I'm running an older version 2.4.2).
Cheers,
J
11 daethian2 Feb 23, 2009 21:13
I attempted the fix and it didn't work but given my earlier dumb ass attack it's entirely possibly I did something wrong LOL
I think Yabba or someone else ..actually Topanga I think ...had admin access on my blog. I can let someone else look if that helps?
12 gcasanova Feb 26, 2009 00:23
Jaromy:
I Updated the plugin to version 1.1, installed the plugin, placed it in a widget container first and then in another and in both cases received the error:
Notice: Trying to get property of non-object in /home/.../public_html/plugins/post2myspace_plugin/_post2myspace.plugin.php on line 119
Catchable fatal error: Object of class post2myspace_plugin could not be converted to string in /home/.../public_html/inc/users/model/_group.class.php on line 324
13 jaromy Mar 02, 2009 21:34
Cool, thanks for the testing and feedback guys. Sorry for the lack of response - i've been swamped with other stuff lately (you know, my regular job + music :) ).
Are you guys logged in as a user with admin privileges? Just wondering if this is an issue.
I'll try to get a fix later this week... in the meantime if you know a little PHP, I would suggest commenting out lines 119-121 in the _post2myspace.plugin.php file. that seems to be the offending clause.
Cheers,
J
14 daethian2 Mar 02, 2009 22:07
yes I'm logged in admin
commenting out totally borked my site
15 jaromy Mar 09, 2009 00:27
Hey guys,
I have a new version of the plug-in available for download. It will fix the problems you have been seeing and reporting.
Basically the problem results from adding the widget into a non-Post container (such as the sidebar). I fixed the code so that it doesn't crap out...
Ultimately, however, you should be adding the widget into a new Post container so that the Post To Myspace link will link to the actual posting. Otherwise, PostToMyspace plugin will not know which post you are interested in linking to, and will default to the Blog link/url.
I updated the documentation to make this a little bit clearer, and included some code examples. So please do check that out if you have any doubts or questions.
Cheers,
J
16 daethian2 Mar 09, 2009 00:38
I am going to uninstall this plugin. Last night I discovered that somehow my entire MySpace profile was blanked out. I really didn't use it other than promoting my real sites....so I'm not going to waste the time rebuilding the account.
Hopefully casanova can help you test this.
Thanks for your efforts!
17 jaromy Mar 09, 2009 07:52
Hi Daethian2,
Sorry your Myspace profile is messed up :(.
If it's any consolation, I'm almost 100% certain it's not due to this plugin, because the error you were getting would have stopped any sort of data from being sent to Myspace. Additionally, Myspace would require that you login before actually posting any sort of data to your profile.
Still, though, it's never fun to find a blank page. And I know what you mean about Myspace - it's a pain to customize!
Thanks for helping out and the feedback.
-J
18 daethian2 Mar 09, 2009 19:37
OH I'm certain it wasn't you either. In fact, the only change I had made to MS was to activate the new random playlist option. Next log in... BLANK. They don't even make it easy to create a back up of your profile you know? When I tried contacting them they wrote me off as some dipshit looking for HTML help.
Ah well!
Hi,
I find your plugin a very good idea. Unfortunately I haven't being able to make it work in my blog. I must be missing something.
I'm using b2evolution version 2.4.6.
I've installed the plugin and I get this error in whatever container I place the widget in:
Also, maybe its because I haven't being able to make it work but, how does this plugin know my myspace account?
I believe I'm missing something here although I did read your instructions.
Regards