Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: VeryThinClient for SugarCRM

  1. #1
    pchelp is offline Member
    Join Date
    Jan 2010
    Posts
    11

    Default VeryThinClient for SugarCRM

    I'm trying to install VeryThinClient for SugarCRM
    This is an error message that I get:
    Warning: copy(thin.php) [function.copy]:
    failed to open stream: Permission denied in /var/www/sugar/ModuleInstall/ModuleInstaller.php on line 1518
    Failed to copy /var/www/sugar/cache/upload/upgrades/temp/KaaJ7m/verythin/thin.php to thin.php

    Installing it manually gives me access locally, but not externally.
    I'm installing it on my Ubuntu.
    When I install it on my shared hosting it works. I assume, this is because of the differences in apache settings
    Any ideas?

  2. #2
    AlexAv's Avatar
    AlexAv is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Ukraine
    Posts
    922

    Default Re: VeryThinClient for SugarCRM

    Letrium ltd. - Only high quality service
    http://letrium.com

  3. #3
    pchelp is offline Member
    Join Date
    Jan 2010
    Posts
    11

    Default Re: VeryThinClient for SugarCRM

    Setting the permissions straight solved the installation problem. Actually I set owner and group to apache user. (chown, chgrp)
    But I still can't access thin.php from outside.
    Also the sugarroot/thin.php is accessible from outside (it just takes 5 min to get to login page) the login ultimately fails after a long wait (couple of minutes)
    sugar itself works fast and server response times are perfect.
    Last edited by pchelp; 2010-01-27 at 11:02 PM.

  4. #4
    AlexAv's Avatar
    AlexAv is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Ukraine
    Posts
    922

    Default Re: VeryThinClient for SugarCRM

    Hi,

    Can you get me a link for SugarCRM?
    Letrium ltd. - Only high quality service
    http://letrium.com

  5. #5
    AlexAv's Avatar
    AlexAv is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Ukraine
    Posts
    922

    Default Re: VeryThinClient for SugarCRM

    Thank you for a link that you sent to me from a pm.

    Can you show thin.php code?
    Letrium ltd. - Only high quality service
    http://letrium.com

  6. #6
    pchelp is offline Member
    Join Date
    Jan 2010
    Posts
    11

    Default Re: VeryThinClient for SugarCRM

    I didn't alterate it.
    <?php
    if(!defined('sugarEntry'))define('sugarEntry', true);
    /************************************************** *******************************
    * SugarCRM is a customer relationship management program developed by
    * SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
    *
    * This program is free software; you can redistribute it and/or modify it under
    * the terms of the GNU General Public License version 3 as published by the
    * Free Software Foundation with the addition of the following permission added
    * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
    * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
    * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
    *
    * This program is distributed in the hope that it will be useful, but WITHOUT
    * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
    * details.
    *
    * You should have received a copy of the GNU General Public License along with
    * this program; if not, see http://www.gnu.org/licenses or write to the Free
    * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    * 02110-1301 USA.
    *
    * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
    * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
    *
    * The interactive user interfaces in modified source and object code versions
    * of this program must display Appropriate Legal Notices, as required under
    * Section 5 of the GNU General Public License version 3.
    *
    * In accordance with Section 7(b) of the GNU General Public License version 3,
    * these Appropriate Legal Notices must retain the display of the "Powered by
    * SugarCRM" logo. If the display of the logo is not reasonably feasible for
    * technical reasons, the Appropriate Legal Notices must display the words
    * "Powered by SugarCRM".
    ************************************************** ******************************/
    /************************************************** *******************************
    * Function: VeryThinClient for SugarCRM
    * Description: Index file
    * Author: Editha Kuske - 2008
    ************************************************** ******************************/

    set_include_path(
    dirname(__FILE__) . '/..' . PATH_SEPARATOR .
    get_include_path()
    );
    //patch

    include("thin/header.php");
    require_once('thin/detail_masks.php');

    if (isset($_SESSION['authenticated_user_id']) && ($_SESSION['authenticated_user_id'] > ' '))
    {
    if (isset($ar_bean_descr))
    $str_head = ": ".$ar_bean_descr['module_name'];
    switch ($modus)
    {
    case 'list':
    $_SESSION['bean_id'] = "0";

    header_line($bean,$modus);
    $data_list_par = "bean=$bean&amp;modus=detail";
    include("thin/show_list.php");
    break;

    case 'detail':
    if (isset($_POST['btn_create']) || isset($_POST['btn_update']))
    {
    $thin_soap_client->getMetaData($ar_bean_descr);
    if(execute_submit($bean_id,$ar_bean_descr))
    {
    $last_pos = count($_SESSION['location'])-1;
    unset($_SESSION['location'][$last_pos]);
    unset($GLOBALS['_POST']);
    if ($bean_id)
    header("Location: thin.php?bean=$bean&modus=detail&bean_id=$bean_id" );
    }
    }
    else
    if (isset($_GET['action']))
    {
    if ($_GET['action'] == select)
    {
    $sel_par = $_GET['sel_par'];
    $related_bean = $_GET['related_bean'];
    $mod1 = $ar_beans[$bean]['module_name'];
    $mod2 = $ar_beans[$related_bean]['module_name'];
    if ((($bean == 'Call')|| ($bean == 'Meeting')) && ($related_bean = 'Contact'))
    {
    // calls_contacts, meetings_contacts
    $thin_soap_client->set_relationship($mod2,$sel_par,$mod1,$bean_id) ;
    }
    else
    {
    $thin_soap_client->set_relationship($mod1,$bean_id,$mod2,$sel_par) ;
    }
    }
    $thin_soap_client->getModuleData($bean_id);
    }
    else
    if ($bean_id != "0")
    {
    $thin_soap_client->getModuleData($bean_id);
    }
    $name = "";
    if (isset($ar_meta_fields['name']['value']))
    $name = $ar_meta_fields['name']['value'];

    header_line($bean,$modus,$name);
    if (!isset($GLOBALS['_GET']['scroll']) && !isset($GLOBALS['_POST']['search']))
    {
    $_SESSION['only_my_items'] = 1;
    $_SESSION['start_pos'] = 0;
    }
    //print_r($ar_meta_fields);
    include("thin/show_detail.php");
    break;

    case 'related':
    include("thin/show_related.php");
    break;

    case 'copyright':
    header_line($bean,$modus);
    include("thin/copyright.php");
    break;

    default:
    $_SESSION['only_my_items'] = 1;
    $_SESSION['start_pos'] = 0;

    header_line($bean,$modus);
    $tr_odd[0] = "class=\"tr-odd\"";
    $tr_odd[1] = "";
    $i = 0;
    foreach($ar_beans as $key => $val)
    {
    if ($val['main_menu'] == 'visible')
    {
    echo "
    <tr><td colspan=\"2\" ".$tr_odd[$i]."><a href=\"thin.php?bean=$key&amp;modus=list\">".$val['module_name']."</a><br /></td></tr>
    ";
    $i = ($i + 1)%2;
    }
    }
    /*
    echo "
    <tr><td colspan=\"2\" $tr_odd><a href=\"thin.php?bean=Account&amp;modus=list\">Acco unts</a><br /></td></tr>
    <tr><td colspan=\"2\" $tr_even><a href=\"thin.php?bean=Contact&amp;modus=list\">Cont acts</a><br /></td></tr>
    <tr><td colspan=\"2\" $tr_odd><a href=\"thin.php?bean=Opportunity&amp;modus=list\"> Opportunities</a><br /></td></tr>
    <tr><td colspan=\"2\" $tr_even>&nbsp;</td></tr>
    <tr><td colspan=\"2\" $tr_even><a href=\"thin.php?bean=Call&amp;modus=list\">Calls</a><br /></td></tr>
    <tr><td colspan=\"2\" $tr_odd><a href=\"thin.php?bean=Meeting&amp;modus=list\">Meet ings</a><br /></td></tr>
    ";
    */

    //Calendar View <tr><td colspan=\"2\" $tr_odd><a href=\"thin.php?bean=Calendar&modus=list\">Calende r View</a><br /></td></tr>

    break;
    }
    }
    else
    {
    if (!empty($GLOBALS['_GET']))
    header("Location: thin.php");
    else
    if (!empty($GLOBALS['_SESSION']))
    unset($GLOBALS['_SESSION']);

    login_form($user_name,$user_password,$login_failed );
    }
    include("thin/footer.php");
    ?>

  7. #7
    AlexAv's Avatar
    AlexAv is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Ukraine
    Posts
    922

    Default Re: VeryThinClient for SugarCRM

    There are several include and require_once files.
    I think it is better to contact with VeryThinClient developers
    Letrium ltd. - Only high quality service
    http://letrium.com

  8. #8
    pchelp is offline Member
    Join Date
    Jan 2010
    Posts
    11

    Default Re: VeryThinClient for SugarCRM

    I did, but there is no response there. I don't think the problem is with their soft, as I installed the same package at another location (on shared hosting) and it works flawlessly.
    The question is what could cause it to work locally (localhost/sugar/thin.php) and do not work on production (via external IP address). This is extremely weird, as sugar itself works locally and externally.
    Last edited by pchelp; 2010-02-06 at 01:19 AM.

  9. #9
    AlexAv's Avatar
    AlexAv is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Ukraine
    Posts
    922

    Default Re: VeryThinClient for SugarCRM

    We Can Only Guess, why it not working ... Try to compare a php.ini settings.
    Letrium ltd. - Only high quality service
    http://letrium.com

  10. #10
    pchelp is offline Member
    Join Date
    Jan 2010
    Posts
    11

    Default Re: VeryThinClient for SugarCRM

    I carefully compared php.ini. Played with multiple settings. The one that on the hosted server (which works) doesn't include [soap].
    Disabling all the lines of php.ini under [soap] on problematic server didn't change anything.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 36
    Last Post: 2010-06-05, 12:24 PM
  2. VeryThinClient issues (I think)
    By bazianm in forum Downloads
    Replies: 0
    Last Post: 2008-12-11, 09:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •