Skip Navigation

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.

Our next available supporter will start replying to tickets in about 2.79 hours from now. Thank you for your understanding.

This topic contains 9 replies, has 7 voices.

Last updated by jernejO 4 years, 7 months ago.

Assigned support staff: Andrey.

Author Posts
December 4, 2016 at 2:23 am #1150758


Can you please pass word on to the developers that they should scrub all traces of GIT from future releases?

I recently spent nearly two hours trying to figure out why my site was failing after pushing my development to GIT and then cloning the repository on staging. It turns out the problem was some .git files buried inside sitepress-multilingual-cms/vendor/wpml/commons/

For any WordPress developers who use git as part of their development workflow, this causes problems when committing. Git did not report to me that it found existing repositories within my site, it simply omitted the sub-folders containing .git folders and I had to dig thru logs and the folders to figure out what was wrong.

Thank you!

December 5, 2016 at 11:19 am #1151367


Timezone: Europe/Kiev (GMT+02:00)

I’m sorry that you ran into trouble with this!

The issue has been reported to our developers already. It will be handled.

Thank you for bringing this to our attention.

December 5, 2016 at 1:57 pm #1151567


So this is how to fix it, you will need to remote git and gitignore files.
Then these steps:
git rm -rf --cached wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/commons/

git add wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/commons/


December 5, 2016 at 3:23 pm #1151698


Timezone: Europe/Kiev (GMT+02:00)

@ericl-2, you just need go to needed folders and try to remove a .git folder (in wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/commons/), then try it again. You might also check for other such folders in WPML plugin and remove them, if you get related issue.

December 5, 2016 at 5:44 pm #1151866


Yeah, once I realized what was going on, it was easy enough to strip out all of the git folders and ignore files. I mostly reported this so that you can prevent these from being included in future updates and save other devs who use GIT the trouble of manually removing these.

December 6, 2016 at 6:44 am #1152188


Timezone: Europe/Kiev (GMT+02:00)

Sorry for the inconvenience, it'll be handled with the next release.

December 6, 2016 at 10:14 am #1152413


When is the new release coming up? This really bothers me as well..

December 11, 2016 at 2:12 pm #1156929


I second that! It broke my deployment and I manually need to remove every trace of git in every WPML update!

January 27, 2017 at 10:03 am #1192173


This took a fair bit of time to debug for me too. Waiting for a fix aswell.

April 9, 2021 at 6:30 am #8498441


I was debugging my deploy script when I noticed that when deployed there were size differences. I went into debug mode and found out that .git folder is present inside sitepress-multilingual-cms. This is outrageous! And guess what, deploy version for some reason is about 120MB huge!! A previous deploy was 103MB. What the?

1. Why is .git folder in there at all?
2. why is there a size difference?? (both repos have 4.4.3 WPML version seen in sitepress.php)

Can we get rid of this, and FAST?

Screenshot 2021-04-09 at 08.27.16.png
Screenshot 2021-04-09 at 08.27.23.png