Fatal error: Cannot create references to/from string offsets nor overloaded objects in ocupload.inc on line 583

Getting this WSOD error when trying to upload an image into a user profile signature.

Comments

gbyte’s picture

Status: Active » Needs review
StatusFileSize
new428 bytes

Apparently the signature field stores its value differently to regular fields, this might be due to it not being translatable. Fixed it by adding a simple isset check - see attached patch.

gbyte’s picture

Priority: Normal » Major
Issue summary: View changes

Newest dev still has the issue and this patch still applies. I know it is not that common of a scenario to upload files into a signature field, but could someone just test this scenario and verfiry the bug / apply patch to change this issue to RTBC? White screen of death is not acceptable, hence changing to major.

xandeadx’s picture

It is necessary to find out why there is a mistake, and not to hide it

gbyte’s picture

I already found out mate, the signature field is no standard drupal text field and stored its value differently in $form_state['values']. Why would you assume this patch hides anything? Ocupload wokrs perfectly with the signature field after applying the patch.

xandeadx’s picture

Need to find prime cause

gbyte’s picture

Not sure what you mean, prime cause seems to me core signature functionality which by design stores its value differently. Please correct me if I'm mistaken.

xandeadx’s picture

How to reproduce error?

gbyte’s picture

  • Enable signatures in user settings
  • give users permission to use ckeditor and ocupload
  • upload something into signature field on user account edit page with ocupload
  • save user entity by clicking save.
  • => WSOD with that error.

Error happens in _ocupload_field_value_by_html_name() which is called in ocupload_change_files_status() which is a submission handler called when submitting user account form.

  • xandeadx committed e4f6861 on
    Issue #2534126 by gbyte.co: Fatal error after form submit
    
xandeadx’s picture

Status: Needs review » Fixed

fixed

Status: Fixed » Closed (fixed)

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