WordPress.org

Ready to get started?Download WordPress

Forums

taxonomy.php on line 1014 error on file upload (16 posts)

  1. oktiv
    Member
    Posted 6 years ago #

    seems like taxonomy.php is causing alot of havok these days.
    i'm trying to upload a pdf or word document to attach to a post and i get: Fatal error: Cannot use object of type WP_Error as array in
    "serverpath"/wp-includes/taxonomy.php on line 1014

  2. 21andy
    Member
    Posted 6 years ago #

    same bug when I publish a post.
    Fatal error: Cannot use object of type WP_Error as array in wordpress/wp-includes/taxonomy.php on line 1014

    see the code here http://www.21andy.com/blog/20080217/957.html

  3. 21andy
    Member
    Posted 6 years ago #

    by the way , my wordpress version is 2.3.3

  4. 21andy
    Member
    Posted 6 years ago #

    and I write some code on 1013 to get the $id value, when it has error.
    this is the $id value on 1013 line:

    WP_Error Object
    (
        [errors] => Array
            (
                [invalid_term_id] => Array
                    (
                        [0] => Invalid term ID
                    ) 
    
            ) 
    
        [error_data] => Array
            (
            ) 
    
    )
  5. shellie
    Member
    Posted 6 years ago #

    21andy, i'm having the same problem as with getting the taxonomy error on line 1014 when editing or posting.

    have you or anyone find a fix or why this is happening? i installed a whole new wordpress so i didn't upgrade or anything.

    any help at all would be greatly appreciate.

    thanks.

  6. Tailspin
    Member
    Posted 6 years ago #

    Add one to the 'me too' counter.

    Trying to upload a JPEG image produces this error.

  7. stonpy
    Member
    Posted 6 years ago #

    Yes Im having the same problem with posting comments.

    Tailspin what does "Add one to the "me too" counter" mean?
    is this the solution?

    if not can anybody help me fix this problem?

  8. jwkep
    Member
    Posted 6 years ago #

    I posted this solution at:

    http://wordpress.org/support/topic/139976?replies=12

    but the error seems to be the same (error on line 1014, taxonomy.php) so I thought I'd post it here. Seeing that I had a different problem I don't know if this will help you guys, but you might as well try and get back to everyone on this subject. Here is what I wrote:

    I am no PHP expert but this seems to have worked and everything is operating as it should. I commented out lines 1012 to 1016 in the taxonomy.php (in the file path listed on the error page) file as follows:

    /* if ( !$id = is_term($term, $taxonomy) )
    $id = wp_insert_term($term, $taxonomy);
    $term_ids[] = $id['term_id'];
    $id = $id['term_taxonomy_id'];
    $tt_ids[] = $id; */

    I don't get the error and the page is posted as it should be. I commented it out instead of deleting it just in case there a problems later.

  9. Tailspin
    Member
    Posted 6 years ago #

    stonpy: I meant add one to the list of people who have this problem.

    My problem solved itself, oddly. It might have had something to do with e-commerce, but I can't prove it one way of the other except to say that I have it disabled at the moment and don't have the problem.

  10. elizabethrichardson
    Member
    Posted 6 years ago #

    Hello jwkep...your solution has worked for me as well - unbelievable! Thank you.
    Elizabeth

  11. jonthekingdon
    Member
    Posted 6 years ago #

    jwkep's process worked for me too.

  12. cybermatic
    Member
    Posted 6 years ago #

    This worked for me, but now I can't successfully add a post to a category. Everything posted is automatically added to Uncategorised and is unable to be changed.

  13. cybermatic
    Member
    Posted 6 years ago #

    Tailspin:

    It might have had something to do with e-commerce, but I can't prove it one way of the other except to say that I have it disabled at the moment and don't have the problem.

    This also solved my problem. I also deactivated e-commerce and removed the comments from code and everything is working as normal again. I can add posts to categories again as well.

  14. tydende
    Member
    Posted 6 years ago #

    I got rid of w e-commerce (since this seems to be what created the taxonomy.php problem), but my problem hasn't gone away.

    I edited out the code (as mentioned above), and this allows me to create new posts. However, it doesn't allow me to add posts to categories, SO every time I create a post I upload one taxonomy file, and then after it's saved i upload the original taxonomy file and assign the post to a category.

    Not very efficient with 10 people posting. Can anyone help before we ditch wordpress?

    Thanks!

  15. rhino_wnam
    Member
    Posted 6 years ago #

    thank jwkep

  16. tydende
    Member
    Posted 6 years ago #

    has anybody found a solution other than jwkep's?

    i tried that, removed wp-ecommerce, etc, and still have the same problems categorizing posts, AND it now is affecting comments on the site. when people post comments about postings they get the same WP_Error as array in
    "serverpath"/wp-includes/taxonomy.php on line 1014

    has anybody else had this problem?

    still looking for a real solution. any tips greatly appreciated.

    thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic