• Resolved Lewis Tyler

    (@tylerjfrags)


    Hi there, having trouble when trying to add products to Facebook

    I have a screenshot of the fault report here: https://imgur.com/wEi0fuU

    Is this to do with the product URL itself being incorrectly formatted, or the image URLs?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @tylerjfrags

    ​Thanks for the details and screenshot, it’s a great help! I’ll be happy to help out here 🙂

    ​From the screenshot, the URL to the image seems to be the issue here. It looks like the paths start with /app/uploads/… when it needs to have the entire path https://example.com/app/uploads/….

    ​This might be a theme or plugin conflict. Would you be willing to disable all plugins except WooCommerce and Facebook, and use one of the default themes, such as Twenty Twenty? If the problem goes away, enable them one by one to identify the source of your troubles.

    You could do this manually or install and activate “Health Check”: https://wordpress.org/plugins/health-check/

    It will add some additional feature under create a new menu position Tools > Site Health.

    On its troubleshooting tab, you can Enable Troubleshooting Mode. This will disable all plugins, switch to a standard WordPress theme (if available), allow you to turn your plugins on and off and switch between themes, without affecting normal visitors to your site. This allows you to test for various compatibility issues.

    ​There’s a more detailed description about how to use the Health Check plugin and its Troubleshooting Mode at https://make.wordpress.org/support/handbook/appendix/troubleshooting-using-the-health-check/

    ​Thanks!
    Christine

    Thread Starter Lewis Tyler

    (@tylerjfrags)

    Hi Thanks for writing back

    Our website is set up on the Roots Bedrock platform (https://roots.io/bedrock) which installs WP as a subdirectory at https://example.com/wp

    Is it possible that this is the issue? We do have an NGINX redirect for image files that will point to the /wp/ subdirectory, so it seems something else is up here

    Any further insight would be greatly appreciated

    Hey @tylerjfrags

    Thanks for that additional information, it’s a great help. Could you also give me some detail on the trouble you’re having with adding products to Facebook? Are they not being added at all or is only the images missing?

    Based on what we know so far about the issue here, it’s quite possible that the Roots platform, custom code, or a plugin could be altering the image URL; or preventing it from being correctly redirected.

    Another thing you can do is to find out if something is filtering the output of the wp_get_attachment_url() function.

    That’s the function we use to get the image URL, so if something is filtering that, it might cause issues with adding production to Facebook.

    Does this help?

    Thanks!
    Christine

    @tylerjfrags

    It has been a while since we heard from you, so I’m going to mark this topic as resolved. If you’re still experiencing issues please take a look at our documentation for more information and create a new thread if you have further questions.

    Thanks,
    Christine

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘URL incorrectly formatted’ is closed to new replies.