<font><font face="verdana,sans-serif"><div>Adam,</div><div><br></div><div>The problem is that I never made any changes to rules via SQL ...</div><div><br></div><div>I&#39;ll put the code below in file sharing_privileges_444.php with you if you can give me a direction to solve the problem I will thank.</div>

<div><br></div><div><br></div><div><br></div><div><br></div><div><div>&lt;?php</div><div><br></div><div><br></div><div>//This is the access privilege file</div><div>$is_admin=false;</div><div><br></div><div>$current_user_roles=&#39;H17&#39;;</div>

<div><br></div><div>$current_user_parent_role_seq=&#39;H1::H2::H3::H20::H17&#39;;</div><div><br></div><div>$current_user_profiles=array(8,);</div><div><br></div><div>$profileGlobalPermission=array(&#39;1&#39;=&gt;1,&#39;2&#39;=&gt;1,);</div>

<div><br></div><div>$profileTabsPermission=array(&#39;1&#39;=&gt;0,&#39;2&#39;=&gt;0,&#39;4&#39;=&gt;0,&#39;6&#39;=&gt;0,&#39;7&#39;=&gt;0,&#39;8&#39;=&gt;0,&#39;9&#39;=&gt;0,&#39;10&#39;=&gt;0,&#39;13&#39;=&gt;1,&#39;14&#39;=&gt;0,&#39;15&#39;=&gt;1,&#39;16&#39;=&gt;0,&#39;18&#39;=&gt;1,&#39;19&#39;=&gt;0,&#39;20&#39;=&gt;0,&#39;21&#39;=&gt;1,&#39;22&#39;=&gt;0,&#39;23&#39;=&gt;0,&#39;24&#39;=&gt;1,&#39;25&#39;=&gt;0,&#39;26&#39;=&gt;0,&#39;27&#39;=&gt;1,&#39;30&#39;=&gt;1,&#39;31&#39;=&gt;1,&#39;32&#39;=&gt;1,&#39;33&#39;=&gt;1,&#39;34&#39;=&gt;1,&#39;35&#39;=&gt;1,&#39;36&#39;=&gt;1,&#39;37&#39;=&gt;1,&#39;38&#39;=&gt;1,&#39;39&#39;=&gt;1,&#39;40&#39;=&gt;1,&#39;41&#39;=&gt;1,&#39;42&#39;=&gt;1,&#39;43&#39;=&gt;1,&#39;45&#39;=&gt;0,&#39;46&#39;=&gt;1,&#39;47&#39;=&gt;1,&#39;48&#39;=&gt;0,&#39;49&#39;=&gt;0,&#39;51&#39;=&gt;0,&#39;52&#39;=&gt;0,);</div>

<div><br></div><div>$profileActionPermission=array(2=&gt;array(0=&gt;1,1=&gt;1,2=&gt;1,3=&gt;0,4=&gt;0,5=&gt;0,6=&gt;0,10=&gt;0,),4=&gt;array(0=&gt;1,1=&gt;1,2=&gt;1,3=&gt;0,4=&gt;0,5=&gt;0,6=&gt;0,8=&gt;0,10=&gt;0,),6=&gt;array(0=&gt;1,1=&gt;1,2=&gt;1,3=&gt;0,4=&gt;0,5=&gt;0,6=&gt;0,8=&gt;0,10=&gt;0,),7=&gt;array(0=&gt;1,1=&gt;1,2=&gt;1,3=&gt;0,4=&gt;0,5=&gt;0,6=&gt;0,8=&gt;0,9=&gt;0,10=&gt;0,),8=&gt;array(0=&gt;0,1=&gt;0,2=&gt;1,3=&gt;0,4=&gt;0,6=&gt;0,),9=&gt;array(0=&gt;0,1=&gt;0,2=&gt;0,3=&gt;0,4=&gt;0,),13=&gt;array(0=&gt;1,1=&gt;1,2=&gt;1,3=&gt;1,4=&gt;1,5=&gt;0,6=&gt;0,8=&gt;0,10=&gt;0,),14=&gt;array(0=&gt;1,1=&gt;1,2=&gt;1,3=&gt;0,4=&gt;0,5=&gt;0,6=&gt;0,10=&gt;0,),15=&gt;array(0=&gt;1,1=&gt;1,2=&gt;1,3=&gt;1,4=&gt;1,),16=&gt;array(0=&gt;0,1=&gt;0,2=&gt;0,3=&gt;0,4=&gt;0,),18=&gt;array(0=&gt;1,1=&gt;1,2=&gt;1,3=&gt;1,4=&gt;1,5=&gt;0,6=&gt;0,10=&gt;0,),19=&gt;array(0=&gt;1,1=&gt;1,2=&gt;1,3=&gt;0,4=&gt;0,),20=&gt;array(0=&gt;1,1=&gt;1,2=&gt;1,3=&gt;0,4=&gt;0,),21=&gt;array(0=&gt;1,1=&gt;1,2=&gt;1,3=&gt;1,4=&gt;1,),22=&gt;array(0=&gt;1,1=&gt;1,2=&gt;1,3=&gt;0,4=&gt;0,),23=&gt;array(0=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gt;0,8=&gt;1,),);</div>

<div><br></div><div>$current_user_groups=array();</div><div><br></div><div>$subordinate_roles=array();</div><div><br></div><div>$parent_roles=array(&#39;H1&#39;,&#39;H2&#39;,&#39;H3&#39;,&#39;H20&#39;,);</div><div><br></div>

<div>$subordinate_roles_users=array();</div><div><br></div><div>$user_info=array(&#39;user_name&#39;=&gt;&#39;teste123&#39;,&#39;is_admin&#39;=&gt;&#39;off&#39;,&#39;user_password&#39;=&gt;&#39;$1$te000000$4PLMaZ/mhqu/WdNvIH0Cp0&#39;,&#39;confirm_password&#39;=&gt;&#39;$1$te000000$4PLMaZ/mhqu/WdNvIH&#39;,&#39;first_name&#39;=&gt;&#39;David&#39;,&#39;last_name&#39;=&gt;&#39;Soares&#39;,&#39;roleid&#39;=&gt;&#39;H17&#39;,&#39;email1&#39;=&gt;&#39;<a href="mailto:rodrigo@hostplan.com.br">rodrigo@hostplan.com.br</a>&#39;,&#39;status&#39;=&gt;&#39;Active&#39;,&#39;activity_view&#39;=&gt;&#39;Today&#39;,&#39;lead_view&#39;=&gt;&#39;Today&#39;,&#39;currency_id&#39;=&gt;&#39;1&#39;,&#39;currency_name&#39;=&gt;&#39;Brazil, Reais&#39;,&#39;currency_code&#39;=&gt;&#39;BRL&#39;,&#39;currency_symbol&#39;=&gt;&#39;R$&#39;,&#39;conv_rate&#39;=&gt;&#39;1.000&#39;,&#39;hour_format&#39;=&gt;&#39;&#39;,&#39;end_hour&#39;=&gt;&#39;&#39;,&#39;start_hour&#39;=&gt;&#39;&#39;,&#39;title&#39;=&gt;&#39;&#39;,&#39;phone_work&#39;=&gt;&#39;&#39;,&#39;department&#39;=&gt;&#39;&#39;,&#39;phone_mobile&#39;=&gt;&#39;&#39;,&#39;reports_to_id&#39;=&gt;&#39;74&#39;,&#39;phone_other&#39;=&gt;&#39;&#39;,&#39;email2&#39;=&gt;&#39;&#39;,&#39;phone_fax&#39;=&gt;&#39;2192177909&#39;,&#39;yahoo_id&#39;=&gt;&#39;&#39;,&#39;phone_home&#39;=&gt;&#39;&#39;,&#39;imagename&#39;=&gt;&#39;&#39;,&#39;date_format&#39;=&gt;&#39;dd-mm-yyyy&#39;,&#39;signature&#39;=&gt;&#39;&#39;,&#39;description&#39;=&gt;&#39;&#39;,&#39;reminder_interval&#39;=&gt;&#39;5 Minutes&#39;,&#39;internal_mailer&#39;=&gt;&#39;1&#39;,&#39;address_street&#39;=&gt;&#39;&#39;,&#39;address_city&#39;=&gt;&#39;&#39;,&#39;address_state&#39;=&gt;&#39;&#39;,&#39;address_postalcode&#39;=&gt;&#39;&#39;,&#39;address_country&#39;=&gt;&#39;&#39;,&#39;asterisk_extension&#39;=&gt;&#39;&#39;,&#39;use_asterisk&#39;=&gt;&#39;1&#39;,&#39;accesskey&#39;=&gt;&#39;bLucb6B4WtryNgKP&#39;,&#39;record_id&#39;=&gt;&#39;&#39;,&#39;record_module&#39;=&gt;&#39;&#39;,&#39;id&#39;=&gt;&#39;446&#39;);</div>

<div>?&gt;</div></div><div><br></div><div><br></div></font></font><div class="gmail_extra"><br clear="all">Atte,<br><b>Rodrigo Souza de Oliveira</b><div><b>Consultor de TI<br></b>Hostplan Informática Ltda<br><div>Telefones: (21) 9217-7909 e/ou (21) 8153-5287<div>

website: <a href="http://www.hostplan.com.br" target="_blank">www.hostplan.com.br</a><br>e-mail/msn: <a href="mailto:rodrigo@hostplan.com.br" target="_blank">rodrigo@hostplan.com.br</a><br><img src="http://www.hostplan.com.br/logo.jpg" height="137" width="200"><br>

</div></div></div><br>
<br><br><div class="gmail_quote">2012/11/1 Adam Heinz <span dir="ltr">&lt;<a href="mailto:amh@metricwise.net" target="_blank">amh@metricwise.net</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Thu, Nov 1, 2012 at 10:43 AM, Rodrigo Souza <span dir="ltr">&lt;<a href="mailto:rodrigo@hostplan.com.br" target="_blank">rodrigo@hostplan.com.br</a>&gt;</span> wrote:<br></div><div class="gmail_quote">
<div class="im">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_extra"><span style="font-family:&#39;Times New Roman&#39;;font-size:medium">Warning: chmod(): Operation not permitted in /var/www/vtiger/vtiger_novo/</span><span style="font-family:&#39;Times New Roman&#39;;font-size:medium">log4php.debug/appenders/</span><span style="font-family:&#39;Times New Roman&#39;;font-size:medium">LoggerAppenderFile.php on line 80 Parse error: syntax error, unexpected &#39;,&#39; in /var/www/vtiger/vtiger_novo/</span><span style="font-family:&#39;Times New Roman&#39;;font-size:medium">user_privileges/sharing_</span><span style="font-family:&#39;Times New Roman&#39;;font-size:medium">privileges_444.php on line 5</span></div>


</blockquote><div> </div></div><div>That&#39;s not a file permissions error, it&#39;s a parse error.  I&#39;ll bet if you open sharing_privileges_444.php, you will find that some of the arrays inside are malformed.  This has happened to me in the past prior to vtlib when I used to do permissions updates by hand.  Have you changed any sharing rules with SQL recently?</div>


</div>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br></div>