Cornerstone image links broken/images disappeared

Images from cornerstone pages suddenly missing and showing up as broken links.

I made sure everything was updated, cleared cache, deactivated all plugins- can’t seem to figure this one out.
Have made no site modifications in ages on this particular site. The issue is present on all devices and browsers I’ve tried.
Is this a new known issue? What am I missing?
HELP?!

Hello @czynda,

Thanks for posting in! Can you please confirm that you have updated to the latest versions?
Our latest versions are:

  • X theme 7.1.2
  • Cornerstone 4.1.2

This latest release contains fixes for several issues so be sure to check out the changelog (http://theme.co/changelog/).

After doing the updates, always remember to clear all caches (if you are using WP Rocket, WP SuperCache or W3 Total Cache) when updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.

If nothing is helping, provide us access to your site so that we can check your settings. Please create a secure note with the following info:
– Link to your site
– WordPress Admin username / password

To know how to create a secure note, please check this out: https://theme.co/apex/forum/t/how-to-get-support/288

Please let us know how it goes.

Yes. Everything is up to date and cache was cleared. Note sent.
Thank you for taking the time to have a look.

Hello @czynda,

Which page you are editing? Can you provide the URL of the page in questioned as well?
By the way, I have check your homepage and I noticed that you inserted this invalid custom JS code:

var js = document.createElement('script'); js.type = 'text/javascript'; js.async = true; js.id = 'AddShoppers';
js.src = ('https:' == document.location.protocol ? 'https://shop.pe/widget/' : 'http://cdn.shop.pe/widget/') + 'widget_async.js#566a281aa387641008189c72';
document.getElementsByTagName("head")[0].appendChild(js);



AddShoppersConversion = {
        order_id: <?php echo $order_id; ?>,
        value: <?php echo $order->get_order_total(); ?>
};
var js = document.createElement('script'); js.type = 'text/javascript'; js.async = true; js.id = 'AddShoppers';
js.src = ('https:' == document.location.protocol ? 'https://shop.pe/widget/' : 'http://cdn.shop.pe/widget/') + 'widget_async.js#566a281aa387641008189c72';
document.getElementsByTagName("head")[0].appendChild(js);

Please keep in mind that <?php echo $order->get_order_total(); ?> is a PHP code and it is incorrect to include this in a custom JS code.

Hope this makes sense.

I did not add this code.
Are you suggesting my X theme site was somehow hacked?
Is there a security risk I should have been aware of but wasn’t?
How do I access this to remove or fix it?
Would this “code” have caused cornerstone (only) to stop displaying images?
Suggestions and feedback appreciated…

Hey @czynda,

We’re glad that your site’s fixed now.

To answer your questions though, we are not suggesting that your site is hacked. If you didn’t add the code, someone working for you might have added it.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.