News:

AbanteCart v1.4.2 is released.

Main Menu
support

Hard coded folder paths?

Started by Nimitz1061, September 04, 2012, 07:14:28 PM

Previous topic - Next topic

Nimitz1061

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

abolabo

#1
Quote from: 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

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.
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

Nimitz1061

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

abantecart

Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Nimitz1061

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. 

abolabo

Quote from: 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.

we already fixed this bug. Thanks.
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

Forum Rules Code of conduct
AbanteCart.com 2010 -