• Hello, I updated my WordPress and a lot of images are not showing anymore. Seems to be an issue with the way the plugin connects the image IDs with the source. Is there any update or anything I can do to fix this?

    Issues displayed:

    Notice: Undefined index: ID in /home/…/public_html/content/themes/wp-bootstrap-starter-child/single-work.php on line 14

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    Could you please provide your Site Health information to help us determine what might be causing this problem? To get that, you can go to your WordPress dashboard area and go to: Tools > Site Health > Info, then Press the “Copy site info to clipboard” button, and paste the results here.

    Plugin Support pdclark

    (@pdclark)

    The error says that on line 14 of content/themes/wp-bootstrap-starter-child/single-work.php, a variable which was expected to be an array containing an ID did not contain any value for the key ID.

    In that file on that line, there will likely be some variable written like $variable_name['ID']

    For whatever $variable_name is, likely $post or similar, one should then consider where the values for that variable came from in previous lines.

    There may also be formatting / santization issues causing problems on the site, as this content on the linked page is outputting < and > using &lt; and &gt;, causing the HTML to not work as intended. This usually happen when an admin user puts HTML into a field intended text content, where the input field has been set to not accept HTML tags.

    <p class="client-desc">International Federation of Red Cross and Red Crescent Societies (IFRC)

    &lt;a href="http://go.ifrc.org" target="_blank" rel="noopener"&gt;http://go.ifrc.org&lt;/a&gt;</p>
    Thread Starter muskatik19

    (@muskatik19)

    Hello and thank you for your replies!

    @sc0ttkclark I am not sure how to copy over the site health, but I have a screenshot. Is this useful?
    https://drive.google.com/file/d/1q2TMyJPWeY9XU-uog9taVQc28Q4FCzik/view?usp=sharing

    @pdclark to be honest, I’m not sure what that means. I did alter the code on the single-work.php with the help of chatGPT to remove all the errors from display so that the site doesn’t look as bad, but other than that I haven’t touched anything manually after the update of the WordPress version and the plugin. And that alterations I did after the site broke. Here is a screenshot of what the page looked like after the WP update and without any changes from my side.
    https://drive.google.com/file/d/1pzXZ_WxvthHYgy13hEn8i3REMUoVtEFv/view?usp=sharing

    I understand this has something to do with the ID. The thumbnails of the images in respective plugin fields (e.g. Case Study Background Image) are visible, meaning the images are somehow recognized in their locations, but are not returned.

    Thank you!

    Plugin Support pdclark

    (@pdclark)

    For the relevant Site Health information, click the Info tab at the top of your screenshot, then Copy site info to clipboard for the additional information related to plugins, themes, media, and database.

    For additional details on why the template might not be displaying a screenshot, the text contents of single-work.php is necessary rather than the result of the screen. The critical lines to look at are how the images are being rendered, whether the HTML is valid, if image URLs are outputting in the <img> tags, and if not, whether the referenced images exist in the WordPress Media Library.

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

You must be logged in to reply to this topic.