Sackgesicht VIP
Total posts: 1,636
27 Фев 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

Последние изменения: 02 Март 2014


Sergey
Total posts: 13,748
27 Фев 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 Фев 2013 01:04

ok .. solved .. working again


Sergey
Total posts: 13,748
27 Фев 2013 04:50

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

Работает на Cobalt