• Resolved David Artiss

    (@dartiss)


    Version 5 of the plugin has stopped Gutenberg from saving drafts on a number of my sites – deactivating WP Review resolved it. It’s causing a 500 error (viewable in JavaScript console).

    I’ve tried logging this ticket on your main support site but it’s currently showing as being unavailable due to maintenance.

    Thanks.

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Support Suraj Vibhute

    (@suraj78)

    Hello David,
    Are you not able to save the draft or is it not saving any value in the review description field?

    Thank you.

    Thread Starter David Artiss

    (@dartiss)

    Hi Suraj,

    So, when you click on “Save Draft”, it changes to “Saving” but doesn’t progress any further. However, the change is actually saved.

    Just to confirm, I’ve rolled back to a pre-v5 of the plugin and it’s now resolved the problem.

    Plugin Support Suraj Vibhute

    (@suraj78)

    Hi David,
    We are going to release the new version within next couple of hours, please test with it and let me know if the error is still happening or not.

    Thank you.

    Thread Starter David Artiss

    (@dartiss)

    Will do Suraj. Thanks.

    Thread Starter David Artiss

    (@dartiss)

    Sadly, it’s not fixed the issue.

    Thread Starter David Artiss

    (@dartiss)

    Yes, I can access it now so will report it now. Just to be clear, I’m getting this on my own personal site but also on another site that I help administer – as far as I can tell, this will be affecting all Gutenberg users.

    What I won’t do is handy over my login information, and admins on here won’t be best pleased to see you asking for this. However, I will give as much debug information as I can.

    Thanks.

    Thread Starter David Artiss

    (@dartiss)

    Actually Suraj… no I won’t report the issue over on your support forum. You’ll only let me post by signing up and one of the conditions of that is “you will be subscribed to our mailing list”.

    Instead, I’ll continue to provide detail here – I’ll pass over some console logs shortly.

    Thread Starter David Artiss

    (@dartiss)

    So, when trying to save a draft, I get the following reported in the JavaScript console…

    GET https://artiss.blog/wp-admin/post.php?meta_box=1&action=edit&classic-editor&post=98091 500 . index.js?ver=1535722933:1

    Uncaught (in promise) Response {type: "basic", url: "https://artiss.blog/wp-admin/post.php?meta_box=1&action=edit&classic-editor&post=98091", redirected: true, status: 500, ok: false, …} . VM384 post.php:1

    Does this help at all? Let me know of anything else I can provide.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Darn it. Now I’m compelled to review all of the author’s and plugin support’s posts…

    @mythemeshop @suraj78 I’ve deleted your offer to login to your user’s site. I’m am 100% sure you mean well but please never ask for credentials on these forums.

    https://ww.wp.xz.cn/support/guidelines/#the-bad-stuff

    Now for the why: The internet is a wonderful place full of very nice people and a few very bad ones. I’m sure everyone here is very nice however, by giving some ones keys to your house you are trusting they wont steal anything. Likewise the person who takes the keys is now responsible for the house FOREVER.

    If something was to go wrong, then you the author may well legally become liable for damages, which they would not normally have been as their software is provided without warranty.

    Please be aware that repeatedly asking for credentials will result in us asking you to repeatedly stop before escalating up to the plugins team.

    There are many ways to get information you need and accessing the user’s site is not one of them. That’s going too far.

    You get the idea.

    Volunteer support is not easy. But these forums need to a safe place for all users, experienced or new. Accessing their system that way is a short cut that will get you into real trouble in these forums.

    Plugin Support Suraj Vibhute

    (@suraj78)

    Hello Jan,

    I never asked anyone to post the login details here, I was just referring to our support forum where we have a system to share the sensitive data with our support staff.

    But I can understand your concerns, will keep that in mind.

    Thank you.

    Thread Starter David Artiss

    (@dartiss)

    So, I’ve just tried this on a test site I have elsewhere and it works fine. It appears to be just an issue on specific hosting – of the two sites with problems, one site is with Pressable and the other is on WordPress.com.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I never asked anyone to post the login details here

    You are really missing the point.

    You cannot ask for login, period. Saying “Please go to this other place so we can have a conversation there about something that would get me in trouble here” isn’t good and please do not repeat that again.

    Plugin Support Suraj Vibhute

    (@suraj78)

    Hi @dartiss, will see if we can reproduce the issue on our setup.

    @jdembowski sure thing.

    Thank you.

    Plugin Support Suraj Vibhute

    (@suraj78)

    Hello David,
    We are unable to produce the error. Please share your server log using this website http://pastebin.com/

    Thank you.

    Thread Starter David Artiss

    (@dartiss)

    You’re in luck Suraj – Pressable support have diagnosed the issue for you.

    This is likely the issue that is throwing the 500 error:

    PHP Fatal error: Cannot redeclare wp_review_get_default_links() (previously declared in /artissdotblog/wp-content/plugins/wp-review/admin/metaboxes.php:621) in /artissdotblog/wp-content/plugins/wp-review/admin/metaboxes.php on line 621

    My suggestion would be to test replacing lines 622-627 in https://github.com/MyThemeShopTeam/WP-Review/blob/master/admin/metaboxes.php with…

    if ( !function_exists('wp_review_get_default_links') ) {
        function wp_review_get_default_links( $text, $url ) {
            return array(
            'text' => $text,
            'url' => $url,
            );
        }
    }

    What seems to be happening is that the function wp_review_get_default_links is being redeclared, presumably because wp_review_render_meta_box_reviewLinks() is called more than once. Using function_exists() should prevent this from happening.

Viewing 15 replies - 1 through 15 (of 18 total)

The topic ‘Version 5 breaks Gutenberg saving’ is closed to new replies.