Support » Plugin: Scripts n Styles » All data not save after click update

  • Resolved claudchan

    (@claudchan)


    Hi,
    Using in my local machine, everything work fine.
    After I uploaded into my server, which is using https, all data cannot be saved.
    I have try many times, add my scripts and css styling click update button after the page refreshed, all data is empty.
    Please advise.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,
    It works only in global setting. All field is saved.
    But not working on individual pages.
    Please advise.

    • This reply was modified 3 years, 2 months ago by claudchan.

    I’m having this same problem. I entered a couple hundred lines of code in a post, then clicked Update Scripts. Then I clicked on Save Draft to save the post and my code was obliterated.<br>
    I notice the original post is over 3 weeks and hasn’t been answered yet. If you’re not supporting this code anymore, I’ll have to uninstall, this is unacceptable.

    Hi, I also meet with such a bug on PHP7.1.

    I find this bug is because the array to save the code is not initialized in the plugin.

    You can search the code in scripts-n-styles plugin directory
    `
    $SnS = get_post_meta( $post_id, ‘_SnS’, true );
    `

    and insert

    `
    if(empty( $SnS )){
    $SnS = array();
    }
    `

    below search occurrences.

    • This reply was modified 3 years, 1 month ago by lubobill1990.
    Plugin Author WraithKenny

    (@wraithkenny)

    Thanks for contributing @lubobill1990 I’m going on vacation in a couple weeks, and I’ll try to patch this then.

    Plugin Author WraithKenny

    (@wraithkenny)

    This should be fixed now. If you’d like to test it out (3.4.1)
    Also, let me know if you want to be listed under contributors.

    Plugin Author WraithKenny

    (@wraithkenny)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘All data not save after click update’ is closed to new replies.