[Vtigercrm-developers] Example of VT6 style cron.service?

Joe Bordes joe at tsolucio.com
Wed Apr 23 12:00:24 GMT 2014


nice :-)


El 23/04/14 13:44, Stencel, Maciej escribió:
> 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.
>
> *Z powaz.aniem / Best regards*
> *
> *
> *Maciej Stencel*
> *Tel: +48 884-997-123*
> *m.stencel at opensaas.pl <mailto:m.stencel at opensaas.pl>
> www.OpenSaaS.pl <http://www.opensaas.pl/>*
>
>
> 2014-04-23 13:42 GMT+02:00 Stencel, Maciej <m.stencel at opensaas.pl 
> <mailto:m.stencel at opensaas.pl>>:
>
>     Hi,
>     Try to paste in the top of Your script this:
>
>             require_once('includes/main/WebUI.php');
>
>             $user = new Users();
>
>             $current_user = $user->retrieveCurrentUserInfoFromFile( "1" );
>
>
>     First line loads vtiger librarys, with this You shouldn't have
>     problems with missing libraries.
>
>     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.
>
>     *Z powaz.aniem / Best regards*
>     *
>     *
>     *Maciej Stencel*
>     *Tel: +48 884-997-123*
>     *m.stencel at opensaas.pl <mailto:m.stencel at opensaas.pl>
>     www.OpenSaaS.pl <http://www.opensaas.pl/>*
>
>
>     2014-04-23 13:11 GMT+02:00 Alan Lord <alanslists at gmail.com
>     <mailto:alanslists at gmail.com>>:
>
>         On 23/04/14 12:07, Alan Lord wrote:
>
>                 Settings_Vtiger_Module_Model::getInstance('GeoTools_CoreEditor');
>
>
>         I should add that
>
>             $moduleModel =
>             Settings_GeoTools_CoreEditor_Model::getInstance();
>
>
>         doesn't work either and causes the same error.
>
>
>                 php -f modules/GeoTools/resources/cron-test.php
>                 PHP Fatal error:  Class 'Vtiger_Base_Model' not found in
>                 .../modules/Settings/Vtiger/models/Module.php on line 14
>
>
>             Cheers
>
>             Al
>
>
>
>
>         _______________________________________________
>         http://www.vtiger.com/
>
>
>
>
>
> _______________________________________________
> http://www.vtiger.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20140423/22f83e74/attachment.html>


More information about the vtigercrm-developers mailing list