• Resolved williamgenske

    (@williamgenske)


    Hi,
    “Write a new entry” button has stopped working recently, we are using the latest version of the plugin, please let us know if we need to make any changes, we are just using the shortcode on a page to show the entries.

    Regards,
    William Genske

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Marcel Pol

    (@mpol)

    Hi William,
    It works for me on Firefox on Linux.
    What browser and OS do you use? I could test if something goes wrong there.

    I don’t see any errors in JavaScript, so that seems fine.

    I’m also having the same exact problem. Was working fine then it wasn’t. Tried it on different browsers, deactivated plugins, still nothing.

    Problem page: https://livinglifefearless.co/podcasts/

    • This reply was modified 4 years, 10 months ago by iamdhunt.
    Plugin Author Marcel Pol

    (@mpol)

    Hi iamdhunt,
    In your console I see 2 JavaScript errors.
    You can right-click with the mouse on your page. Select “Inspect Element”. Then select the console-tab. There should be 2 errors that you want to solve. It might be that you need to reload the page to see the errors.

    Fixed those, don’t have anymore errors and it’s still not working. Was working fine before some updates.

    I have exactly the same problem, after the latest update, at https://alison.ray-jones.org.uk/reviews/. Was working fine before. It works fine on another client’s site at https://mirabile.ray-jones.org.uk/messages/ using the same theme and plugin versions.

    Resolved (thanks @raozkardes):

    function my_gwolle_gb_button( $button ) {
    // $button is a string
    $button = '
    <div class="gwolle-gb-write-button">
    <input type="button" name="gwolle-gb-write-button" class="button btn btn-default" value="? ' . esc_attr__('Write a review', 'gwolle-gb') . '" />
    </div>';
    
    return $button;
    }
    add_filter( 'gwolle_gb_button', 'my_gwolle_gb_button', 10, 1 );
    Plugin Author Marcel Pol

    (@mpol)

    Hi Mikeray,
    Ah, good. Yes, that filter has changed.

    Plugin Author Marcel Pol

    (@mpol)

    @iamdhunt
    That code from Mikeray is also a good fit for you. In the past you added your own PHP filter for that button, it now needs an update.

    Plugin Author Marcel Pol

    (@mpol)

    @williamgenske
    I see you are still using an older version. I also see all the CSS and JS loaded without the version parameter. That might give problems after updating, in that old versions of CSS and JS are served.
    Not sure how you set that up, but it is advised to not do that, and just let the browser cache only the latest files.

    @mpol Yes that was it, fixed it for me

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Button not working’ is closed to new replies.