<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">nice :-)<br>
<br>
<br>
El 23/04/14 13:44, Stencel, Maciej escribió:<br>
</div>
<blockquote
cite="mid:CALO9CAj8LbOBpiqTbjiCvA4SHZcD-3FwwTKqLWzmYWdyxSv28A@mail.gmail.com"
type="cite">
<div dir="ltr">And by the way, I always run cron files from main
directory. Running Your script deep inside from within VT folder
structure always throws errors.</div>
<div class="gmail_extra"><br clear="all">
<div>
<div dir="ltr">
<div style="color:rgb(136,136,136)"><b
style="color:rgb(34,34,34)">Z poważaniem / <span
style="font-size:10pt">Best regards</span></b><br>
</div>
<div style="color:rgb(136,136,136)"><b
style="color:rgb(34,34,34)"><span style="font-size:10pt"><br>
</span></b></div>
<div style="color:rgb(136,136,136)"><b>Maciej Stencel</b></div>
<div style="color:rgb(136,136,136)"><b>Tel: <a
moz-do-not-send="true" value="+48884998123"
style="color:rgb(17,85,204)">+48 884-997-123</a></b></div>
<div style="color:rgb(136,136,136)">
<b><a moz-do-not-send="true"
href="mailto:m.stencel@opensaas.pl"
style="color:rgb(17,85,204)" target="_blank">m.stencel@opensaas.pl</a><br>
<font color="#888888"><span
style="color:rgb(127,127,127)"></span></font><font
color="#888888"><span style="color:rgb(127,127,127)"><a
moz-do-not-send="true"
href="http://www.opensaas.pl/"
style="color:rgb(17,85,204)" target="_blank">www.OpenSaaS.pl</a></span></font></b></div>
</div>
</div>
<br>
<br>
<div class="gmail_quote">2014-04-23 13:42 GMT+02:00 Stencel,
Maciej <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:m.stencel@opensaas.pl" target="_blank">m.stencel@opensaas.pl</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi,
<div>Try to paste in the top of Your script this:</div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<blockquote class="gmail_quote" style="margin:0px 0px
0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">require_once('includes/main/WebUI.php');</blockquote>
<blockquote class="gmail_quote" style="margin:0px 0px
0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">$user
= new Users();</blockquote>
<blockquote class="gmail_quote" style="margin:0px 0px
0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">$current_user
= $user->retrieveCurrentUserInfoFromFile( "1" );</blockquote>
</blockquote>
<div><br>
</div>
<div>First line loads vtiger librarys, with this You
shouldn't have problems with missing libraries.</div>
<div><br>
</div>
<div>Second one Im using to always have some user logged
in, some vt functionalities checks permissions and if
script doesnt load soem user (like admin = 1) then it
return access restricted error. </div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div dir="ltr">
<div style="color:rgb(136,136,136)"><b
style="color:rgb(34,34,34)">Z poważaniem / <span
style="font-size:10pt">Best regards</span></b><br>
</div>
<div style="color:rgb(136,136,136)">
<b style="color:rgb(34,34,34)"><span
style="font-size:10pt"><br>
</span></b></div>
<div style="color:rgb(136,136,136)"><b>Maciej Stencel</b></div>
<div style="color:rgb(136,136,136)"><b>Tel: <a
moz-do-not-send="true" value="+48884998123"
style="color:rgb(17,85,204)">+48 884-997-123</a></b></div>
<div style="color:rgb(136,136,136)"><b><a
moz-do-not-send="true"
href="mailto:m.stencel@opensaas.pl"
style="color:rgb(17,85,204)" target="_blank">m.stencel@opensaas.pl</a><br>
<font color="#888888"><span
style="color:rgb(127,127,127)"></span></font><font
color="#888888"><span
style="color:rgb(127,127,127)"><a
moz-do-not-send="true"
href="http://www.opensaas.pl/"
style="color:rgb(17,85,204)" target="_blank">www.OpenSaaS.pl</a></span></font></b></div>
</div>
</div>
<br>
<br>
<div class="gmail_quote">2014-04-23 13:11 GMT+02:00 Alan
Lord <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span>:
<div>
<div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
On 23/04/14 12:07, Alan Lord wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0
0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
<blockquote class="gmail_quote" style="margin:0
0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
Settings_Vtiger_Module_Model::getInstance('GeoTools_CoreEditor');<br>
</blockquote>
</blockquote>
<br>
I should add that<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0
0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
$moduleModel = Settings_GeoTools_CoreEditor_Model::getInstance();<br>
</blockquote>
<br>
doesn't work either and causes the same error.
<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0
0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px
#ccc solid;padding-left:1ex">
php -f modules/GeoTools/resources/cron-test.php<br>
PHP Fatal error: Class 'Vtiger_Base_Model'
not found in<br>
.../modules/Settings/Vtiger/models/Module.php
on line 14<br>
</blockquote>
</blockquote>
<br>
</div>
<div>
<div>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px
#ccc solid;padding-left:1ex">
Cheers<br>
<br>
Al<br>
</blockquote>
<br>
<br>
<br>
_______________________________________________<br>
<a moz-do-not-send="true"
href="http://www.vtiger.com/"
target="_blank">http://www.vtiger.com/</a><br>
</div>
</div>
</blockquote>
</div>
</div>
</div>
<br>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
<a class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a></pre>
</blockquote>
<br>
</body>
</html>