Changes between Initial Version and Version 1 of Ticket #13373
- Timestamp:
- 06/25/10 06:15:40 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #13373 – Description
initial v1 2 2 3 3 I am using the following PHP script lines: 4 4 {{{ 5 5 $category_id = get_cat_ID( $row['title'] ); 6 6 // Get the URL of this category 7 7 $category_link = get_category_link( $category_id ); 8 8 $j2wp_post['post_content'] = substr( $j2wp_post['post_content'], 0, $lnk_pos) . 'href="' . $category_link . '" ' . substr( $j2wp_post['post_content'], $post_lnk_end + 1); 9 9 }}} 10 10 they create the subsequent error in the assignment: 11 11 {{{ 12 12 $j2wp_post['post_content'] = 13 13 14 14 Catchable fatal error: Object of class WP_Error could not be converted to string 15 15 }}} 16 16 As there is no error in the assignment and I found a lot of hints for the categories - one of this two fundtions creates this error.
