• 1. The attribute image.width has an invalid value.

    2. A value for the url field is required.

    This is the code:

    <script type="application/ld+json">{"@context":"http:\/\/schema.org","@type":"BlogPosting","mainEntityOfPage":"http:\/\/www.loftconversionsnorth.co.uk\/our-guarantee\/","publisher":{"@type":"Organization","name":"Loft Conversions North","logo":{"@type":"ImageObject","url":"http:\/\/www.loftconversionsnorth.co.uk\/wp-content\/uploads\/2016\/10\/loft-conversions-logo.png","height":36,"width":190}},"headline":"Our Guarantee","datePublished":"2015-12-15T19:46:10+00:00","dateModified":"2016-03-08T21:52:40+00:00","author":{"@type":"Person","name":"loftc"},"image":{"@type":"ImageObject","url":"","height":0,"width":0}}</script>

    Error showing up for all my sites pages. How do I fix it?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Hi @atomicdev

    From what I see, you don’t have a default Image setup.

    The Page needs an image from structured data, so if you have a featured image setup then it will automatically use the image for the validation. but what if there is no feature image? that’s the reason why we created an option which is like the default image for the structured data.

    To solve this, Go to Dashboard > AMP Settings Page > Structured Data > Upload the image from “Default Post Image” (NOTE: you will have these options if you are on the latest version of the plugin) – Please see this screenshot for help: https://take.ms/0K5T7

    I am sure after adding the image, all of these structured data related errors will go away.

    I hope it helps,

    Regards,
    Ahmed

    Thread Starter atomicdev

    (@atomicdev)

    I will give it a go and update this post when the pages are re-indexed. Thanks for your prompt and helpful reply.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    @atomicdev
    Keep us posted.

    Thread Starter atomicdev

    (@atomicdev)

    Hi,

    All my pages have been re-indexed and a lot of errors have gone which is great. Now only these remain:

    1. Details:	
    	The tag 'amp-form extension .js script' is missing or incorrect, but required by 'input'.
    	The tag 'amp-form extension .js script' is missing or incorrect, but required by 'label'.
    AMP URL:	
    https://www.loftconversionsnorth.co.uk/amp/
    Canonical URL:	
    https://www.loftconversionsnorth.co.uk/
    Last detected:	10/17/16
    2. Details:	
    	The mandatory tag 'meta charset=utf-8' is missing or incorrect.
    	The mandatory tag 'amphtml engine v0.js script' is missing or incorrect.
    	The mandatory tag 'meta name=viewport' is missing or incorrect.
    	The mandatory tag 'noscript > style[amp-boilerplate]' is missing or incorrect.
    	The mandatory tag 'html ? for top-level html' is missing or incorrect.
    AMP URL:	
    https://www.loftconversionsnorth.co.uk/amp/
    Canonical URL:	
    https://www.loftconversionsnorth.co.uk/
    Last detected:	10/17/16
    3. Details:	
    	The tag 'script' is disallowed except in specific forms.
    AMP URL:	
    https://www.loftconversionsnorth.co.uk/amp/
    Canonical URL:	
    https://www.loftconversionsnorth.co.uk/
    Last detected:	10/17/16
    4. Details:	
    	The attribute 'href' in tag 'link rel=stylesheet for fonts' is set to the invalid value 'https://www.loftconversionsnorth.co.uk/wp-content/plugins/bwp-minify/min/?f=wp-content/plugins/contact-form-7/includes/css/styles.css,wp-content/plugins/facebook-stream/css/facebook_stream.css,wp-content/plugins/facebook-stream/css/colorbox.css,wp-content/plugins/photo-gallery/css/bwg_frontend.css,wp-content/plugins/photo-gallery/css/sumoselect.css,wp-content/plugins/photo-gallery/css/font-awesome/font-awesome.css,wp-content/plugins/photo-gallery/css/jquery.mCustomScrollbar.css,wp-content/plugins/revslider/rs-plugin/css/settings.css,wp-content/themes/loft-conversions-north/css/fontello/css/fontello.css,wp-content/themes/loft-conversions-north-child/style.css'.
    	The attribute 'href' in tag 'link rel=stylesheet for fonts' is set to the invalid value 'https://www.loftconversionsnorth.co.uk/wp-content/plugins/bwp-minify/min/?f=wp-content/themes/loft-conversions-north/fw/shortcodes/shortcodes.css,wp-content/themes/loft-conversions-north/fw/css/core.animation.css,wp-content/themes/loft-conversions-north/skins/globalbuild/skin.css,wp-content/themes/loft-conversions-north/fw/css/custom-style.css,wp-content/themes/loft-conversions-north/css/responsive.css,wp-content/themes/loft-conversions-north/skins/globalbuild/skin-responsive.css,wp-includes/js/mediaelement/mediaelementplayer.min.css,wp-includes/js/mediaelement/wp-mediaelement.min.css,wp-content/plugins/js_composer/assets/css/js_composer.min.css'.
    	The attribute 'href' in tag 'link rel=stylesheet for fonts' is set to the invalid value 'https://fonts.googleapis.com/css?family=Source+Sans+Pro:100,100italic,300,300italic,400,400italic,700,700italic&subset=latin,latin-ext,cyrillic,cyrillic-ext'.
    	The attribute 'href' in tag 'link rel=stylesheet for fonts' is set to the invalid value 'https://fonts.googleapis.com/css?family=Lato:100,100italic,300,300italic,400,400italic,700,700italic&subset=latin,latin-ext,cyrillic,cyrillic-ext'.
    	The attribute 'href' in tag 'link rel=stylesheet for fonts' is set to the invalid value 'https://fonts.googleapis.com/css?family=Signika:100,100italic,300,300italic,400,400italic,700,700italic&subset=latin,latin-ext,cyrillic,cyrillic-ext'.
    AMP URL:	
    https://www.loftconversionsnorth.co.uk/amp/
    Canonical URL:	
    https://www.loftconversionsnorth.co.uk/
    Last detected:	10/17/16

    Please can you help, many thanks

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Hey @atomicdev

    I have just checked it with the Validator and the only error I see in validator is “Invalid URL protocol ‘http:’ for attribute ‘src’ in tag ‘img’.”

    Which version of the plugin do you have?

    Regards,
    Ahmed

    Thread Starter atomicdev

    (@atomicdev)

    Hi, I had the previous version to the one I just installed: version is: 0.8.6.1

    But, I have had to disable the plug-in via FTP as got this error after updating to version above:

    Parse error: syntax error, unexpected T_FUNCTION in /home/wwwloftconversio/public_html/wp-content/plugins/accelerated-mobile-pages/templates/features.php on line 647

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Invalid structured data element’ is closed to new replies.