• andrewdowling

    (@andrewdowling)


    Hi Kevin,

    I have a serious problem resulting from the Scripts n Styles plugin. We love the plugin and use it on a number of our pages. We have noticed however that occasionally the posts that we are editing get corrupted and into a state that whenever we make an update to them, we are just shown a blank page. I’ve tracked this down to being a result of the Scripts n Styles plugin.

    When the problems starts happening, it appears that some of the info for the scripts & styles is getting lost and corrupted, and I can’t edit it any more. Our hosting provider also checked our server logs and identified the error coming from the Script & Styles plugin – this is what they said:

    ——
    The following logs are from both the Apache error.log and the access.log and they both seem to coincide at about the same time.

    Access.log
    211.30.197.242 - - [16/Feb/2015:10:53:52 +0000] "POST /wp-admin/post.php HTTP/1.0" 500 26 "https://www.stitch.net/wp-admin/post.php?action=edit&post=6963" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36"

    Error.log
    [Mon Feb 16 10:53:53 2015] [error] [client 211.30.197.242] PHP Fatal error: Cannot unset string offsets in /nas/wp/www/cluster-1286/stitch2/wp-content/plugins/scripts-n-styles/includes/class-sns-meta-box.php on line 413, referer: https://www.stitch.net/wp-admin/post.php?action=edit&post=6963

    The first entry just tells us that there was a Server 500 Error in the wp-admin posts, and the second log shows the plugin that was at fault and it also mentions where the error occured /wp-content/plugins/scripts-n-styles/includes/class-sns-meta-box.php on line 413.

    ——–

    Could you tell me how I fix up the post so that it’s not corrupted? I’ve lost a lot of work on one of them so really am hoping it’s simple to fix! Any advice on how to stop this happening would really be appreciated too.

    Many thanks,
    Andrew.

    https://www.ads-software.com/plugins/scripts-n-styles/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WraithKenny

    (@wraithkenny)

    I’m really sorry for that error, and thank you for reporting it. Feel free to contact me on Twitter for things like this. I’ll see if I can figure this out.

    Plugin Author WraithKenny

    (@wraithkenny)

    If you haven’t moved on in the past 3 months, you could try replacing
    if ( isset( $o[ $i ] ) ) unset( $o[ $i ] );
    with
    if ( is_array( $o ) && isset( $o[ $i ] ) ) unset( $o[ $i ] );

    Somehow the $o array must be getting turned into a string somewhere, and that shouldn’t happen.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Updating posts shows a blank page’ is closed to new replies.