Question
My system is not showing the default silhouette.gif picture on the user page. I am guessing this means I missed creating a directory or setting some permissions somewhere. But I am at a loss.
I am also getting an error when trying to upload a picture. I click on Change Picture and then Upload a New One and select a pic and it give a long string of errors that mostly seem to pivot around
RCS.
The first portion of the error is: Insecure dependency in chmod while running with -T switch at /var/www/twiki/lib/TWiki/Store/RcsWrap.pm line 468
Environment
--
JasonJystad - 17 Jul 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Did you set permissions after installing?
--
ArthurClemens - 17 Jul 2007
I thought so, but I am assuming I missed a piece of documentation. I ran the install script and then I tried to verify things by walking through the available docs.
Is there a master list of permissions I can compare things to so I can find what I missed?
--
JasonJystad - 17 Jul 2007
The files should be writable by the webserver, so you might need to set ownership with
chown apache:apache data/_PersonalInfoAddOn, if you haven't already. The silhouette image is in
pub/TWiki/PersonalInfoAddOn/ so you might have a look at the file ownership there.
--
ArthurClemens - 17 Jul 2007
Ok, I set the ownership and permissions on both data/_PersonalInfoAddOn and pub/TWiki/PersonalInfoAddOn to www-data:www-data and 755 respectively.
I looked like they were both already set correctly, but I went ahead and ran both commands recursively on both directories just in case.
I still see both behaviors, unfortunately. No change at all.
--
JasonJystad - 17 Jul 2007
Can you see the image in the browser when you copy the url from the html source?
--
ArthurClemens - 17 Jul 2007
Actually, I don't think it is even getting the image in there. If I am reading the view source from my user page correctly then this is the code where the image should be:
<div class="pIparagraphWithImageLeft">
<div class="pIparagraphWithImageLeftImage">
<div class="twikiImage pIimage">$percntINCLUDE{$quot$percntTOPIC$percnt$quot section=$quotimagePluginImage$quot}$percnt</div><!--/twikiImage-->
</div><!--/pIparagraphWithImageLeftImage-->
<div class="pIparagraphWithImageLeftText">
Hope that code renders properly, sorry if my newbieness borks it up.
--
JasonJystad - 17 Jul 2007
Heh, not quite right. That is the line that appears on my user page instead of a photo. It is also the line that appears in code surrounded by various DIV tags that were obviously stripped out above. specifically the line above appears in a div with this class: "twikiImage pIimage" when I do a view source on my user page.
--
JasonJystad - 17 Jul 2007
Just for reference, if I use the path:
http://our.wiki.fqdn/twiki/pub/TWiki/PersonalInfoAddOn/silhouette.gif to browse the default pic it come up just fine.
--
JasonJystad - 17 Jul 2007
oops sorry, I borked the path up again. The
silhouette.gif above should read
/twiki/pub/TWiki/PersonalInfoAddOn/silhouette.gif
--
JasonJystad - 17 Jul 2007
By the way, thanks for helping Arthur. I am reasonably sure I just did or forgot something silly and I appreciate your willingness to help a newbie.
--
JasonJystad - 17 Jul 2007
Whoa, looks like my code un-borked itself. I assume someone fixed it, if so thanks to whoever did it.
--
JasonJystad - 17 Jul 2007
I think you are experiencing a problem because your version of TWiki does not handle the include sections as today. Try this version from version 1.1 to see if it makes any difference:
--
ArthurClemens - 17 Jul 2007
Ok, substituting that file for the
LayoutModules.txt files in the
data/_PersonalInfoAddon and the
/data/Main directories seems to have changed things a bit. The line of code that was displayed on my user page before is gone now and it just looks like it displays an empty placeholder image. The code shown in a view source of that page now looks like this:
<div
class="pIparagraphWithImageLeft"> <div
class="pIparagraphWithImageLeftImage"> <div class="twikiImage"><img
src="%imagePath%" alt="" /></div><!--/twikiImage-->
</div><!--/pIparagraphWithImageLeftImage--> <div
class="pIparagraphWithImageLeftText">
The image upload for changing the picture still tosses the same error as before.
--
JasonJystad - 18 Jul 2007
Should I upgrade to a newer dev build or something? I am willing, I just stuck with the primary download offered on the main page with the assumption that they were the "stable" builds.
--
JasonJystad - 18 Jul 2007
Alternatively download an older installer. On the add-on page, click on the
manage link next to the zip file. In the attachment versions list pick the one from 06 Mar 2007.
--
ArthurClemens - 18 Jul 2007
Ok, I'll give that a try and report back.
--
JasonJystad - 18 Jul 2007
Ok, I downloaded that version, unzipped it into the twiki directory and ran the install script. I also copied the files from /data/_PersonalInfoAddOn over to the /data/Main directory as mentioned in the instructions and then set the permissions on /data/_PersonalInfoAddOn and pub/TWiki/PersonalInfoAddOn/ to 744 and with my apache user as owner.
The silhouette.gif now shows up and the user data editing form looks great.
When I click on "Change Picture" I get a blank screen though.

