• Hello,

    I just wanted to let you know that this plugin is breaking the PDF Embedder plugin block since version 2.0. The other plugin says it’s block is not registered when Weather atlas is installed. I’ve had to roll Weather Atlas back to 1.2.1 to correct the issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Weather Atlas

    (@weatheratlas)

    Hi,

    We have installed PDF Embedder and did not find any issues with plugin

    If you can provide any specific steps or conditions under which the issue appears, that would be very helpful for further investigation.

    In the meantime, v 2.0.4 is uploaded, upgrade if you like. Although all versions since 2.0 are structured the same.

    Thread Starter jlongbrake

    (@jlongbrake)

    I just updated and have the same issue. I have PDF embedder installed first. When I upgrade Weather atlas and go to the admin dashboard and check a post that already has a PDF embedder block saved I get a message that says “Your site doesn’t include support for the PDF Embedder block. You can try installing the block, convert it to a Custom HTML block, or remove it entirely.” If I try to readd the pdf embedder block it can no longer be found in the block list. It only comes back if I rollback Weather atlas to a version before 2.0.

    Plugin Author Weather Atlas

    (@weatheratlas)

    Hello,

    Thank you for quick response and for testing with the updated version 2.0.4. Unfortunately, we are unable to replicate the issue you’re experiencing.

    We suspect that the conflict with the PDF Embedder plugin may be from the use of Gutenberg blocks since v.2

    Typically, each plugin is self-contained, and such conflicts should not occur.

    At present, this problem will be unresolved. We hope to address it in a future updates.

    P.S.

    we’ve noticed there are reported issues on WordPress forums regarding the message “Your site doesn’t include support for the PDF Embedder block….”

    It might be useful to explore these threads for potential solutions that could resolve the compatibility issues.

    Thread Starter jlongbrake

    (@jlongbrake)

    I have found where the conflict is. It is in the block.js files that add the gutenberg block. I was getting a console error from PDF Embedder that variables had already been declared. The first three lines of your /block/block.js (this is also in the .min file) file declares the following variables:

    const { registerBlockType } = wp.blocks;
    const { _ } = wp.i18n; // Import the _ function for localization
    const { createElement } = wp.element; // Destructuring for easier usage

    PDF Embedder uses the same variables when creating their element and cannot redeclare those variables after your plugin sets them so the block never gets registered properly. I’ve found that if I change your code to declare them as “var” everything works in both plugins.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Weather Atlas incompatible with PDF Embedder plugin since 2.0 update’ is closed to new replies.