VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: TechnoMage on July 24, 2017, 13:20:38 PM

Title: VM path handling issues and inconsistencies
Post by: TechnoMage on July 24, 2017, 13:20:38 PM
Hi,

I am having some issues with my VM path handling (VM 3.2.2 and Joomla 3.6.5) and want to understand how does that work exactly.

My absolute path for the Joomla setup  is

/var/www/yvonne/data/www/harisnyacenter.sytes.net/.

Consequently I have setup both the tmp and logs paths as

/var/www/yvonne/data/www/harisnyacenter.sytes.net/logs/
/var/www/yvonne/data/www/harisnyacenter.sytes.net/tmp/


Can someone please explain to me if I am doing something wrong or if these are just shortcomings in the current VM version?
Title: Re: VM path handling issues and inconsistencies
Post by: jenkinhill on July 24, 2017, 15:08:01 PM
You should have updated Joomla to 3.7.3 by now, as that was a security release.  https://www.joomla.org/announcements/release-news/5709-joomla-3-7-3-release.html

J3.7 does no longer use images/stories/ by default, so VM3.2.2 is set to work with that. Instead of  images/stories/virtuemart/ it now uses  images/virtuemart/
Title: Re: VM path handling issues and inconsistencies
Post by: TechnoMage on July 24, 2017, 17:40:45 PM
Thanks jenkinhill.

I had some issues with the core update that is why I have not done it in the past.

Is there an easy way to update all media paths in VM using the new standards?

Also it must be just me being stupid but if there is such a significant change it would be good to have some safeguard in the as part of the update to check first the Joomla version and don't even start the update if it is incompatible with the current core version.

I will check point 1 again using this new core later on.
Title: Re: VM path handling issues and inconsistencies
Post by: jenkinhill on July 24, 2017, 19:13:10 PM
VM3.2.3.9579 does work with older versions.  When Joomla 3.7.x is installed on most sites the image files in the stories directory and its subdirectories are automatically moved into the images root. Image paths are automatically updated at that time.

As for safepath & keys I don't have a problem with those as the vmfiles directory is  below server root, invoices and keys are written there.
Title: Re: VM path handling issues and inconsistencies
Post by: TechnoMage on July 26, 2017, 09:49:01 AM
Thanks.

All the errors were there due to Joomla 3.6.5.

Anyway it would be great to do some Joomla core version check before the update to avoid such problems.