Getting there. I am looking it over right now, but if you have a quick fix on hand let me know. I will check back here occasionally while I try to work it out for myself.
--
JasonJystad - 18 Jul 2007
I forgot to mention it, but I also set the permissions on the
PersonalInfo* files in the /data/Main directory to 744 and apache user ownership.
--
JasonJystad - 18 Jul 2007
I see. In that version the
xxxTemplate.txt files have the line
%TMPL:INCLUDE{"app"}%, and that template is not provided with twiki. Download
app.pattern.tmpl and drop it into your
templates folder.
--
ArthurClemens - 18 Jul 2007
Thank You Arthur!!!
That did the trick.
I still had an
RCS permissions error, but everything else worked. I have a baseline permissions script I have been keeping current with my add ons and such and after re-running that everything is working smoothly.
Now to try out the phone directory and such.
Thanks again.
--
JasonJystad - 18 Jul 2007
--
JasonJystad - 18 Jul 2007
Hi. I have TWiki 4.0.5, and I've carefully followed the instructions above, but it seems it's not possible to save user data, or to change the user photo. All looks OK, but no user data is actually saved, and the 'Change Picture' link goes to the 'attach a file' page, with no way to select the picture you want. If there are any tips for porting this back to 4.0.5, please let me know.
--
SteveJonesST - 27 Jul 2007
Exact same issues with version 4.0.4. The nice image picker doesn't appear and the form blanks on saving data.
--
WilliamLesguillier - 30 Jul 2007
I will create a TWiki 4.1 compatible version after my holidays.
--
ArthurClemens - 01 Aug 2007
Please try out the new version for TWiki 4.1 on
PersonalInfoAddOn.
--
ArthurClemens - 23 Aug 2007
Does it also work with version 4.0.4?
I tried to install it, the installation script runs well, then I copy the files from 4x01 to the Main web, changes the permissions to correct group. And I get the same problems as before.
--
WilliamLesguillier - 12 Sep 2007
No, I haven't made a version for TWiki 4.0.x. Mainly because I don't have a test version running.
--
ArthurClemens - 12 Sep 2007
Ok thanks, I suppose I should upgrade anyway.
--
WilliamLesguillier - 14 Sep 2007
Hi Arthur, I'm back in the game with a fresh 4.1.2 installation.
I ran the addon installation script, copy the content of the 4x01 folder to Main web, set the permission for everything installed to my webserver user with 755 permission.
At first time the Main/PersonalInfoDemoUser page displays well, but for the attachment table that shows at the bottom (is it normal?), but when I edit the data everything blanks on saving and the picture disappears. When I use the image picker the tiger image shows but if I select it and click save, the image doesn't appear on the page either.
Did I miss something here?
--
WilliamLesguillier - 14 Sep 2007
Did you update Main.UserForm as described in PersonalInfoHome?
--
ArthurClemens - 14 Sep 2007
Nop... Did it at my very first install and then forgot. Now it works great. You might want to put a link to
PersonalInfoHome at the end of the installation steps saying that some configuration needs to be made so it doesn't escape to others. I felt kind of lost at first not knowing where to go after install. You don't mention the installation script either in the installation steps while I found it really useful, the installation is much easier with the script.
Thanks for the great work, I will poke around installing all the features and come back here if I get lost again.
--
WilliamLesguillier - 19 Sep 2007
Hi Arthur, I'm looking at directSearch feature and it doesn't work for me. It seems that the file twikiEvent.js is missing in the package. It should be there according to the code in
PersonalInfoModules to provide 4.1 compatibility. (edit: ok, found it on download page)
--
WilliamLesguillier - 19 Sep 2007
Thanks for your feedback, I will update the documentation.
--
ArthurClemens - 19 Sep 2007