• The information page in /wp-admin/admin.php?page=trp_error_manager
    because escaped HTML entities.

    
    `<h2>Why are these errors occuring</h2><p>If TranslatePress detects something wrong when executing queries on your database, it may disable the Automatic Translation feature in order to avoid any extra charging by Google/DeepL. Automatic Translation needs to be manually turned on, after you solve the issues.</p><p>The SQL errors detected can occur for various reasons including missing tables, missing permissions for the SQL user to create tables or perform other operations, problems after site migration or changes to SQL server configuration.</p><h2>What you can do in this situation</h2><h4>Plan A.</h4><p>Go to Settings -> TranslatePress -> General tab and Save Settings. This will regenerate the tables using your current SQL settings. Check if no more errors occur while browsing your website in a translated language. Look at the timestamps of the errors to make sure you are not seeing the old errors. Only the most recent 5 errors are displayed.</p><h4>Plan B.</h4><p>If your problem isn't solved, try the following steps:</p><ol><li>Create a backup of your database</li><li>Create a copy of each translation table where you encounter errors. You can copy the table within the same database (trp_dictionary_en_us_es_es_COPY for example) -- perform this step only if you want to keep the current translations</li><li>Remove the trouble tables by executing the DROP function on them</li><li>Go to Settings -> TranslatePress -> General tab and Save Settings. This will regenerate the tables using your current SQL server.</li><li>Copy the relevant content from the duplicated tables (trp_dictionary_en_us_es_es_COPY for example) in the newly generated table (trp_dictionary_en_us_es_es) -- perform this step only if you want to keep the current translations</li><li>Test it to see if everything is working. If something went wrong, you can restore the backup that you've made at the first step. Check if no more errors occur while browsing your website in a translated language. Look at the timestamps of the errors to make sure you are not seeing the old errors. Only the most recent 5 errors are displayed.</li></ol><h4>Plan C.</h4><p>If your problem still isn't solved, try asking your hosting about your errors. The most common issue is missing permissions for the SQL user, such as the Create Tables permission.</p><h2>Logged errors</h2><p>These are the most recent 5 errors logged by TranslatePress:</p><table><tr><td>1</td></tr><tr><td><strong>last_error</strong></td><td>Incorrect table name ''</td></tr><tr><td><strong>disable_automatic_translations</strong></td><td>Yes</td></tr><tr><td><strong>url</strong></td><td>https://farmer.localhost.bar/en/?wc-ajax=xoo_wsc_refresh_fragments</td></tr><tr><td><strong>details</strong></td><td>Error running insert_strings()</td></tr><tr><td><strong>date_time</strong></td><td>2021-11-21 05:02:35</td></tr><tr><td><strong>timestamp</strong></td><td>1637470955</td></tr><tr><td>2</td></tr><tr><td><strong>last_error</strong></td><td>Incorrect table name ''</td></tr><tr><td><strong>disable_automatic_translations</strong></td><td>Yes</td></tr><tr><td><strong>url</strong></td><td>https://farmer.localhost.bar/en/?wc-ajax=xoo_wsc_refresh_fragments</td></tr><tr><td><strong>details</strong></td><td>Error running get_untranslated_strings()</td></tr><tr><td><strong>date_time</strong></td><td>2021-11-21 05:02:35</td></tr><tr><td><strong>timestamp</strong></td><td>1637470955</td></tr><tr><td>3</td></tr><tr><td><strong>last_error</strong></td><td></td></tr><tr><td><strong>disable_automatic_translations</strong></td><td>Yes</td></tr><tr><td><strong>url</strong></td><td>https://farmer.localhost.bar/en/?wc-ajax=xoo_wsc_refresh_fragments</td></tr><tr><td><strong>details</strong></td><td>Missing table . To regenerate tables, try going to Settings->TranslatePress->General tab and Save Settings.</td></tr><tr><td><strong>date_time</strong></td><td>2021-11-21 05:02:35</td></tr><tr><td><strong>timestamp</strong></td><td>1637470955</td></tr><tr><td>4</td></tr><tr><td><strong>last_error</strong></td><td>Incorrect table name ''</td></tr><tr><td><strong>disable_automatic_translations</strong></td><td>Yes</td></tr><tr><td><strong>url</strong></td><td>https://farmer.localhost.bar/en/?wc-ajax=xoo_wsc_refresh_fragments</td></tr><tr><td><strong>details</strong></td><td>Error running get_existing_translations()</td></tr><tr><td><strong>date_time</strong></td><td>2021-11-21 05:02:35</td></tr><tr><td><strong>timestamp</strong></td><td>1637470955</td></tr><tr><td>5</td></tr><tr><td><strong>last_error</strong></td><td>Incorrect table name ''</td></tr><tr><td><strong>disable_automatic_translations</strong></td><td>Yes</td></tr><tr><td><strong>url</strong></td><td>https://farmer.localhost.bar/en/?wc-ajax=xoo_wsc_refresh_fragments</td></tr><tr><td><strong>details</strong></td><td>Error running insert_strings()</td></tr><tr><td><strong>date_time</strong></td><td>2021-11-21 05:02:34</td></tr><tr><td><strong>timestamp</strong></td><td>1637470954</td></tr></table>

    Look like the htmlentities() translated it into this form.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for reaching us!

    Since this looks a lot like a conflict with some other code, the first recommended step is the conflict test (ideally in a staging environment):

    ??*Briefly* disable all other plugins and enable the default Twenty Twenty theme. Please also disable all add-ons. If this fixes the problem, as it probably will, enable everything one by one, checking each time to see when the problem returns.

    Please let us know when you find the conflict so that we can take a look and see what we can do about it.

    Cheers,

    Thread Starter 西門 正 Code Guy

    (@simongcc)

    Thanks for getting back. We are examining now, because the error is cleared. Is there any way to trigger error to test the page?

    Hello,

    Thank you for your patience!

    My colleagues from the development team fixed this issue in a previous version of TranslatePress!
    The issue has been resolved.

    Thank you for reporting this!
    Cheers,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Checking Error Page Message is Escaped’ is closed to new replies.