i got this error when i click the translation dashboard link:

Fatal error: __clone method called on non-object in /home/server/public_html/xxxx/includes/common.inc on line 1768

this is what i found in line 1768:

* Provide a substitute clone() function for PHP4.
*/
function drupal_clone($object) {
return version_compare(phpversion(), '5.0') < 0 ? $object : clone($object);
}

in log entries: i saw this:

Array
(
[0] => Array
(
[file] => /home/xxx/public_html/xxx/sites/all/modules/views/includes/view.inc
[line] => 1813
[function] => drupal_clone
[args] => Array
(
[0] => views_display Object
(
[handler] =>
[display_options] => Array
(
[items_per_page] =>
[offset] =>
[use_pager] =>
[pager] => Array
(
[type] => none
[options] => Array
(
[offset] => 0
)

)

[row_plugin] => node_rss
[row_options] => Array
(
[item_length] => default
)

[path] => taxonomy/term/%/feed
[menu] => Array
(
[type] => none
[title] =>
[weight] => 0
)

[tab_options] => Array
(
[type] => none
[title] =>
[weight] => 0
)

)

[db_table] => views_display
[vid] => 7
[id] => feed_1
[display_title] => Views 1 feed
[display_plugin] => feed
[position] => 4
)

)

)

[1] => Array
(
[file] => /home/xxx/public_html/xxx/sites/all/modules/views/views.module
[line] => 1139
[function] => clone_view
[class] => view
[type] => ->
[object] => view Object
(
[db_table] => views_view
[base_table] => node
[vid] => 7
[description] => A view to emulate Drupal core's handling of taxonomy/term; it also emulates Views 1's handling by having two possible feeds.
[tag] => default
[human_name] => Taxonomy term
[core] => 0
[api_version] =>
[disabled] =>
[built] =>
[executed] =>
[editing] =>
[args] => Array
(
)
and more..............

badly need a solution to this. thanks!

Comments

titouille’s picture

Hello,

after investigating the same error, I found a solution (but not fully tested if this change influence other things) :

on icl_content_calculate_node_md5_and_words function in icl_content.module (line 710 and next) you can cast the $node as object like this :

#line 712
$data = _icl_content_extract_node((object)$node);

and fatal error disappears. Hope this help.