For Info a bug

Discussion in 'aMember Pro v.4' started by fmagusto, Dec 10, 2011.

  1. fmagusto

    fmagusto Guest

    when i create a product with link identique

    MYSQL ERROR<br /> Array<br /> (<br />
    Code:
     => 1062<br /> [message] => Duplicate entry 'http://www.infoconcours.com/journalabonne2' for key 3<br /> [query] => INSERT INTO am_folder SET `title`='Journal Infoconcours cgi', `hide`='1', `path`='/home/infoconc/cgi-bin/journalabonne2', `url`='http://www.infoconcours.com/journalabonne2', `method`='new-rewrite'<br /> [context] => /home/infoconc/www/amember/library/Am/Record.php line 771<br /> )<br />
    
    [COLOR=#000000]call_user_func [ library/DbSimple/Generic.php : 1244 ]
    DbSimple_Generic_LastError->_setLastError [ library/DbSimple/Generic.php : 861 ]
    DbSimple_Generic_Database->_setLastError [ library/DbSimple/Generic.php : 1461 ]
    DbSimple_Mypdo->_setDbError [ library/DbSimple/Generic.php : 1421 ]
    DbSimple_Mypdo->_performQuery [ library/DbSimple/Generic.php : 465 ]
    DbSimple_Generic_Database->_query [ library/DbSimple/Generic.php : 211 ]
    DbSimple_Generic_Database->query [ library/Am/Record.php : 771 ]
    Am_Table->insert [ library/Am/Record.php : 124 ]
    Am_Record->insert [ library/Am/Query.php : 319 ]
    Am_Query->insertRecord [ library/Am/Grid/Editable.php : 412 ]
    Am_Grid_Editable->doFormActions [ library/Am/Grid/Action/Abstract.php : 136 ]
    Am_Grid_Action_Abstract->_runFormAction [ library/Am/Grid/Action/Insert.php : 23 ]
    Am_Grid_Action_Insert->run [ library/Am/Grid/Editable.php : 221 ]
    Am_Grid_Editable->actionRun [ library/Am/Grid/ReadOnly.php : 394 ]
    Am_Grid_ReadOnly->run [ library/Am/Controller/Pages.php : 118 ]
    Am_Controller_Pages->renderPage [ library/Am/Controller/Pages.php : 65 ]
    Am_Controller_Pages->__call [ library/Am/Controller.php : 118 ]
    Am_Controller->dispatch [ library/Zend/Controller/Dispatcher/Standard.php : 295 ]
    Zend_Controller_Dispatcher_Standard->dispatch [ library/Zend/Controller/Front.php : 954 ]
    Zend_Controller_Front->dispatch [ library/Am/App.php : 1360 ]
    Am_App->run [ index.php : 41 ][/COLOR]
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Actually it should generate an error when you will try to protect the same folder twice.
    But error description should be more user friendly. We will fix this .
  3. fmagusto

    fmagusto Guest

    yes I understood it was to lift your bug information

Share This Page