[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vtigercrm-developers
Subject:    Re: [Vtigercrm-developers] Sharing access problem testing 5.0.3-rc
From:       "Andrew Rodes" <arodes () onweald ! com>
Date:       2007-01-24 15:51:29
Message-ID: 200701241551.l0OFpgIF004994 () vtigerforge ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Well for anyone else having difficulties getting the vtiger503 to work
locally for development, here is how I finally got it to work. (btw .. I was
getting a "no object" error in peardatabase line 441 when ever I attempted
to login)

 

I posted recently about my "normal" way of getting the most recent point
release code for debugging locally without having to go through reinstalls
all of the time. As part of that process I have always just copied over my
user_priveliges_1.php from from /user_privileges. However going from
vtiger503rc (tag) to vtiger503(Branch) it didn't work this time.

 

I finally had to just debug it and I found a call in  Comonutils.php  .
getCurrencySymbolandCRate($id)

            In the following I noticed that $id being passed in was null

        $sql1 = "select conversion_rate, currency_symbol from
vtiger_currency_info where id=".$id;

 

So I peeked in my user_privelges_1.php file, and sure enough I found the
following:

 

$user_info=array('user_name'=>'','is_admin'=>'','user_password'=>'','confirm
_password'=>'','first_name'=>'','last_name'=>'','roleid'=>'','email1'=>'','s
tatus'=>'','activity_view'=>'','lead_view'=>'','currency_id'=>'','currency_n
ame'=>'USDollars','currency_code'=>'USD','currency_symbol'=>'&#36;','conv_ra
te'=>'1.000','hour_format'=>'','end_hour'=>'','start_hour'=>'','title'=>'','
phone_work'=>'','department'=>'','phone_mobile'=>'','reports_to_id'=>'','pho
ne_other'=>'','email2'=>'','phone_fax'=>'','yahoo_id'=>'','phone_home'=>'','
imagename'=>'','date_format'=>'','signature'=>'','description'=>'','address_
street'=>'','address_city'=>'','address_state'=>'','address_postalcode'=>'',
'address_country'=>'','record_id'=>'','record_module'=>'','id'=>'1');

 

currency_id was not set although it was set in the DB. Anyway, I just
changed it to 'currency_id'=>'1'  in the user_privelges_1.php file and
everything started working.

 

 

I don't know where or how that user_privileges_1.php file gets created but I
looked at some past point release versions and my user_privileges_1.php
always just shows null for the ID and has worked in the past. I am assuming
its just an environment thing on my end, but if someone from the core dev
team could verify that the privileges file is always created with a value
for currency_id it might be a good idea to avoid a possible bug.

 

OnwealdAndy

 

  _____  

From: clement chazarra [mailto:chazarra.clement@gmail.com] 
Sent: Saturday, January 20, 2007 9:37 AM
To: philip@vtiger.com; vtigercrm-developers@lists.vtigercrm.com
Subject: Re: [Vtigercrm-developers] Sharing access problem testing 5.0.3-rc

 

Hello,

Andrew, thanks for sharing your procedure to get 5.0.3 working properly, in
fact i did what you say on my first attempt, so may be I made a mistake(as
it happens to me too many times), I will try again and will tell you if I
still have problems. 

Philip, I don't think there is a problem about the permissions of my
folders, I already installed vTiger many times and never get an issue about
permissions... Anyway I will have a look to that, thanks for the help. 
You are very right about the testing, more systems tested = more stability.

Regards,
Clem

P.S: My first name is Clement, not Chazarra ;)

On 1/20/07, Philip <philip@vtiger.com> wrote:

Hi Chazarra,

If you install the source you have to give permsision to the following
directories/files and then try running install.php

config.inc.php cache/ test/wordtemplatedownload/ storage/ install/
install.php test/ modules/Emails/templates/ user_privileges/
Smarty/templates_c parent_tabdata.php tabdata.php Smarty/cache

This should solve the admin issues.

Kindly check out the source from the following url for latest fixes
http://vtiger.fosslabs.com/svn/vtiger/vtigercrm/branches/5.0.3

Yes! it will be difficult to know that how may times that the ticket has
verified, but testers will be using various OS and browsers, more time it is
tested more the stability across platforms ;-) 

