• Resolved Bactéria

    (@zimaldo)


    I get the error when copy the media:
    Catchable fatal error: Object of class WP_Error could not be converted to string in /home/quant724/public_html/www.ayrson.com/wp-content/plugins/lh-copy-media-file/lh-copy-media-file.php on line 73

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author shawfactor

    (@shawfactor)

    Okay well I will change the code so a readable error message is returned to the screen.

    But copying the file won’t occur as you must have some problem with your install. This is the offending line:

    $url = wp_get_attachment_url($post_id);

    If the post id passed is an attachment then it should not return an error, obviously it could if a non attachment I’d was passed but that should not be happening.

    It is likely another plugin causing this issue. Have you tried disabling them to identify the culprit?

    Plugin Author shawfactor

    (@shawfactor)

    Actually scrub that I was looking at the wrong line, I’ll need to look at this further I think, and then we might need to drill down.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘I get Catchable fatal error’ is closed to new replies.