• Resolved x06designs

    (@x06designs)


    After changing my domain name I get a few errors:

    Warning: copy() expects parameter 1 to be a valid path, object given in /htdocs/wordpress-2021/wp-content/plugins/host-webfonts-local/includes/class-download.php on line 68
    
    Warning: Cannot modify header information - headers already sent by (output started at /htdocs/wordpress-2021/wp-content/plugins/host-webfonts-local/includes/class-download.php:68) in /htdocs/wordpress-2021/wp-admin/includes/misc.php on line 1310
    
    Warning: Cannot modify header information - headers already sent by (output started at /htdocs/wordpress-2021/wp-content/plugins/host-webfonts-local/includes/class-download.php:68) in /htdocs/handsonmetrology/wp-admin/admin-header.php on line 9

    I tried to delete the cache and the previously downloaded fonts, but these errors show up again and again. Any suggestions what I could do?

Viewing 1 replies (of 1 total)
  • Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Hi!

    I’m sorry, I didn’t receive a notification of your issue.

    I think you’re having permission issues with your folders.

    The line (68) the error is referring to is attempting to copy a file, to a directory. The directory’s path is generated using WordPress’ own download_url() function, which returns a WP_Error (an object) in a few cases:

    – If the path is not specified (and I’m pretty certain it is)
    – If the temporary file couldn’t be created (which might be caused by a permissions issue)
    – If the download failed (which could be a firewall issue)

    I hope this helps. Let me know if you need anything else!

Viewing 1 replies (of 1 total)
  • The topic ‘Errors after switching domain name – headers already sent’ is closed to new replies.