Closed (fixed)
Project:
Statuses (Social Microblog)
Version:
7.x-1.x-dev
Component:
Code (API)
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Aug 2011 at 03:52 UTC
Updated:
29 Mar 2012 at 03:50 UTC
php notice
LOCATION http://www.***.com/statuses/ajax
REFERRER http://www.***.com/about ( The page from where I updated status)
Comments
Comment #1
icecreamyou commentedThis looks like a core bug: #1189584: theme_textarea() expects $element['#value'] to be set
Form elements of type textarea actually don't take a #value according to the documentation -- presumably it gets set internally, and I don't know what effect giving it an explicit value in the definition could have on that process. Could you test just adding
'#value' => '',to the definition of$$form['fbss-status']in statuses.form.inc? That's probably the best workaround until that core patch goes in.Comment #2
icecreamyou commentedI'm not seeing this any more, and #value isn't defined for textareas anyway.
Comment #3
publicmind commentedI am opening this issue as it is somehow blocking the 'photo' attachments through the 'fbsmp'. I haven't gone deep inside the reasons but this seems to fix it:
file: statuses.form.inc, function: statuses_save_js
Replace
unset($new_form['fbss-status']['#value']);with
$new_form['fbss-status']['#value'] = '';Do you see any side effects?
Regards,
Comment #4
icecreamyou commentedCommitted fix to dev. Or at least, committed something basically equivalent to #3 to dev.
Comment #6
mathankumarc commentedAfter this commit also I'm getting the same error.
I think unset is causing the problem. Can we use following snippet instead of unset
Comment #7
icecreamyou commentedSeems to work. Committed fix to dev.