Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Hi Beat,
Thanks for your help. I reinstalled CB 1.1 Contacts component and the file is still being saved. I agree with your observations; there is no bug. But I still question why is_writable($configfile) returned true and if ($fp = fopen( $configfile, "w")) returned false in admin.comprofiler.controller.php - function: saveConfig.
As an FYI, PHP Bug #27609: is_writable returns true for file that can not be written to, is all that I have found that appears to be related to this - bugs.php.net/bug.php?id=27609. I run CB 1.1 in a Windows XP SP2 environment which this addresses. I have run into this before, and used ATTRIB, IIS permissions, etc. but never resolved the problem.
I saved the old ue_config.php file and I am able to reproduce this now. I have looked at the two files and as far as security, they appear to be identical. When I first saw the error - no indications of ownership or security problems existed then either. As you said, if I copy the file to the same location and delete the original, the error appears again. However you cannot see anything different from the original file as far as security goes using ATTRIB, IIS Admin, etc. Also, since I am a developer, I know now that I accidentally pushed this file from my development site to my test area which is what caused the original problem and I just reproduced it also.
Since this is outside the use of the package we can close this. This is between me and Windows at this point. :o)
I was able to XCOPY the file from the command line with a /O switch; I did not think of that until now. This will copy file ownership and ACL information and as you said, that's the problem and XCOPY corrects it. However, this assumes you have the original file from the Joomla installation. You can copy from the original CB 1.1 package without going through the Joomla installation as there is a Windows XP SP2 utility called Cacls.exe which allows you to change the owner from what it is now to what Windows wants (at least in my case), IUSR_ followed by machine name (IIS 5.0 default). This is not recommended for a novice user, but it solves my problem as I am frequently copying files on my local environment and this research answered my long time question - how do you correct this in a Windows environment?
Post edited by: joejvghack, at: 2007/09/21 21:43
Please Log in to join the conversation.