php notice
LOCATION http://www.***.com/statuses/ajax
REFERRER http://www.***.com/about ( The page from where I updated status)

Comments

icecreamyou’s picture

Priority: Normal » Minor

This 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.

icecreamyou’s picture

Status: Active » Closed (cannot reproduce)

I'm not seeing this any more, and #value isn't defined for textareas anyway.

publicmind’s picture

Status: Closed (cannot reproduce) » Active

I 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,

icecreamyou’s picture

Status: Active » Fixed

Committed fix to dev. Or at least, committed something basically equivalent to #3 to dev.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

mathankumarc’s picture

Status: Closed (fixed) » Active

After this commit also I'm getting the same error.

I think unset is causing the problem. Can we use following snippet instead of unset

$new_form['fbss-status']['#value']  =  '';
icecreamyou’s picture

Status: Active » Fixed

Seems to work. Committed fix to dev.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.