Bug report - Helper item

edited September 2017 in BeBuilder
How to reproduce the bug:

1- Add any text in Helper item.
2- Save page.
3- Check text in Helper item and close it, everything is fine until now.
4- Reopen Helper item, text is partially missing.

Same happens on two different servers (localhost and online), clean install, no plugins.

Here is a short (unlisted) video so you can check it better:


Comments

  • Hi,

    please go to your FTP, create php file with phpinfo() function inside and send us link to that file privately thru the contact form which is on the right side at http://themeforest.net/user/muffingroup#contact so we can have a look on your server settings. The problem is probably related to limits but to be sure which one is the reason, we need that link. For more details about file creation, please visit https://mediatemple.net/community/products/dv/204643880/how-can-i-create-a-phpinfo.php-page.

    Notice!
    1. If you are chatting with support via email please do not post here.
    2. Attach your license key and the wordpress admin login credentials.

    Thanks

  • Hello and thanks for your support offer, however I just wanted to report the bug so that you can fix it in the next release for everyone else. 

    It is not a php reletad issue. Bug occurs browser side when closing the helper item popup in muffin builder (you can see it for a frame in the video at 0:27).

    Text is always truncated after 16 words. I found it could have something to do with following function in \functions\builder\js\script.js line 814

    ------------------------------------------------------------
    // Excerpt | update

    var excerpt = popup.find( 'textarea.mfn-item-excerpt' ).first().val();
    if( excerpt ){

    // strip_tags
    var tmp = document.createElement( 'DIV' );
    tmp.innerHTML = excerpt;
    excerpt = tmp.textContent || tmp.innerText || "";

    // strip_shortcodes
    excerpt = excerpt.replace(/\[.*?\]/g, '' ); // do not put space before regex

    // 16 words
    excerpt = excerpt.split(" ").splice( 0, 16 ).join(" ");

    popup.closest( '.mfn-element' ).find( '.mfn-item-excerpt' ).first().html( excerpt );
    }
    ------------------------------------------------------------
  • edited October 2017
    But this is not a problem, the excerpt is supposed to work like this. You can extend the number of words in theme options>blog,portfolio&shop>blog. The excerpt length field.
Sign In or Register to comment.