Closed bobbingwide closed 8 years ago
When re-cloning an attachment the following notice is produced:
Notice: Array to string conversion in C:\apache\htdocs\wordpress\wp-content\plugins\oik-clone\admin\class-oik-clone-post-file.php on line xxx
This is due to the post_meta data already containing information about the target post and the time that the cloning was last performed.
e.g.
[0] => (string) "target" [1] => Array [id] => (integer) 10583 [cloned] => (integer) 1442924512
Example callback trace shows the problem in oik_clone_update_slave_multipart()
0. bw_lazy_backtrace C:\apache\htdocs\wordpress\wp-content\plugins\oik\libs\bwtrace.php:108 0 1. bw_backtrace C:\apache\htdocs\wordpress\wp-content\plugins\oik-bwtrace\includes\bwtrace-actions.php:225 0 2. bw_trace_error_handler(8,Array to string conversion,C:\apache\htdocs\wordpress\wp-content\plugins\oik-clone\admin\class-oik-clone-post-file.php,199,array) C:\apache\htdocs\wordpress\wp-content\plugins\oik-clone\admin\class-oik-clone-post-file.php:199 5 3. attach_var(target,array) C:\apache\htdocs\wordpress\wp-content\plugins\oik-clone\admin\class-oik-clone-post-file.php:174 2 4. attach_body C:\apache\htdocs\wordpress\wp-content\plugins\oik-clone\admin\class-oik-clone-post-file.php:242 0 5. post(http://qw/oikcouk/wp-admin/admin-ajax.php,array,oik-bwtrace-banner-772x250.jpg,image/jpeg) C:\apache\htdocs\wordpress\wp-content\plugins\oik-clone\admin\oik-clone-post-file.php:90 4 6. bw_remote_post_file(http://qw/oikcouk/wp-admin/admin-ajax.php,array,oik-bwtrace-banner-772x250.jpg,image/jpeg) C:\apache\htdocs\wordpress\wp-content\plugins\oik-clone\admin\oik-save-post.php:378 4 7. oik_clone_update_slave_multipart(4961,{"ID":4961,"post_author":"1","post_date":"2012-10-30 10:48:32","post_date_gmt":"2012-10-30 10:48:32","post_content":"","post_title":"oik-bwtrace b 8. oik_clone_update_slave 9. oik_clone_clone(4961,,array) C:\apache\htdocs\wordpress\wp-content\plugins\oik-clone\admin\class-oik-clone-tree-node.php:257 3 10. cloneme C:\apache\htdocs\wordpress\wp-content\plugins\oik-clone\admin\class-oik-clone-tree.php:371 0 11. clone_these(array) C:\apache\htdocs\wordpress\wp-content\plugins\oik-clone\shortcodes\oik-clone.php:65 1 12. oik_clone_maybe_perform_clones(296,array) C:\apache\htdocs\wordpress\wp-content\plugins\oik-clone\shortcodes\oik-clone.php:128 2 13. oik_clone(array,,clone) C:\apache\htdocs\wordpress\wp-content\plugins\oik\oik-add-shortcodes.php:205 3 ...
When re-cloning an attachment the following notice is produced:
Notice: Array to string conversion in C:\apache\htdocs\wordpress\wp-content\plugins\oik-clone\admin\class-oik-clone-post-file.php on line xxx
This is due to the post_meta data already containing information about the target post and the time that the cloning was last performed.
e.g.
Example callback trace shows the problem in oik_clone_update_slave_multipart()