Hello, I suddenly started getting a template error on my website, when I activate string translation, my crocoblock themes do not come at all on some pages, some pages come incorrectly on some pages, I need urgent help
To enable it, open your wp-config.php file and look for the following line:
define('WP_DEBUG', false);
And change it to:
define('WP_DEBUG', true);
// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// Disable display of errors and warnings, which is recommended on a live site.
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);
Then, try to reproduce the issue and check if any errors were saved to the debug.log log file inside the /wp-content/ directory.
It would be great if you could paste your debug.log to https://pastebin.com/ and provide me with that link!
2) Could you please share your Debug information with me?
You can read a detailed explanation about it here. (http://wpml.org/faq/provide-debug-information-faster-support)
The debug info will give me much information about how your site is configured.
Trying to get property 'post_type' of non-object in /home/customer/www/staging15.medclinics.com/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/translation-proxy/wpml-pro-translation.class.php on line 421
I see only one error in the log, and the rest are warnings and notices. The error is a database error:
[27-Feb-2024 11:56:58 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query ALTER TABLE wp_jet_reviews MODIFY COLUMN author VARCHAR(255) made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, Jet_Reviews->init, Jet_Reviews\DB\Manager->__construct, Jet_Reviews\DB\Manager::init_db_required, Jet_Reviews\DB\Manager::maybe_modify_tables
Following these steps, please check if the issue persists in a minimal environment.
1- Deactivate all the plugins except WPML CMS, String Translation, Elementor, Elemenor Pro, and Jetengine main plugin.
2- Switch to your parent theme.
3- Check the home page.
If the issue is gone, activate them one by one to see which one is causing an interaction issue.
❌ Please backup your database before performing the above test ❌
We've tried many methods. From what you've said. But there's only one solution. As soon as we close the String Translation plugin, the whole problem is solved.
Thanks for your update. I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP) Preferably to a test site where the problem has been replicated.
Your answer will be private, meaning only you and I can access it.
❌ Please backup your database and website ❌
✙ I would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason the backup is critical.
✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.
Best regards,
Osama
The topic ‘[Closed] template error’ is closed to new replies.