• Process hangs at the merge stage

    The addon translates the topic, but completely hangs after pressing the Merge button. This problem has been raised earlier in the thread, but no solution was proposed.
    Thank you in advance for a hint on how to fix this problem.

    Regards,
    Mikhail

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support shubham0095

    (@shubham0095)

    Hi @mil33

    Could you confirm the version of the plugin you are using?
    Also, please let us know the plugin or theme you were trying to translate and also in which language.
    It would be great if you can share the screen recording with us so that we can get to know the exact scenario.

    Thread Starter MIL

    (@mil33)

    RH – Real Estate Sale and Rental WordPress Theme – https://themeforest.net/item/real-homes-wordpress-real-estate-theme/5373914
    I tried to translate both parent and child themes.
    The automatic translation with Yandex translator is fast – https://skrinshoter.ru/sM8myCwYfcF?a.
    But after clicking on the Merge translation button, a black screen of merge appears, which can hang indefinitely, and the merge itself does not happen https://skrinshoter.ru/sM8dBO0rFMI?a.

    Plugin Support shubham0095

    (@shubham0095)

    Hi @mil33

    Thanks for sharing the information.
    Could you check the errors in the browser console?
    If there are any errors in the console, please share those error with us.

    Thread Starter MIL

    (@mil33)

    There are errors:
    Unchecked runtime.lastError: The message port closed before a response was received.
    load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable,moxiejs,plupload&ver=6.3.1:5 JQMIGRATE: Migrate is installed, version 3.4.1
    281Unchecked runtime.lastError: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
    admin-ajax.php:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    https://skrinshoter.ru/sM8jzLulyYJ?a
    https://skrinshoter.ru/sM8WeIlUGOc?
    https://skrinshoter.ru/sM8Bmq3HAi7?a

    • This reply was modified 1 year, 5 months ago by MIL.
    • This reply was modified 1 year, 5 months ago by MIL.
    • This reply was modified 1 year, 5 months ago by MIL.
    • This reply was modified 1 year, 5 months ago by MIL.
    Plugin Support shubham0095

    (@shubham0095)

    Hi @mil33

    Thanks for sharing the errors.
    It seems like there is some conflict with other plugin or theme.
    Could you please try deactivating the plugin one by one and check if the issue resolves?

    Also try changing the theme once and then translate this theme.

    Hope this helps.

    Thread Starter MIL

    (@mil33)

    Thanks, I reset all browser settings to default with extensions disabled, switched to a different theme and tried to transfer the disabled one, but it didn't help.
    There are a few mentions of a similar error online, but they are beyond my knowledge unfortunately and I don't know how to use them:
    
    "I had the same problem when replying to a message in a callback. The solution is to return true in the background message listener.
    
    Here is a simple example of background.js. It responds to any message from popup.js.
    
    chrome.runtime.onMessage.addListener(function(rq, sender, sendResponse) {
    // set timeout to simulate any callback (even from storage.sync)
    setTimeout(function() {
    sendResponse({status: true});
    }, 1);
    // return true; // comment out this line to fix the error
    });
    Here is the popup.js that sends the message to the popup. You will get exceptions until you remove the "return true" line in the background.js file.
    
    document.addEventListener("DOMContentLoaded", () => {
    chrome.extension.sendMessage({action: "ping"}, function(resp) {
    console.log(JSON.stringify(resp))
    });
    });
    manifest.json, just in case :) Pay attention to the alarm permissions section!
    
    {
    "name": "TestMessages",
    "version": "0.1.0",
    "manifest_version": 2,
    "browser_action": {
    "default_popup": "src/popup.html".
    },
    }, "background": {
    { "scripts": [ "src/background.js",]
    "persistent": false
    },
    { "permissions": [
    "alarms".
    ]
    }
    Share
    Follow
    Aug 22, 2019 at 11:52 am in reply to Aug 22, 2019
    Aleksej Vasinov user avatar
    Aleksej Vasinov
    2,6822828 silver badges292929 bronze badges
    It worked for me! In what scenario would returning false by default be useful? -
    Eduardo Reis
    Apr 27, 2020 at 19:59
    The documentation says: This function becomes invalid when the event listener returns unless you return true. What do you mean invalid? Shouldn't it be created every time it receives a message? -
    Eduardo Reis
    Apr 27, 2020 at 20:01
    @EduardoReis, with FALSE it can be used as an informer to notify about some event. -
    Alexey Vasinov
    Apr 28, 2020 at 6:21 AM
    Aleksej, Could you please tell me how to include addListener code in a web project on struts 1. I am using JS, JSP, HTML, FRAMES, CSS as UI stack. just wondering where exactly it should be applied. tried adding the below snippet to the parent js file but it is not recognized. I usually don't have the listener code in the application. chrome.runtime.onMessage.addListener(function(rq, sender, sendResponse) { setTimeout(function() { sendResponse({status: true}); }, 1); alert("Inside the Background.js file"); return true; // Return true; // Return true to fix the error }); -.
    sasrra
    Dec 21, 2021 at 9:28 AM
    Sorry, I don't know JSP to help you. Did you find the listener in your JS code? -
    Aleksej Vasinov
    Dec 22, 2021 at 7:18"
    From here https://stackoverflow.com/questions/54126343/how-to-fix-unchecked-runtime-lasterror-the-message-port-closed-before-a-respon
    Thread Starter MIL

    (@mil33)

    I tried again with plug-ins completely disabled- an error in the browser console: ()JQMIGRATE: Migrate is installed, version 3.4.1 /wp-admin/admin-ajax.php:1 Failed to load resource: the server responded with a status of 500 () Moreover, even if you try to make a manual translation of one line without an addon and try to save it, it gives a 500 error Error: 500 Internal Server Error. See console output for debugging information

    Thread Starter MIL

    (@mil33)

    Problem solved:

    When uploading files or large (relatively) amounts of data to the server, you may encounter error 500.
    At the same time, in the logs of the site and the web server, you will see something like:

    mod_fcgid: HTTP request length 137536 (so far) exceeds MaxRequestLen (131072), referer
    This is typical in cases when PHP is running on the server in FastCGI mode

    To fix the error, open the configuration file of the module, which is located on the path:

    /etc/apache2/mods-available/fcgid.conf for Debian, Ubuntu and OS based on them
    /etc/httpd/conf.d/fcgid.conf for RHEL-like — CentOS, Fedora.
    In it we find and make edits to the lines

    FcgidConnectTimeout 60
    (can be enlarged)

    FcgidMaxRequestLen 33554432
    MaxRequestLen 33554432
    (these lines probably won’t be there at all, but they need to be corrected or added. By specifying this number, we will increase the size to 32 megabytes. )
    After that, do not forget to restart the web server.
    ————————–
    After that, everything began to work as it should

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Process hangs at the merge stage’ is closed to new replies.