• Resolved sergiomf

    (@sergiomf)


    hello all,

    I have been trying to use AirPress on a new wiki-like website that I am putting together with some students, and I have managed to get the necessary virtual fields working, except for the images. I am rather confident that the combination of shortcode that I am using is working, but instead of loading the image from the appropriate record, it just shows me the broken image logo…

    I am really at a loss here, but I suspect that the issue must be related to some sort of permissions from AirTable, since while the link to the image works perfectly fine on my browser (https://dl.airtable.com/ypC6h0zsRWia4D6Kx5m5_common-ground.jpg), WP says that the image cannot be embedded…

    I have tried to use the same shortcode construction to point at another image hosted online, and that is loaded without issue

    I have watched the introduction video quite a few times, but I still cant figure out what I am doing wrong, so I am starting to consider to host the images somewhere else and add their links to an airtable column…

    Has anyone else come across this issue? any help would be much appreciated…

    Looking forward to hearing from you.
    Best,

    Sergio MF

    PS: The website hasnt been launched yet, so I can’t post a link
    PPS: really enjoy the plugin and I find it to be really useful (even for someone with very limited knowledge of coding)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Chester McLaughlin

    (@chetmac)

    Can you view the HTML (page source) of the page and post either a screencapture or copy/paste the source of image that isn’t loading?

    Something like:

    <img src="https://dl.airtable.com/ypC6h0zsRWia4D6Kx5m5_common-ground.jpg">

    Also, if you’re able to posts screenshot of the backend admin/editor (shortcode?) that is generating the image that would be helpful also.

    My gut says that you’re using a Airpress shortcode inside another shortcode (or page editor) that doesn’t actually render the short code. “Nested” shortcodes don’t work unless specifically coded to do so by the plugin author. So if you wrap a Airpress shortcode inside another shortcode that doesn’t support nesting, it simply won’t be executed.

    Thread Starter sergiomf

    (@sergiomf)

    thanks for the quick response Chester.

    I am really a newbie on all this, so bear with me…

    backend
    https://www.dropbox.com/s/e1te95ba9m9710u/2018-10-18%20%281%29.png?dl=0

    result
    https://www.dropbox.com/s/0pjdsom4xreyxxk/2018-10-18%20%282%29.png?dl=0

    the piece of the page source:

    [code language="css"]

    div class="ast-post-format- ast-no-thumb single-layout-1"&gt;

    &lt;header class="entry-header ast-no-thumbnail"&gt;

    &lt;div class="ast-single-post-order"&gt;
    &lt;h1 class="entry-title" itemprop="headline"&gt;Common Ground&lt;/h1&gt;&lt;div class="entry-meta"&gt;&lt;span class="cat-links"&gt;<a href="https://biennalewiki.org/?cat=3&quot; rel="category">biennale edition</a>&lt;/span&gt;&lt;/div&gt; &lt;/div&gt;

    &lt;/header&gt;&lt;!-- .entry-header --&gt;

    &lt;div class="entry-content clear" itemprop="text"&gt;

    <img src="https://dl.airtable.com/ypC6h0zsRWia4D6Kx5m5_common-ground.jpg&quot; />
    &lt;p&gt;&nbsp;&lt;/p&gt;
    &lt;div class="content-column one_fourth"&gt;&lt;div style="padding-left:10%;"&gt;&lt;p&gt;&lt;!-- /wp:shortcode --&gt;&lt;!-- wp:separator --&gt;&lt;/p&gt;
    &lt;hr class="wp-block-separator"&gt;
    &lt;p&gt;&lt;!-- /wp:separator --&gt;&lt;!-- wp:paragraph --&gt;&lt;/p&gt;
    &lt;p&gt;<strong>date: </strong>2012-08-29 to 2012-11-25&nbsp; (88 days)&lt;/p&gt;
    &lt;p&gt;&lt;!-- /wp:paragraph --&gt;&lt;!-- wp:paragraph --&gt;&lt;/p&gt;
    &lt;p&gt;<strong>curator:</strong> <a href="https://biennalewiki.org/?encyclopedia=david-chipperfield&quot; target="_self" title="something just to test connections. He was the curator of Common Ground in 2012" rel="noopener noreferrer">David Chipperfield</a> (<strong>occupation</strong>)&lt;/p&gt;
    &lt;p&gt;<strong>participants in main exhibition:</strong> 68&lt;/p&gt;
    &lt;p&gt;<strong>national pavilions:</strong>&nbsp; 54&lt;/p&gt;
    &lt;p&gt;&lt;!-- /wp:paragraph --&gt;&lt;!-- wp:paragraph --&gt;&lt;/p&gt;
    &lt;p&gt;<strong>number of visitors:</strong> 178000&lt;/p&gt;
    &lt;p&gt;&lt;!-- /wp:paragraph --&gt;&lt;!-- wp:paragraph --&gt;&lt;/p&gt;
    &lt;p&gt;<strong>awards:</strong>&lt;/p&gt;
    &lt;p&gt;&lt;!-- /wp:paragraph --&gt;&lt;!-- wp:paragraph --&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
    &lt;div class="content-column three_fourth"&gt;&lt;div style="padding-left:10%;"&gt;&lt;p&gt;&lt;!-- /wp:paragraph --&gt;&lt;!-- wp:shortcode --&gt;&lt;!-- /wp:shortcode --&gt;&lt;!-- wp:separator --&gt;&lt;/p&gt;
    &lt;hr class="wp-block-separator"&gt;
    &lt;p&gt;&lt;!-- /wp:separator --&gt;&lt;!-- wp:paragraph --&gt;&lt;/p&gt;

    [/code]

    I am using the classic editor, but on another plugin, “Encyclopedia Lite,” (which creates custom posts for automatic cross-linking between the posts for our wiki), but I have also tried it with WP regular classic editor and the result is the same…

    Thanks again for your help

    • This reply was modified 6 years, 4 months ago by sergiomf.
    Plugin Author Chester McLaughlin

    (@chetmac)

    I don’t see anything strange at a glance…

    And the image does appear to load here on the forum, so I don’t know why it wouldn’t load on your site—unless you had some javascript that was attempting to do lazy-loading or something.

    Thread Starter sergiomf

    (@sergiomf)

    OK, thanks. I appreciate you taking the time to take a look.

    I will check if there is something like that at work, but I did not install any plugin for that… I just kept the original bluehost wp install.

    The strange thing is that when I tried a plugin to import the images from the airtable links into WP media gallery, the same happened..

    something gets into the media gallery, but this is how it looks
    https://www.dropbox.com/s/kr2a8qj4kkdkl93/2018-10-18%20%283%29.png?dl=0

    and this is how the upload looks:
    https://www.dropbox.com/s/j8b9c3j5n81n3fw/2018-10-18%20%284%29.png?dl=0

    so, it says that the file was uploaded successfully, but it is only 1 byte… and even stranger is that when I click “view”, it actually shows me the image

    That is why I thought that the issue could be from AirTable’s end…

    do you have any other suggestions where I should look for the problem?

    Thanks again for your help.

    PS: Even if I dont get the images to work, I am still going to use Airpress to populate all the text on the website…

    • This reply was modified 6 years, 4 months ago by sergiomf.
    Plugin Author Chester McLaughlin

    (@chetmac)

    I’m going to mark this as resolved as it does not appear to have anything to do with the Airpress plugin. It must be something at the server level between your host and Airtable.

    Could be some security certificate issue with whatever PHP is using to download the remote image… but that seems unlikely as a regular img src wasn’t working either. You could always try the import plugin again using https instead of https. If that works you can talk to your host about the issue.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘images don’t load from Airtable’ is closed to new replies.