This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
| Status |
Topic
|
Supporter | Voices | Posts | Freshness |
|---|---|---|---|---|---|
|
Getting server errors all the time
1
2
Started by: stevenK-22
in: English Support
Problem: 1. Using FTP, navigate to `/wp-content/themes/your-theme`. add_filter('mod_rewrite_rules', 'fix_rewritebase');
function fix_rewritebase($rules){
$home_root = parse_url(home_url());
if ( isset( $home_root['path'] ) ) {
$home_root = trailingslashit($home_root['path']);
} else {
$home_root = '/';
}
$wpml_root = parse_url(get_option('home'));
if ( isset( $wpml_root['path'] ) ) {
$wpml_root = trailingslashit($wpml_root['path']);
} else {
$wpml_root = '/';
}
$rules = str_replace("RewriteBase $home_root", "RewriteBase $wpml_root", $rules);
$rules = str_replace("RewriteRule . $home_root", "RewriteRule . $wpml_root", $rules);
return $rules;
}For more details, please refer to the documentation: https://wpml.org/faq/why-is-htaccess-getting-overwritten-with-the-language-folder-on-my-wpml-website/. Additionally, to identify the exact cause of the errors, enable debugging in your site. To enable it, open your wp-config.php file and look for define('WP_DEBUG', false);. Change it to:
define('WP_DEBUG', true);
To enable the error logging to a file on the server, you need to add yet one more similar line: define( 'WP_DEBUG_LOG', true ); The errors will be saved to a debug.log file inside the /wp-content/directory. https://wpml.org/documentation/support/debugging-wpml/ If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please open a new support ticket at WPML support forum. |
|
0 | 24 | 1 year ago | |
|
changing default language
Started by: stevenK-22 in: English Support |
|
2 | 15 | 2 years ago | |
|
Split: home page in EN gives me a 404 static
Started by: stevenK-22 in: English Support |
|
2 | 8 | 2 years, 2 months ago | |
|
404 error for my homepage
Started by: stevenK-22 in: English Support |
|
2 | 4 | 2 years, 2 months ago | |
|
first translated page is a different format
Started by: stevenK-22 in: English Support |
|
2 | 9 | 2 years, 2 months ago | |
|
WPML chat support ticket by stevenK-22 – 1707986745
Started by: stevenK-22 in: English Support |
1 | 1 |
2 years, 2 months ago
|