[bd] Cache 1.2.3

Faster and faster.

  1. af123

    af123 New Member

    Since installing the addon I'm getting lots of file not found errors in my log for the amp logo. Looks like the path is not anchored. It definitely is on this forum so I wonder what's wrong with me installation.

    2016/12/06 15:13:29 [error] 21687#1: *339124 open() ".../forum/threads/no-signal-or-weak-signal-message.2311/styles/default/bdCache/amp_logo.png" failed (2: No such file or directory), client: xx.xx.xx.xx, server: hummy.tv, request: "GET /forum/threads/no-signal-or-weak-signal-message.2311/styles/default/bdCache/amp_logo.png HTTP/1.1", host: "hummy.tv"
    Anyone have any ideas?

    Last edited: Dec 6, 2016
  2. ehsan

    ehsan New Member

    Just upload a logo here:

    Or you may change it to your current logo in "bdcache_amp_header" template.
  3. ehsan

    ehsan New Member

    @xfrocks can you help me on this?
  4. xfrocks

    xfrocks XenForo rocks! Staff Member

    That variable is not available, I think you can check for "{$bdCache_isAmp}" instead.
    ehsan likes this.
  5. ehsan

    ehsan New Member

    Would you please make an example of that. for usage inside a template and remove some content from amp pages (for amp verification)
  6. xfrocks

    xfrocks XenForo rocks! Staff Member

    In another add-on of mine which render social buttons, it checks for amp mode and switch to use amp-social-share tag, something like this:

    <xen:if is="{$bdCache_isAmp}">
        <amp-social-share type="facebook" data-url="{$url}" data-attribution="{$xenOptions.facebookAppId}">
  7. MFTeam

    MFTeam New Member

    After install i have to change anything in cloudflare?

    I have some option to test if everything is installed ok?
  8. MFTeam

    MFTeam New Member

    After install i have to change anything in cloudflare?

    I have some option to test if everything is installed ok?
    Hi have the same problem.
    In that folder have a logo amp_logo.png, but the problem is path directory after i make a test show the path is wrong.

    After i submit this to the https://tools.pingdom.com

    Give-me one error :
    The following requests are returning 404/410 responses. Either fix the broken links, or remove the references to the non-existent resources.

    After i check i see this path error:

    How to fix this?
  9. xfrocks

    xfrocks XenForo rocks! Staff Member

    The image path is built with imagePath style property. Do you have that setup properly in your style?
  10. MFTeam

    MFTeam New Member

    Yes my style is default xenforo.
    The problem is that path, the correct path is
    Example image already default xenforo.
    Maybe is the /styles/default/xenforo/ ??

    That user have the same problem in the path.
    How to change this?
    Last edited: Feb 10, 2017
  11. MFTeam

    MFTeam New Member

    In the chrome console show this:

    <amp-img src="styles/default/bdCache/amp_logo.png" title="Domain" width="600" height="60" layout="fixed" class="i-amphtml-element i-amphtml-layout-fixed i-amphtml-layout-size-defined i-amphtml-layout amp-notsupported" style="width: 600px; height: 60px;">
    <img title="Domain" class="i-amphtml-fill-content -amp-fill-content i-amphtml-replaced-content -amp-replaced-content -amp-ghost" src="styles/default/bdCache/amp_logo.png"></amp-img>
  12. MFTeam

    MFTeam New Member

    Ok, unsupported.

  13. xfrocks

    xfrocks XenForo rocks! Staff Member

    The path is built in "bdcache_amp_header" template with:

    We probably need to have a better way to build up the url.
  14. rimesia

    rimesia New Member

    AMP style goes crazy when there is an Guest message. It does not show guest message and their username.


    Furthermore , if you have a bbcode HTML replacement with <img src""> , AMP gives error because addon doesn't change them to <amp-img src="">.
    xfrocks likes this.
  15. xfrocks

    xfrocks XenForo rocks! Staff Member

    Can you test guest post in default style? It seems to work on our tests.
    Also, we have this custom bb code:

    Screen Shot 2017-03-01 at 1.59.29 PM.png

    And this post:

    It got converted into this in AMP version:

    <amp-img src="http://attachments.xfrocks.com/2017/02/1542_10d802cf1686c93963084a0b03bca0b1.jpg" width="798" height="444" layout="responsive" ></amp-img>
  16. dbembibre

    dbembibre New Member

    Hi @xfrocks i download because i see that the plugin is compatible from xf 1.2, im in xenforo 1.3.10, but when i try to install i receive the following error:
    Exist one specific version for xenforo 1.3.10 ?

    Server Error
    XenForo 1.4.0+ is required.
    bdCache_Installer::installCustomized() in bdCache/Installer.php at line 30

    Thanks a lot
  17. xfrocks

    xfrocks XenForo rocks! Staff Member

    dbembibre likes this.
  18. xfrocks

    xfrocks XenForo rocks! Staff Member

    Looks like a bug from our build, I have released a new version (v1.2.3) which should allow you to continue on XenForo v1.3. Can you please try again? Sorry for the confusion.
    dbembibre likes this.
  19. ENF

    ENF Webmaster

    Looks like this version has lost the AdminCP link to get to the Addon settings. (no clickable link on the Addon title)
  20. xfrocks

    xfrocks XenForo rocks! Staff Member

    Hmm, I'm pretty sure our add-ons don't have add-on title links.