• Resolved schalipp

    (@schalipp)


    Hi,

    we have installed the DeepL wordpress plugin and entered the correct API subscription key. Settings page shows available 1,000,000,000 words contingent.

    On the edit post view, the DeepL box with the translate button is displaying correctly, but whenever we click on this button, the little grey circle icon just keeps spinning for hours, and nothing else happens. No translation is taking place.

    What are we missing?
    Thank you for any help.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Dietmar

    (@dietmarfischer)

    Hi schalipp,
    what did the trick for me: if you copy the API code from Deepl, it adds a space in front of the code. Once I removed that, it worked – although not like a charm, the pictures were not where they were supposed to be.
    Hope that helps,
    Dietmar

    Dietmar

    (@dietmarfischer)

    PS: With another article, the pictures were all right, though…

    Thread Starter schalipp

    (@schalipp)

    Hi, thanks for answering. I checked, but there is no accidentially copied space in front or at the back our API key, it has the correct format. But when we click on the translate button, the icon just keeps spinning. No error message, no translation, nothing.

    Problem is still unresolved. Maybe the developer can help us? Is this plugin actively supported?

    Thread Starter schalipp

    (@schalipp)

    Solved. The plugin as it is, is not compatible with current wordpress versions. I have found the bug and corrected it. If anyone else needs this:

    The error is in “/wp-content/plugins/wpdeepl/classes/deeplapi.php”.
    The method “buildQuery” was not building the post request conforming to WordPress API standards. Here is the fix:

    protected function buildQuery( $mode = ‘POST’ )
    {

    if ( $mode == ‘POST’ ) {
    /* POST body has to be an array and NOT a queryString */
    //$args[‘body’] = http_build_query( $request );
    $args[‘body’] = $request;
    } else {
    $args[‘query’] = http_build_query( $request );
    }

    }

    Plugin Author malaiac

    (@malaiac)

    @schalipp thanks for finding the bug. Your fix was included in today’s release

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Translate button not doing anything’ is closed to new replies.