Sackgesicht VIP
Total posts: 1,636
27 Feb 2013 00:02

When changing the sort order (Sort by - Time created), i received an error message:

Fatal error: Cannot unset string offsets in components/com_cobalt/library/php/fields/cobaltupload.php on line 32

Last Modified: 02 Mar 2014


Sergey
Total posts: 13,748
27 Feb 2013 00:38

can you try to add

settype($this->value, 'array');

after line 28 in components/com_cobalt/library/php/fields/cobaltupload.php and see if error still exists.

The code should look like this

$this->subscriptions = array();

settype($this->value, 'array');

if(isset($this->value['subscriptions']) && !empty($this->value['subscriptions']))

{

$this->subscriptions = $this->value['subscriptions'];

unset($this->value['subscriptions']);

}


Sackgesicht VIP
Total posts: 1,636
27 Feb 2013 01:04

ok .. solved .. working again


Sergey
Total posts: 13,748
27 Feb 2013 04:50

Good. because I did not know if it will fix. I could not reproduce it.

Powered by Cobalt