• Resolved Pewit

    (@pewit)


    I have just installed the latest version of Yoast SEO and have a similar issue to this topic

    You cannot enter the Image URL directly, only by selecting from the media library (or adding a new image to the library).

    The URL automatically entered is in the Yoast SEO field is relative
    /wp-content/uploads/2020/07/logo.png

    This generates an error /wp-content/uploads/2020/07/logo.png does not seem to be a valid URL. Please correct.

    It makes no difference to what type of image you link to.

    WordPress 5.4.2
    Yoast SEO Version 14.5
    Chrome Version 83.0.4103.116 (Official Build) (64-bit)
    Windows 10 Pro 64-bit

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support devnihil

    (@devnihil)

    @pewit The issue you are experiencing may be due to the WP_CONTENT_URL being defined in a relative fashion instead of absolute.

    I was able to replicate the issue with the image path only showing the relative path by first defining WP_CONTENT_URL on a test site to a relative path in wp-config.php, such as in the following example :

    define( 'WP_CONTENT_URL', '/wp-content');

    To resolve this, we would recommend checking on your own site whether WP_CONTENT_URL is defined as an absolute link.

    Thread Starter Pewit

    (@pewit)

    I have also tried importing exporting a settings file and then adding the absolute link and importing it but with no result.

    Is this a deliberate error in the free version?

    Hi @pewit

    We would not expect this to be an error with Yoast. We would like some more information.

    1. Can you please review the wp-config.php file in your WordPress installation folder for something like

    define(‘WP_CONTENT_URL’, ‘/somedir’);

    You may need to comment it out or make changes to that such as providing the full URL. If you are not sure how to do that, please contact your host provider they can help.

    2. Can you confirm you are using the most recent Yoast SEO, v14.5? If you update, does the issue resolve?

    3. Can you confirm you are using WordPress 5.4.2? You can check by clicking on the W in the top left and selecting About. If you need to update, please check with your host provider. Please know that if you are using an older version of WordPress Core you may experience unexpected behavior with Yoast. This guide explains more: https://yoast.com/why-we-dont-support-old-wordpress-versions/.

    4. Are all your non-Yoast plugins and themes also updated?

    Thread Starter Pewit

    (@pewit)

    1. There is no statement “define(‘WP_CONTENT_URL’, ‘/somedir’);” in the wp-config.php file
    2. I am using the latest Yoast version as stated above
    3. I am using WP 5.4.2 as stated above
    4. All other plugins and themes are updated

    • This reply was modified 4 years, 3 months ago by Pewit.

    Hmmm.

    It is expected behavior that you can only enter a URL from the media library. BUT it should output the full URL pathway and you should not be getting errors.

    That sounds like a plugin or theme conflict. Please Check for conflicts. Please use the HealthCheck plugin to disable all your non-Yoast plugins and switch to a standard theme like 2020. Doing so will not affect how visitors see your site.

    If you didn’t find any conflicts, we think the issue is specific to your site. We’d need to investigate further but are unable to do so on these forums. You can purchase Yoast SEO Premium and receive our Premium email support and we can help you further.

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Relative URL adding Organization logo causes error’ is closed to new replies.