Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #167516

    Hi – i am using the Avia builder and have a 1/1 column with a text block inserted in it.
    Within the text block i have various paragraphs of text, from which i wish to link PDFs from certain words or phrases.

    In the standard WP interface, you ‘Add Media’ > upload the PDF > Edit title and this then becomes the title of the link > Insert and this inserts the link.

    Using Avia Builder, you go through the same process, but after hitting ‘Insert into’ button, nothing happens.

    Any idea why? or how best else to add a load of PDFs to a page (i’ve looked for other media types in the Avia media types section).

    #167532

    Hi

    Futher to this i have manged to get some output from Safari error logs (Firefox/Firebug crash out).

    After insert into post is pressed, the following is returned:
    avia_media.js:141RangeError: Maximum call stack size exceeded.

    It would seem that there is a clash with AVIA and the cmb_metabox framework on
    https://github.com/jaredatch/Custom-Metaboxes-and-Fields-for-WordPress

    as if i disable the function to init the framework, the WP functionality then works to insert a post.

    Part of the init.php function is to call the following

    function cmb_scripts( $hook ) {
    if ( $hook == ‘post.php’ OR $hook == ‘post-new.php’ OR $hook == ‘page-new.php’ OR $hook == ‘page.php’ ) {
    wp_register_script( ‘cmb-scripts’, CMB_META_BOX_URL.’jquery.cmbScripts.js’, array( ‘jquery’,’media-upload’,’thickbox’ ) );
    wp_enqueue_script( ‘jquery’ );
    wp_enqueue_script( ‘jquery-ui-core’ ); // Make sure and use elements form the 1.7.3 UI – not 1.8.9
    wp_enqueue_script( ‘media-upload’ );
    wp_enqueue_script( ‘thickbox’ );
    wp_enqueue_script( ‘cmb-scripts’ );
    wp_enqueue_style( ‘thickbox’ );
    wp_enqueue_style( ‘jquery-custom-ui’ );
    add_action( ‘admin_head’, ‘cmb_styles_inline’ );
    }
    }

    Could this be the source of the conflict do you think?

    Many thanks for any guidance.

    Phil.

    #167836

    Hey!

    Can you post an example of the pdf link that is generated using the plugin? Have you tried manually adding a pdf link?

    Best regards,
    Ismael

    #171226

    Hi Ismael

    Sorry for the slow response.
    Seems like there is a clash with CMB Metabox framework https://github.com/jaredatch/Custom-Metaboxes-and-Fields-for-WordPress
    Whenever that is enabled, the ‘add media’ function seems to bug out.
    Looks like a JS error, so probably a clash of JQuery or something.
    I will investigate further and update this if i find a solution.

    thanks

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Enfold – Insert into Page button not working’ is closed to new replies.