VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: seweryn on August 26, 2013, 18:58:06 PM

Title: Update only backend of VM
Post by: seweryn on August 26, 2013, 18:58:06 PM
Hi,
I have VM in 2.0.8e version and I have there a lot of changes in code. I wouldn't make update all parts of VirtueMart.
There is my question:

It is possible update only backend part of VirtueMart? It will be worked?

Please help. Thanks in advance.
Title: Re: Update only backend of VM
Post by: jenkinhill on August 28, 2013, 10:49:50 AM
You cannot just "update the backend"

I assume you mean you edited the view (template) files? In which case those edited files should be used as template overrides so they do not get overwritten during an update.

Documentation for the template system is in http://docs.virtuemart.net/tutorials/33-templating-layouts.html
Also see http://www.ostraining.com/blog/joomla/overrides

There were layout changes in the earlier updates which means that some template overrides will need re-editing. Look at the l;ive update info here which has information about those changes. http://virtuemart.net/index.php?option=com_content&id=416&tmpl=component

Use a backup of your site to test (& fix) the update - that old 2.0.8e version now has several security holes.

Title: Re: Update only backend of VM
Post by: seweryn on September 04, 2013, 09:22:12 AM
Thanks for your reply.

Yes, it is my mistake - I do not overrides, I change default files. I would improve it in my next project.
But I have changes in controllers, helpers etc. too.

Over the last two weeks I am working on moving my changes from VM 2.0.8e to VM 2.0.22b.
And I read today this: http://virtuemart.net/news/list-all-news/446-important-security-release-vm-team-at-joomladay-germany

If I make update I will lose my time :(

Maybe it is possible to replace only selected files which have changes (I think that from 2.0.22b to 2.022c it is no so much files to substitute).
Please help and please give me some advice where can I find which files have been changed.

Thanks in advance.

Title: Re: Update only backend of VM
Post by: jenkinhill on September 04, 2013, 10:38:52 AM
I use DiffMerge to compare versions & show all changes. The other way is to work though the files on http://dev.virtuemart.net/projects/virtuemart/repository
There will also be database changes to make.

All your template files must be edited, so I suggest you change them to override files at this stage.

We do not support edits/hacks to the VirtueMart core, and in this case there is no way of telling if any hacks affect the site security
Title: Re: Update only backend of VM
Post by: seweryn on September 04, 2013, 14:53:36 PM
So if I understand, the update only files indicated by DiffMerge will update VM to the latest version? (apart from database updates)

Title: Re: Update only backend of VM
Post by: jenkinhill on September 04, 2013, 14:57:37 PM
They will indicate all changed files between old and new packages.
Title: Re: Update only backend of VM
Post by: seweryn on September 04, 2013, 15:10:41 PM
VirtueMart core files too?

I mean, that in this way I will have the security fix from 2.0.22c too?

P.S. Sorry for my english :)
Title: Re: Update only backend of VM
Post by: jenkinhill on September 04, 2013, 15:58:18 PM
Yes, but there is no guarantee that your site will be secure if you still use files that you yourself have hacked.
Title: Re: Update only backend of VM
Post by: seweryn on September 05, 2013, 08:20:18 AM
Ok, thank you!