Philip
clement chazarra wrote: 

Hello,

I just get 5.0.3-rc from the svn, and when I try to login I get the error
about sharing users access and am not able to recalculate the sharing access
rights..

So I copied the user_privileges folder from my working configuration and
pasted it in the 5.0.3-rc. The result is that I can login but can't see
admin details..
When I try to recalculate the sharing access, I am not permitted to do so
and seems that the system doesn't see me as an admin anymore(no settings
tab) even if I stay logged in. 
Does anyone  had this issue installing the last svn version at home? Any
walk around?

You need help on verifying if closed tickets are really fixed, how to know
if a ticket has been verified once, twice, or more times? 

Thanks,
Clem








  _____  



 
_______________________________________________


Reach hundreds of potential candidates - http://jobs.vtiger.com
 

 


_______________________________________________
Reach hundreds of potential candidates - http://jobs.vtiger.com
<http://jobs.vtiger.com> 

 


[Attachment #5 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:st1="urn:schemas-microsoft-com:office:smarttags" \
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;}
pre
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
span.EmailStyle21
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Well for anyone else having difficulties
getting the vtiger503 to work locally for development, here is how I finally
got it to work. (btw .. I was getting a &#8220;no object&#8221; error in
peardatabase line 441 when ever I attempted to login)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I posted recently about my &#8220;normal&#8221;
way of getting the most recent point release code for debugging locally without
having to go through reinstalls all of the time. As part of that process I have
always just copied over my user_priveliges_1.php from from /user_privileges.
However going from vtiger503rc (tag) to vtiger503(Branch) it didn&#8217;t work
this time.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I finally had to just debug it and I found
a call in &nbsp;Comonutils.php&nbsp; &#8230; \
getCurrencySymbolandCRate($id)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
In the following I noticed that $id being passed in was \
null<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
$sql1 = &quot;select conversion_rate, currency_symbol from vtiger_currency_info
where id=&quot;.$id;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>So I peeked in my user_privelges_1.php
file, and sure enough I found the following:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>$user_info=array('user_name'=&gt;'','is_admin'=&g \
t;'','user_password'=&gt;'','confirm_password'=&gt;'','first_name'=&gt;'','last_name'= \
&gt;'','roleid'=&gt;'','email1'=&gt;'','status'=&gt;'','activity_view'=&gt;'','lead_view'=&gt;'',<b><span
 style='font-weight:bold'>'currency_id'=&gt;''</span></b>,'currency_name'=&gt;'USDolla \
rs','currency_code'=&gt;'USD','currency_symbol'=&gt;'&amp;#36;','conv_rate'=&gt;'1.000 \
','hour_format'=&gt;'','end_hour'=&gt;'','start_hour'=&gt;'','title'=&gt;'','phone_wor \
k'=&gt;'','department'=&gt;'','phone_mobile'=&gt;'','reports_to_id'=&gt;'','phone_othe \
r'=&gt;'','email2'=&gt;'','phone_fax'=&gt;'','yahoo_id'=&gt;'','phone_home'=&gt;'','im \
agename'=&gt;'','date_format'=&gt;'','signature'=&gt;'','description'=&gt;'','address_ \
street'=&gt;'','address_city'=&gt;'','address_state'=&gt;'','address_postalcode'=&gt;' \
','address_country'=&gt;'','record_id'=&gt;'','record_module'=&gt;'','id'=&gt;'1');<o:p></o:p></span></font></p>


