Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is attempting to change the folder name for interface-wpml-log.php located in the 'logs' folder within the classes directory. This is because many servers exclude logs folders from backups, causing the file not to be restored.
Solution:
We advise against changing the folder name for interface-wpml-log.php due to potential conflicts or fatal errors. Changing the folder name would require updates to multiple files, specifically the following autoloader files:

wp-content/plugins/sitepress-multilingual-cms/vendor/composer/autoload_static.php

and

wp-content/plugins/sitepress-multilingual-cms/vendor/composer/autoload_classmap.php

The current folder path is

wp-content/plugins/sitepress-multilingual-cms/classes/logging/interface-wpml-log.php

.
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. If further assistance is needed, please open a new support ticket at WPML support forum.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Bigul 4 months, 2 weeks ago.

Assisted by: Bigul.

Author Posts
June 22, 2024 at 7:52 am #15783502

carlosL-34

Background of the issue:
I am trying to change the folder name for interface-wpml-log.php. On the classes folder, there is a 'logs' folder with interface-wpml-log.php. Many servers exclude logs folders for backups, so this folder is excluded and the file is not restored. That folder should have a different name to avoid this inconvenience.

Symptoms:
No specific issues or errors reported.

Questions:
Can the folder name for interface-wpml-log.php folder be changed?

June 22, 2024 at 12:46 pm #15785118

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

It sounds like a customization of the existing WPML folder structure. So it may result in conflicts or fatal errors. Therefore I will consult it with our second-tier team for an expert opinion and get back to you on Monday. Please wait.

To help you faster, I've enabled debug information for this support ticket. Please see this link for how to get this information from your site and give it to us: http://wpml.org/faq/provide-debug-information-faster-support/

--
Thanks!

Bigul

June 24, 2024 at 8:55 am #15804540

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

I have consulted with our team, and they have advised me not to make any changes to the current folder structure for the following reasons.

1) If we change the log file's folder name, we might have to update multiple files. Especially the following two autoloader files.

wp-content/plugins/sitepress-multilingual-cms/vendor/composer/autoload_static.php
 
and 

wp-content/plugins/sitepress-multilingual-cms/vendor/composer/autoload_classmap.php

2) The actual folder path is *wp-content/plugins/sitepress-multilingual-cms/classes/logging/interface-wpml-log.php*

Please let us know your feedback on this.

--
Thanks!

Bigul