New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GetXml does not do file exist checks #323
Comments
From tablatronics on May 19, 2012 14:39:26 getXML() doesnt check fileexists before file_contents |
From ccagle8 on June 14, 2012 12:55:48 But it looks like the bigger problem is that getXML needs that filecheck. That is fine |
Either we put file checks in getxml, we should it loads the file, or always check before. |
Added error suppression for now. We do not need the extra io of file checks for this negligible edge case. |
Fix the actual issues with getXMl and XMLsave now so we can remove supression, also add xml valid checking to XMLsave(). getXML fatal fails if non existant file. |
btw, i think that it's not XMLsave that should check if file is writable, but my code. |
Well that is why it now has success status, but thats not the problem the problem is some of our upgrade and install processes. Which is why it was supressed to begin with. Now they have to be rewritten to correct this workaround. ref. upgrade error by marcco
|
btw, currently, if the page's xml file is locked, GS just does not save it without warning... p.s.: not locked, not writable... sorry. |
ref. #340 |
#570 added these functions, error handling will be handled with a new save_file function |
You get errors about files not existing because getxml doesn't check first.
For example update php check for user.xml legacy causes error
Original issue: http://code.google.com/p/get-simple-cms/issues/detail?id=323
The text was updated successfully, but these errors were encountered: