• Resolved piam6

    (@piam6)


    The header image cannot be displayed. Instead, the message ‘Image not found or type unknown’ appears. The site was previously hosted on WPEngine, and we recently migrated it to SpinupWP (not sure if that’s relevant). Additionally, there were font display issues, but I resolved them by using ‘Reinstall fonts’ in the Tools section. Could you please assist? Thank you in advance.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Contributor dwpriv

    (@dwpriv)

    Perhaps the path to the header isn’t updated. How are you adding the header?

    Thread Starter piam6

    (@piam6)

    Simply by placing an image in General –> Shop header/logo, it used to display correctly, but now it doesn’t show up at all, not even in the preview.

    Plugin Contributor dwpriv

    (@dwpriv)

    Could you try removing the logo, saving, and then re-add the logo, please?

    Thread Starter piam6

    (@piam6)

    I already did it, and I still have the same problem.

    Plugin Contributor dwpriv

    (@dwpriv)

    Maybe the new server (SpinupWP) does not support PNG/SVG? Could you try with a JPEG image instead of a PNG? Also, you can temporarily activate the “Test mode” when you change the logo. Be sure to deactivate this after your finish your test.

    Thread Starter piam6

    (@piam6)

    The image was already in JPG format. Nevertheless, I used the test mode and tried with another one, and I still have the same problem.

    Plugin Contributor dwpriv

    (@dwpriv)

    You can give the below code snippet a try. It converts the image url to paths:

    /**
     * PDF Invoices & Packing Slips for WooCommerce:
     * Convert image URLs into paths
     */
    add_filter( 'wpo_wcpdf_get_html', 'wpo_wcpdf_convert_urls_to_paths', 10, 2);
    function wpo_wcpdf_convert_urls_to_paths( $html, $document ) {
    	$html = str_replace( trailingslashit(WP_CONTENT_URL), trailingslashit(WP_CONTENT_DIR), $html);
    	return $html;
    }

    If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide:?How to use filters

    Thread Starter piam6

    (@piam6)

    Hi dwpriv, this doesn’t work either. I also removed the plugin completely and installed it again and the issue persists.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @piam6,

    Could you please send a screenshot of your System Configuration, that you will find under WooCommerce?> PDF Invoices?> Advanced?> Status?

    See: Uploading Images to www.remarpro.com

    Thread Starter piam6

    (@piam6)

    Hi Yordan, this is my configuration:
    https://ibb.co/n3rbXPp

    And this is how the document looks instead to show the image:
    https://ibb.co/98cQ2mP

    Regards.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Thanks for sending those screenshots, @piam6:

    Could you please tell me where or how you activated the code snippet that my colleague Delano shared with you above?

    Thread Starter piam6

    (@piam6)

    Yes, I added it with Code Snippets Plugin.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Please note that Code Snippets have two buttons to save your snippets in the editor view: “Save Changes and Activate” and “Save Changes”: You have to click in the first one.

    Could you double-check that if the code snippet is activated indeed?

    Thread Starter piam6

    (@piam6)

    Yes, is activated, pls look:
    https://ibb.co/SxshFsP
    https://ibb.co/CzXcCq7

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Thanks for check that,?@piam6:

    Let’s try looking at the HTML output source to see the code and try to understand what is happening. To do it, just add &output=html at the end of the URL from a generated invoice, then Right-click > Save as…, and save it as HTML.

    You can use https://www.file.io/ to upload the file and share the file URL here (this service deletes the file after downloading, so please do not try to test the upload yourself!).

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘The header image is not visible’ is closed to new replies.