I mean this particularly seems a global malfunction of WPML to me, earlier it was not translating any of the custom posts in bulk when selected more than 3-4 in number, but in last two days when I tried even converting a single post it showed 504 and the worst this time credits also get utilized. Code files from the site are clean and well optimized there should not be any issues, I can tell.
However, These are the .php files you can check in for mmi-families custom post type:
- mmi-post-type (where the post type is registered)(
- single-mmi-family
- functions.php (line no. : 170)
I hope that helps.
Attached an image for your ref.
I am really not sure, what is causing this issue and I can not simply add credits for testing as also we get charged for the usage byt Google, Microsoft or DeepL.
Do you agree if we try to migrate the site to our test server on Cloudways?
I could then connect this clone with a test engine to test the automattic translation.
I am sure any functionality or written code should not be a blocker for WPML plugin or is reason for its malfunctioning, also, I don't have any Issues going forward with the test you wanna conduct on cloud platform, unless It's production you wanna go forward with. Am comfortable with stage test.
Moreover, In any case, even If there comes certain requirement to conduct tests on production, I would ask you to be highly careful with it. In any circumstance, If I find anything malfunctioning or not working, I would assume it could be a fault from your side.
I already have detected one tiny issue, since I have implemented WPML translations : i.e. " /? " appearing at the end of every URL, please look into that as well, It will be highly appreciable.
On the migrated test site I still can see this notice and replicate the 504 error:
PHP Notice: Function wp_enqueue_script was called incorrectly. in /mnt/BLOCKSTORAGE/home/278662.cloudwaysapps.com/fpsqztefnn/public_html/wp-includes/functions.php on line 6085
Calling the scripts inside your Child Theme this way solves the issue:
At this moment automatic translations begin running, until the next error occurs:
PHP Warning: session_start(): Session cannot be started after headers have already been sent in /mnt/BLOCKSTORAGE/home/278662.cloudwaysapps.com/fpsqztefnn/public_html/wp-content/plugins/filter-custom-fields-taxonomies-light/profi-search-filter.php on line 17
The plugin is doing there this:
if( !session_id() )
session_start();
This should look usually like this:
// Start session correctly
function sf_start_session() {
if (!session_id()) {
session_start();
}
}
add_action('init', 'sf_start_session', 1);
This file is part of the plugin "Filter Custom Fields & Taxonomies Light" and the PHP Warning should be reported the the plugin author. If I disable the plugin and continued testing the site seems to work as usual and I am not getting any further errors.
The issue I am facing, is that this site runs on a small test server with various sites and according to our admin there is a currently an issue with extended CPU use, which already occured before I migrated your site.
I would like to ask you to follow my advises and let me know in case this will not solve the issue.
The topic ‘[Closed] Language Translation’ is closed to new replies.