- Posts: 10
COMMUNITY FORUM
K2 User Plugin fails on JomSocial Avatar Change
- Christopher Ambler
- Topic Author
- Offline
- New Member
Less
More
15 years 3 months ago #71119
by Christopher Ambler
K2 User Plugin fails on JomSocial Avatar Change was created by Christopher Ambler
When changing an avatar using JomSocial, the postback processing causes onAfterStoreUser() to be triggered in plugins/user/k2.php. On (or around) lines 95/96, there is a check for $file in K2's user plugin code.
K2 appears to be making the presumption that the data in $_POST is its data. It is not, it is JomSocial's postback. While it's fine for K2 to register for the onAfterStoreUser(), it seems wrong that it presumes that it might be the only component out there passing data back in $_POST for this event.
This causes K2's plugin to emit an error ("could not upload your image.") when no such error is present. The error is because there is no index for on $file in this case. K2 presumes there is, again, because it presumes that the data in $_POST is its own.
This is breaking JomSocial - bad form, K2!
Would a developer please comment on this and acknowledge the bug?
K2 appears to be making the presumption that the data in $_POST is its data. It is not, it is JomSocial's postback. While it's fine for K2 to register for the onAfterStoreUser(), it seems wrong that it presumes that it might be the only component out there passing data back in $_POST for this event.
This causes K2's plugin to emit an error ("could not upload your image.") when no such error is present. The error is because there is no index for on $file in this case. K2 presumes there is, again, because it presumes that the data in $_POST is its own.
This is breaking JomSocial - bad form, K2!
Would a developer please comment on this and acknowledge the bug?
Please Log in or Create an account to join the conversation.
- Christopher Ambler
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
15 years 3 months ago #71120
by Christopher Ambler
Replied by Christopher Ambler on topic K2 User Plugin fails on JomSocial Avatar Change
Do the K2 developers even read this forum?
Please Log in or Create an account to join the conversation.
- Christopher Ambler
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
15 years 3 months ago #71121
by Christopher Ambler
Replied by Christopher Ambler on topic K2 User Plugin fails on JomSocial Avatar Change
Another day, another lack of response from anyone...
Hello? Is this thing on?
Hello? Is this thing on?
Please Log in or Create an account to join the conversation.
- Sunny
- Offline
- New Member
Less
More
- Posts: 7
15 years 3 months ago #71122
by Sunny
Replied by Sunny on topic K2 User Plugin fails on JomSocial Avatar Change
Even i think that we have to swim in the sea alone!!!
Christopher Ambler said:Do the K2 developers even read this forum?
Christopher Ambler said:Do the K2 developers even read this forum?
Please Log in or Create an account to join the conversation.
- Mike C
- Offline
- Senior Member
Less
More
- Posts: 49
15 years 3 months ago #71123
by Mike C
Replied by Mike C on topic K2 User Plugin fails on JomSocial Avatar Change
Not sure it's the same error, but it sounds like it, when someone tries to register on my site with JoomSuite User component. I have avatars completely disabled in that component, yet when someone registers, that image upload error comes up. It has been reported to be caused by K2 in a community builder forum discussion and you're experiencing it with JomSocial. Please give us a fix for this?
Please Log in or Create an account to join the conversation.
- bunglehaze
- Offline
- Elite Member
Less
More
- Posts: 168
15 years 3 months ago #71124
by bunglehaze
Replied by bunglehaze on topic K2 User Plugin fails on JomSocial Avatar Change
And also this happens: Notice: Undefined property: stdClass::$profile in /var/www/vhosts/bikechatter.co.uk/httpdocs/components/com_k2/models/item.php on line 275
Error reporting has to be on maximum but it is still happening
Devs?
Error reporting has to be on maximum but it is still happening
Devs?
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
15 years 3 months ago #71125
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic K2 User Plugin fails on JomSocial Avatar Change
Hi. OK i can confirm this but if you are using JomSocial ( or other similar extensions )for extending the user then you can try to disable the K2 user plugin.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Christopher Ambler
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
15 years 3 months ago #71126
by Christopher Ambler
Replied by Christopher Ambler on topic K2 User Plugin fails on JomSocial Avatar Change
Lefteris Kavadas said:Hi. OK i can confirm this but if you are using JomSocial ( or other similar extensions )for extending the user then you can try to disable the K2 user plugin.
What? Why?! How about we get the bug fixed, instead?
What? Why?! How about we get the bug fixed, instead?
Please Log in or Create an account to join the conversation.
- bunglehaze
- Offline
- Elite Member
Less
More
- Posts: 168
15 years 3 months ago #71127
by bunglehaze
Replied by bunglehaze on topic K2 User Plugin fails on JomSocial Avatar Change
Hi lefteris, that is fine to fix in the meantime but what about the undefined property bug I posted also that is persistant?
leigh
leigh
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
15 years 2 months ago #71128
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic K2 User Plugin fails on JomSocial Avatar Change
Hi. We are trying to eliminate all php errors and notices but a quick fix for you would be to set "Error Reporting" to "None" or "Simple". This is highly recommended, especially for production sites.
bunglehaze said:Hi lefteris, that is fine to fix in the meantime but what about the undefined property bug I posted also that is persistant?
leigh
bunglehaze said:Hi lefteris, that is fine to fix in the meantime but what about the undefined property bug I posted also that is persistant?
leigh
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.