CRM Open Source Business & Social CRM Software

Results 1 to 1 of 1

Thread: Import: PHP Fatal error: Call to a member function on a non-object

  1. #1
    rinux is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Italy
    Posts
    21

    Exclamation Import: PHP Fatal error: Call to a member function on a non-object

    Nel tentativo di importare nella versione 4.0 GA gli account esportati dalla 4.0 Beta si verifica un errore, il browser riporta una pagina vuota, gli account non vengono importati e nel file di errore del server web trovo il seguente messaggio;

    PHP Fatal error: Call to a member function on a non-object in path/modules/Import/ImportStep4.php on line 221

    La linea in questione è la seguente:

    $result = $this->db->query($query) or sugar_die("Error selecting sugarbean: ");

    e rientra in un blocco di codice che focalizza l'attenzione sul campo ID; ho provato ad acquisire i dati senza ID e tutto funziona correttamente, ho ripristinato il database ma non c'è verso di importare i dati mantenendo il vecchio ID; strano, la stessa operazione era riuscita correttamente nella versione Beta. Ammesso che si possano confrontare i due files in questione (ImportStep4.php) trovo le seguenti differenze:

    < * $Id: ImportStep4.php,v 1.54 2005/12/13 00:12:46 ajay Exp $
    > * $Id: ImportStep4.php,v 1.53 2005/09/25 17:30:05 chris Exp $

    < $result = $this->db->query($query) or sugar_die("Error selecting sugarbean: ");
    > $result = mysql_query($query) or sugar_die("Error selecting sugarbean: ".mysql_error());

    < $result2 = $this->db->query($query2) or sugar_die("Error deleting existing sugarbean: ");
    > $result2 = mysql_query($query2) or sugar_die("Error deleting existing sugarbean: ".mysql_error());

    ...qualcuno ha riscontrato problemi simili? E come li ha risolti?

    Grazie,
    A.BIANCHI
    Last edited by rinux; 2005-12-18 at 09:19 AM.
    echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq' | dc

Thread Information

Users Browsing this Thread

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

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
  •