1

I get the following error when attempting to save an external source using Assets 2.1.3 in EE 2.5.5:

Fatal error: Call to undefined method stdClass::result_array() in 
/home/active/public_html/administrate-am/codeigniter/system/libraries/Javascript.php 
on line 765

Anyone have any idea how to fix this? It looks like it's an issue with generating JSON, but I don't know how to fix it and it's kind of urgent.

PHP 5.3.x, in case it matters.

2
  • Can you shoot some FTP/CP credentials over to [email protected]?
    – Brad Bell
    Commented May 18, 2013 at 23:32
  • @BradBell - Sent!
    – adrienne
    Commented May 18, 2013 at 23:47

1 Answer 1

3

This was a bug in Assets and will be fixed in the next release.

In the meantime, the patch is:

in mcp.assets.php in the save_source() method, line 1000 is:

$data = array(
    'name' => $name,
    'settings' => Assets_helper::get_json((object) $save_data)
);

I changed it to:

$data = array(
    'name' => $name,
    'settings' => Assets_helper::get_json($save_data)
);
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.