Results 1 to 2 of 2

Thread: Ayuda con 2 errores (Migración de Hosting a Server Local)

  1. #1
    rargueta is offline Sugar Community Member
    Join Date
    Sep 2009
    Location
    Guatemala
    Posts
    10

    Lightbulb Ayuda con 2 errores (Migración de Hosting a Server Local)

    Hola amigos gusto de saludarles nuevamente, quisiera un poco de apoyo. Verán tengo la necesidad de migrar el Sugarcrm de un hosting a modo local. el ambiente es Windows Sever 2008, actualmente estoy utilizando xampp para levantar el server local


    Características modo local

    ###### Apache Friends XAMPP (Basis Package) version 1.7.3 ######

    + Apache 2.2.14 (IPV6 enabled)
    + MySQL 5.1.41 (Community Server) with PBXT engine 1.0.09-rc
    + PHP 5.3.1 (PEAR, Mail_Mime, MDB2, Zend)
    + Perl 5.10.1 (Bundle::Apache2, Apache2::Request, Bundle::Apache::ASP, Bundle::Email, Bundle:BD::mysql, DBD::SQlite, Randy Kobes PPM)
    + XAMPP Control Version 2.5.8 (ApacheFriends Edition)
    + XAMPP CLI Bundle 1.6
    + XAMPP Port Check 1.5
    + XAMPP Security 1.1
    + SQLite 2.8.17
    + SQLite 3.6.20
    + OpenSSL 0.9.8l
    + phpMyAdmin 3.2.4
    + ADOdb v5.10
    + FPDF v1.6
    + Zend Framework 1.9.6 Minimal Package (via PEAR)
    + Mercury Mail Transport System v4.72
    + msmtp 1.4.19 (a sendmail compatible SMTP client)
    + FileZilla FTP Server 0.9.33
    + Webalizer 2.21-02 (with GeoIP lite)
    + apc 3.1.3p1 for PHP
    + eAccelerator 0.9.6-rc1 for PHP
    + Ming 0.4.3 for PHP
    + PDF with pdflib lite v7.0.4p4 for PHP
    + rar 2.0.0-dev for PHP
    + Xdebug 2.0.6-dev for PHP
    + libapreq2 v2.12 (mod_apreq2) for Apache


    Características del hosting:

    Apache version 2.2.17
    PHP version 5.2.17
    MySQL version 5.1.56-community-log
    Architecture x86_64
    Operating system linux


    1er error:
    La version de sugarcrm es Versión 5.2.0k se preguntaran porque no se actualiza, el motivo es porque otro persona que le presto servicio a la empresa hizo cambio en el sistema para poder posponer las llamadas como cuando utilizas outlook (posponer 5min, 10min, 1 hora, etc) y es con este modulo con el que tengo el primer problema pues a la hora de seleccionar posponer me muestra el siguiente error

    Posponer
    Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '), reminder_time = 60, date_end = DATE_ADD(date_end, INTERV' at line 1


    Pego el código

    <?php
    include('i_entrada.php');
    include('common.php');

    $alert_tipo = get_param("alert_tipo");
    $alert_id = get_param("alert_id");
    $alert_pospuesto = get_param("alert_posponer");
    $alert_user = get_param("alert_user");
    $err = 0;

    echo "<h1>Posponer ".$alert_tipo."</h1>";

    if (isset($alert_id)) {
    $db = conectar();

    if ($alert_tipo == "Llamada") {
    $sql = "UPDATE calls SET date_start = DATE_ADD(date_start, INTERVAL ".$alert_pospuesto." SECOND),
    reminder_time = '60',
    date_end = DATE_ADD(date_end, INTERVAL ".$alert_pospuesto." SECOND)
    WHERE id = '".$alert_id."' AND assigned_user_id = '".$alert_user."'" ;

    } else {
    $sql = "UPDATE meetings SET date_start = DATE_ADD(date_start, INTERVAL ".$alert_pospuesto." SECOND),
    reminder_time = 60,
    date_end = DATE_ADD(date_end, INTERVAL ".$alert_pospuesto." SECOND)
    WHERE id = '".$alert_id."' AND assigned_user_id = '".$alert_user."'" ;

    };

    if (!mysql_query($sql,$db)) {
    die('Error: ' . mysql_error());
    };
    echo "<h3>Su ".$alert_tipo ." fue pospuesta satisfactoriamente!</h3>";
    }
    ?>

    2do error:
    Al dar click en las imágenes adjuntas obtengo el siguiente error "Referencia a archivo no válida

    Inicialmente en el config.php la ruta estaba establecida como: 'cache/upload/', de manera que no funcionaba y ahora la tengo con la siguiente ruta 'upload_dir' => 'C:/xampp/htdocs/xxxx/cache/upload/', pero aun sigo presentando el mismo error.

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Ayuda con 2 errores (Migración de Hosting a Server Local)

    El primer problema puede ser que tiene que ver con el hecho de que la version de PHP (5.2.17) que intenta usar no es compatible con la version de Sugar que tiene. Aun, si no es la raiz de este problema, seguro se le presentaria otros. Deberia usar la version 5.2.4 o por ahi.

    El segundo problema seguro es porque faltan los archivos. La ruta 'cache/upload' es la correcta. Si revisa esa carpeta existen archivos dentro de la carpeta?
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 2011-10-04, 07:30 PM
  2. Ayuda instalación en hosting de pago
    By posteo in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2011-05-30, 12:39 PM
  3. ayuda!!: Copia de Sugar en Windows Server
    By Ivan80 in forum Español
    Replies: 0
    Last Post: 2010-06-06, 07:27 PM
  4. Replies: 1
    Last Post: 2008-12-04, 06:24 PM
  5. Replies: 0
    Last Post: 2008-06-17, 11:56 AM

Tags for this Thread

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
  •