AbanteCart Community

AbanteCart Development => General Discussion => Topic started by: Nimitz1061 on September 04, 2012, 07:14:28 PM

Title: Hard coded folder paths?
Post by: Nimitz1061 on September 04, 2012, 07:14:28 PM
I tend to do manual updates on my sites.  For some reason I sometimes see references to attempts to access an update.xml file in our server wide tmp folder.  As we don't generally allow access to the tmp folder itself, this is not good.

I don't see where this location can be configured anywhere...

David
Title: Re: Hard coded folder paths?
Post by: abolabo on September 05, 2012, 04:47:03 PM
I tend to do manual updates on my sites.  For some reason I sometimes see references to attempts to access an update.xml file in our server wide tmp folder.  As we don't generally allow access to the tmp folder itself, this is not good.

I don't see where this location can be configured anywhere...

David

Hello.
we already changed this code. it was done this way to keep file with updated info in temporary folder and checking not often than once per 24 hours at admin login time.
We recommended to give write permission for admin/system folder for web-server system user (apache etc)  because it use for automatic upgrades and package installs too.
Title: Re: Hard coded folder paths?
Post by: Nimitz1061 on September 10, 2012, 10:24:36 AM
Are you telling me that this hard coded path is part of a fallback system, and that reaching it probably indicates that the admin system folder needs write permissions???

David
Title: Re: Hard coded folder paths?
Post by: abantecart on September 10, 2012, 10:30:25 AM
Yes. This is correct.
Title: Re: Hard coded folder paths?
Post by: Nimitz1061 on September 12, 2012, 10:17:45 AM
Ok, changed permissions on admin/system/ folder - and I can now see the updates.xml file being created there.

But, still get an error about missing XML tags. 
Title: Re: Hard coded folder paths?
Post by: abolabo on September 12, 2012, 04:35:17 PM
Ok, changed permissions on admin/system/ folder - and I can now see the updates.xml file being created there.

But, still get an error about missing XML tags.

we already fixed this bug. Thanks.