I'M always getting 404 error on the site. In my hosting, I'm getting this error message. WPML say that my REST API is not activate... but seems to be.
How can I fix that ?
2023-07-12 15:39:38.280631 [INFO] [21819] [T0] [162.158.126.194:39772:HTTP2-19#APVH_www.societegalion.com:443] File not found [/home/societegalion/domains/societegalion.com/private_html/en/index.php]
2023-07-12 15:39:38.280660 [INFO] [21819] [T0] [162.158.126.194:39772:HTTP2-19#APVH_www.societegalion.com:443] File not found [/home/societegalion/domains/societegalion.com/private_html/404.shtml]
2023-07-12 15:40:17.037581 [INFO] [21819] [T0] [162.158.126.151:11664:HTTP2-3#APVH_www.societegalion.com:443] File not found
Welcome to the WPML support forum. I will do my best to help you to resolve the issue.
As per the debug information, the REST API is enabled. Please visit WPML>>Support>>WordPress section to make sure it is.
Please visit Settings>>Permalinks and resave the settings. Then check whether the issue is existing or not.
If the issue exists, please share with us the WordPress debug.log(not WPML debug information) for collecting more details on this. Refer to the following pages for instructions
To enable the WordPress Debug log, open your wp-config.php file of site root and look for define('WP_DEBUG', false);. Change it to:
// Enable WP_DEBUG mode
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
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
In this case, the errors will be saved to a debug.log log file inside the */wp-content/* directory. Please do the steps to reproduce the bug and check if you are getting any errors or warnings related to WPML in the log file.
If you can paste your debug.log to http://pastebin.com/index.php and provide me that link it would be great! (This is the cleanest way because sometimes the logs are long and create a complete mess of discussion).
--
Thanks!
Bigul
The topic ‘[Closed] Error 404’ is closed to new replies.