<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>currency_id was not set although it was
set in the DB. Anyway, I just changed it to <b><span \
style='font-weight:bold'>'currency_id'=&gt;'1' &nbsp;</span></b>in the \
user_privelges_1.php file<b><span style='font-weight: bold'> </span></b>and \
everything started working.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I don&#8217;t know where or how that \
user_privileges_1.php file gets created but I looked at some past point release \
versions and my user_privileges_1.php always just shows null for the ID and has \
worked in the past. I am assuming its just an environment thing on my end, but if \
someone from the core dev team could verify that the privileges file is always \
created with a value for currency_id it might be a good idea to avoid a possible \
bug.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>OnwealdAndy<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> clement chazarra
[mailto:chazarra.clement@gmail.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Saturday, January 20, 2007
9:37 AM<br>
<b><span style='font-weight:bold'>To:</span></b> philip@vtiger.com; <st1:PersonName
w:st="on">vtigercrm-developers@lists.vtigercrm.com</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re:
[Vtigercrm-developers] Sharing access problem testing \
5.0.3-rc</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Hello,<br>
<br>
Andrew, thanks for sharing your procedure to get 5.0.3 working properly, in
fact i did what you say on my first attempt, so may be I made a mistake(as it
happens to me too many times), I will try again and will tell you if I still
have problems. <br>
<br>
Philip, I don't think there is a problem about the permissions of my folders, I
already installed vTiger many times and never get an issue about permissions...
Anyway I will have a look to that, thanks for the help. <br>
You are very right about the testing, more systems tested = more stability.<br>
<br>
Regards,<br>
Clem<br>
<br>
P.S: My first name is Clement, not Chazarra ;)<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On 1/20/07, <b><span \
style='font-weight:bold'>Philip</span></b> &lt;<a \
href="mailto:philip@vtiger.com">philip@vtiger.com</a>&gt; \
wrote:</span></font></span><o:p></o:p></p>

<div bgcolor="#ffffff" text="#000000">

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Hi Chazarra,<br>
<br>
If you install the source you have to give permsision to the following
directories/files and then try running install.php<br>
<br>
config.inc.php cache/ test/wordtemplatedownload/ storage/ install/ install.php
test/ modules/Emails/templates/ user_privileges/ Smarty/templates_c
parent_tabdata.php tabdata.php Smarty/cache<br>
<br>
This should solve the admin issues.<br>
<br>
Kindly check out the source from the following url for latest fixes<br>
<span class=q><a
href="http://vtiger.fosslabs.com/svn/vtiger/vtigercrm/branches/5.0.3"
target="_blank">http://vtiger.fosslabs.com/svn/vtiger/vtigercrm/branches/5.0.3</a></span><br>
 <br>
Yes! it will be difficult to know that how may times that the ticket has
verified, but testers will be using various OS and browsers, more time it is
tested more the stability across platforms ;-) <br>
<br>
Philip<br>
clement chazarra wrote: <o:p></o:p></span></font></p>

<div><span id="q_1103e80235d341f5_3">

<p class=MsoNormal><span class=e><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>Hello,</span></font></span><br>
<br>
<span class=e>I just get 5.0.3-rc from the svn, and when I try to login I get
the error about sharing users access and am not able to recalculate the sharing
access rights..</span><br>
<br>
<span class=e>So I copied the user_privileges folder from my working
configuration and pasted it in the 5.0.3-rc. The result is that I can login but
can't see admin details..</span><br>
<span class=e>When I try to recalculate the sharing access, I am not permitted
to do so and seems that the system doesn't see me as an admin anymore(no settings
tab) even if I stay logged in. </span><br>
<span class=e>Does anyone&nbsp; had this issue installing the last svn version
at home? Any walk around?</span><br>
<br>
<span class=e>You need help on verifying if closed tickets are really fixed,
how to know if a ticket has been verified once, twice, or more times? </span><br>
<br>
<span class=e>Thanks,</span><br>
<span class=e>Clem</span><br>
<br>
<o:p></o:p></p>

</div>

</span><pre style='text-align:center'><font size=2 face="Courier New"><span
style='font-size:10.0pt'>

<hr size=4 width="90%" align=center>

</span></font></pre><pre><font size=2 face="Courier New"><span
style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><font
size=2 face="Courier New"><span \
style='font-size:10.0pt'>_______________________________________________<br> Reach \
hundreds of potential candidates - <a href="http://jobs.vtiger.com" \
target="_blank">http://jobs.vtiger.com</a><o:p></o:p></span></font></pre><pre><font \
size=2 face="Courier New"><span style='font-size:10.0pt'> \
<o:p></o:p></span></font></pre>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
_______________________________________________<br>
Reach hundreds of potential candidates - <a href="http://jobs.vtiger.com"
target="_blank">http://jobs.vtiger.com </a><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>



_______________________________________________
Reach hundreds of potential candidates - http://jobs.vtiger.com 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic