Buddypress reverting code back to original plugin, I lost my all modification to plugin. I am running wp-4.4 and buddypress-2.2.4

40 Views Asked by At

I have buddypress 2.2.4 installed with wordpress 4.4.

Now issue I am facing is, I did some modification to buddypress plugin in plugin files it self. And its reverting back. Its changing my modified files to its original versions. even I try this in my local and same result.

I ask server guy but he told its buddypress issue.

2

There are 2 best solutions below

4
ojrask On

When you modify a BP file, do you see changes in the browser? Or do the files revert to the original state instantly after closing them in a code editor? What are the file permission settings for the BP plugin files?

What files do you modify and with what changes?

Are you hitting update for the plugin? Plugin updates always overwrite local changes as new files are written over the old ones (unless you juggle with write-permissions for the files).

It is not a BuddyPress issue by itself (tried it myself and I could hack the plugin files just fine). It could be the server giving you the illusion of write-allowed files whilst keeping the files unchanged ("reverting"). Or then the plugins are updated constantly, undoing your changes.

The proper way to make modifications is to either use hooks in a plugin or a theme, or copy over the BuddyPress templates to your theme and make modifications there.

0
Mayank Chauhan On

I didnt find any solution to that. but I keep my changes by adding a override files to child theme. because I tried everything and its not stopping reset plugin. So finally making override of plugin in child theme solve this issue.