• Resolved wasanajones

    (@wasanajones)


    Hi – thanks for the great plugin.

    Query Monitor says frontend is showing WP 5 update throwing some mystery ‘style’ error related to

    pdfemb-gutenberg-block-backend-js
    wp-content/plugins/pdf-embedder/css/pdfemb-blocks.css
    wp-blocks (missing)

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi wasanajones,

    Thank you for bringing this to our attention. The pdfemb-blocks.css stylesheet is blank as we didn’t end up needing to add our own styles for the Gutenberg compatibility fix. This didn’t get removed when we released the update and as a result appears in the Query Monitor. We will be removing this redundancy in our next update but in the meantime, the plugin is stable and works correctly so it is safe to ignore this report.

    If you have any other questions, please do not hesitate to send us an email to [email protected] as we may not see the forum posts in a timely fashion.

    Emma

    Thread Starter wasanajones

    (@wasanajones)

    thanks

    @wasanajones I’ve been waiting for this update for some time, and I hate to see my Query Monitor in red. Then I solved it manually.

    1- Access /wp-content/plugins/pdf-embedder/core

    2- Open the file core_pdf_embedder.php

    3- Edit the end of the file commenting the following lines:

    ———————————————————————–
    function gutenberg_enqueue_block_editor_assets() {
    // wp_enqueue_script(
    // ‘pdfemb-gutenberg-block-js’, // Unique handle.
    // $this->my_plugin_url(). ‘js/pdfemb-blocks.js’,
    // array( ‘wp-blocks’, ‘wp-i18n’, ‘wp-element’ ), // Dependencies, defined above.
    // $this->PLUGIN_VERSION
    // );

    // wp_enqueue_style(
    // ‘pdfemb-gutenberg-block-css’, // Handle.
    // $this->my_plugin_url(). ‘css/pdfemb-blocks.css’, // editor.css: This file styles the block within the Gutenberg editor.
    // array( ‘wp-edit-blocks’ ), // Dependencies, defined above.
    // $this->PLUGIN_VERSION
    // );
    }

    function gutenberg_enqueue_block_assets() {
    // wp_enqueue_style(
    // ‘pdfemb-gutenberg-block-backend-js’, // Handle.
    // $this->my_plugin_url(). ‘css/pdfemb-blocks.css’, // style.css: This file styles the block on the frontend.
    // array( ‘wp-blocks’ ), // Dependencies, defined above.
    // $this->PLUGIN_VERSION
    // );
    }
    ———————————————————————–
    Hope this helps! =D

    Thread Starter wasanajones

    (@wasanajones)

    now there’s one way to shame a developer into an update !

    thnx

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Missing Dependencies’ is closed to new replies.