v4.2 beta select file from disk bug report

Discussion in 'aMember Pro v.4' started by youjoomla, Mar 28, 2012.

  1. youjoomla

    youjoomla Member

    Joined:
    May 15, 2007
    Messages:
    61
    Thank you for this feature we would never be able to use v4 without this.
    I fund a small bug ,

    Created new file record and were able to select files placed in upload folder.

    1. had to create upload folder manually since it does not exist on fresh install( might be option somewhere in admin)

    2. Was able to select a file from upload folder and worked fine on save . Than created a sub folder , upload/test and placed few files in there , was also able to see them trough disk button but if I select any of the files within sub folder , on save I get
    An internal error happened in the script, please contact webmaster for details
    note that I did not create another file but I edited existing one that previously worked.
  2. youjoomla

    youjoomla Member

    Joined:
    May 15, 2007
    Messages:
    61
    just tested and issue 2 has same bug on newly created file if selected from subfolder within upload folder
  3. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    Hello,

    Thank you for this bug report!
    I just fixed it. I can apply fix to your installation as well.
    Please contact us in helpdesk.

    Best Regards.
  4. youjoomla

    youjoomla Member

    Joined:
    May 15, 2007
    Messages:
    61
    I am testing on local , if you could advise what the fix is or attach file that would be great
  5. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    The fix will be available in 4.2.1, for now it is better to don't use subfolders.
  6. youjoomla

    youjoomla Member

    Joined:
    May 15, 2007
    Messages:
    61
    I upgraded from 4.2 to 4.2.3 and this fix is not in still getting
    An internal error happened in the script, please contact webmaster for details
  7. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Please add this to /amember/application/config.php :
    define('APPLICATION_ENV', 'debug');
    Then test again and provide full output of error message.
  8. youjoomla

    youjoomla Member

    Joined:
    May 15, 2007
    Messages:
    61
    This bug is after save



    exception 'Am_Exception_InternalError' with message 'File does not exists in Am_Storage::assertFileInsideFolder' in C:\wamp\www\SITE\join2\amember\library\Am\Storage.php:107
    Stack trace:
    #0 C:\wamp\www\SITE\join2\amember\library\Am\Storage.php(353): Am_Storage->assertFileInsideFolder('C:\wamp\www\SITE\...', 'C:\wamp\www\SITE\...')
    #1 C:\wamp\www\SITE\join2\amember\library\Am\Storage.php(42): Am_Storage_Disk->get('demosElegance_U...')
    #2 C:\wamp\www\SITE\join2\amember\library\Am\Form.php(377): Am_Plugins_Storage->getFile('disk::demos\Ele...')
    #3 C:\wamp\www\SITE\join2\amember\library\Am\Form.php(434): Am_Form_Element_Upload->setValue('disk::demos\Ele...')
    #4 C:\wamp\www\SITE\join2\amember\library\pear\HTML\QuickForm2\Node.php(473): Am_Form_Element_Upload->updateValue()
    #5 C:\wamp\www\SITE\join2\amember\library\pear\HTML\QuickForm2\Container.php(228): HTML_QuickForm2_Node->setContainer(Object(Am_Form_Admin))
    #6 C:\wamp\www\SITE\join2\amember\library\pear\HTML\QuickForm2\Container.php(256): HTML_QuickForm2_Container->appendChild(Object(Am_Form_Element_Upload))
    #7 C:\wamp\www\SITE\join2\amember\library\Am\Form.php(35): HTML_QuickForm2_Container->addElement(Object(Am_Form_Element_Upload), NULL, NULL, Array)
    #8 C:\wamp\www\SITE\join2\amember\application\default\controllers\AdminContentController.php(326): Am_Form->addElement(Object(Am_Form_Element_Upload))
    #9 C:\wamp\www\SITE\join2\amember\library\Am\Grid\Editable.php(151): Am_Grid_Editable_Files->createForm()
    #10 C:\wamp\www\SITE\join2\amember\library\Am\Grid\Editable.php(425): Am_Grid_Editable->getForm()
    #11 C:\wamp\www\SITE\join2\amember\library\Am\Grid\Action\Abstract.php(140): Am_Grid_Editable->doFormActions('insert')
    #12 C:\wamp\www\SITE\join2\amember\library\Am\Grid\Action\Insert.php(24): Am_Grid_Action_Abstract->_runFormAction('insert')
    #13 C:\wamp\www\SITE\join2\amember\library\Am\Grid\Editable.php(231): Am_Grid_Action_Insert->run(Object(Am_Grid_Editable_Files))
    #14 C:\wamp\www\SITE\join2\amember\library\Am\Grid\ReadOnly.php(402): Am_Grid_Editable->actionRun('insert')
    #15 C:\wamp\www\SITE\join2\amember\library\Am\Controller\Pages.php(126): Am_Grid_ReadOnly->run(Object(Zend_Controller_Response_Http))
    #16 C:\wamp\www\SITE\join2\amember\library\Am\Controller\Pages.php(73): Am_Controller_Pages->renderPage(Object(Am_Controller_Pages_Page))
    #17 C:\wamp\www\SITE\join2\amember\library\Am\Controller.php(118): Am_Controller_Pages->__call('indexAction', Array)
    #18 C:\wamp\www\SITE\join2\amember\library\Zend\Controller\Dispatcher\Standard.php(295): Am_Controller->dispatch('indexAction')
    #19 C:\wamp\www\SITE\join2\amember\library\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Am_Request), Object(Zend_Controller_Response_Http))
    #20 C:\wamp\www\SITE\join2\amember\library\Am\App.php(1510): Zend_Controller_Front->dispatch()
    #21 C:\wamp\www\SITE\join2\amember\index.php(41): Am_App->run()
    #22 {main}:File does not exists in Am_Storage::assertFileInsideFolder

    #0 C:\wamp\www\SITE\join2\amember\library\Am\Storage.php(353): Am_Storage->assertFileInsideFolder('C:\wamp\www\SITE\...', 'C:\wamp\www\SITE\...')

    #1 C:\wamp\www\SITE\join2\amember\library\Am\Storage.php(42): Am_Storage_Disk->get('demosElegance_U...')

    #2 C:\wamp\www\SITE\join2\amember\library\Am\Form.php(377): Am_Plugins_Storage->getFile('disk::demos\Ele...')

    #3 C:\wamp\www\SITE\join2\amember\library\Am\Form.php(434): Am_Form_Element_Upload->setValue('disk::demos\Ele...')

    #4 C:\wamp\www\SITE\join2\amember\library\pear\HTML\QuickForm2\Node.php(473): Am_Form_Element_Upload->updateValue()

    #5 C:\wamp\www\SITE\join2\amember\library\pear\HTML\QuickForm2\Container.php(228): HTML_QuickForm2_Node->setContainer(Object(Am_Form_Admin))

    #6 C:\wamp\www\SITE\join2\amember\library\pear\HTML\QuickForm2\Container.php(256): HTML_QuickForm2_Container->appendChild(Object(Am_Form_Element_Upload))

    #7 C:\wamp\www\SITE\join2\amember\library\Am\Form.php(35): HTML_QuickForm2_Container->addElement(Object(Am_Form_Element_Upload), NULL, NULL, Array)

    #8 C:\wamp\www\SITE\join2\amember\application\default\controllers\AdminContentController.php(326): Am_Form->addElement(Object(Am_Form_Element_Upload))

    #9 C:\wamp\www\SITE\join2\amember\library\Am\Grid\Editable.php(151): Am_Grid_Editable_Files->createForm()

    #10 C:\wamp\www\SITE\join2\amember\library\Am\Grid\Editable.php(425): Am_Grid_Editable->getForm()

    #11 C:\wamp\www\SITE\join2\amember\library\Am\Grid\Action\Abstract.php(140): Am_Grid_Editable->doFormActions('insert')

    #12 C:\wamp\www\SITE\join2\amember\library\Am\Grid\Action\Insert.php(24): Am_Grid_Action_Abstract->_runFormAction('insert')

    #13 C:\wamp\www\SITE\join2\amember\library\Am\Grid\Editable.php(231): Am_Grid_Action_Insert->run(Object(Am_Grid_Editable_Files))

    #14 C:\wamp\www\SITE\join2\amember\library\Am\Grid\ReadOnly.php(402): Am_Grid_Editable->actionRun('insert')

    #15 C:\wamp\www\SITE\join2\amember\library\Am\Controller\Pages.php(126): Am_Grid_ReadOnly->run(Object(Zend_Controller_Response_Http))

    #16 C:\wamp\www\SITE\join2\amember\library\Am\Controller\Pages.php(73): Am_Controller_Pages->renderPage(Object(Am_Controller_Pages_Page))

    #17 C:\wamp\www\SITE\join2\amember\library\Am\Controller.php(118): Am_Controller_Pages->__call('indexAction', Array)

    #18 C:\wamp\www\SITE\join2\amember\library\Zend\Controller\Dispatcher\Standard.php(295): Am_Controller->dispatch('indexAction')

    #19 C:\wamp\www\SITE\join2\amember\library\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Am_Request), Object(Zend_Controller_Response_Http))

    #20 C:\wamp\www\SITE\join2\amember\library\Am\App.php(1510): Zend_Controller_Front->dispatch()

    #21 C:\wamp\www\SITE\join2\amember\index.php(41): Am_App->run()

    #22 {main}
  9. youjoomla

    youjoomla Member

    Joined:
    May 15, 2007
    Messages:
    61
    One more fund ,


    the files are visible max 1 folder deep , example


    upload/products/

    upload/products/product1/ - I see only folders or sub folders tree and files are not visible and when I browse to it in Upload files window I get

    Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for '-4.0/DST' instead in C:\wamp\www\SITE\join2\amember\library\Am\Di.php on line 259

    Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for '-4.0/DST' instead in C:\wamp\www\SITE\join2\amember\library\Am\Di.php on line 259
  10. youjoomla

    youjoomla Member

    Joined:
    May 15, 2007
    Messages:
    61
    I tested the DB fields of am_file table , and manually changed the path testing subfolders and downloads worked

    you have backslash issue in your store function and that is why is not saving


    after selecting file and you hover on *File file name you see

    admin-upload/get?id=disk::demos\Indemos.zip


    and should be
    admin-upload/get?id=disk::/demos/Indemos.zip

    so somewhere in store file function your are striping slashes
  11. youjoomla

    youjoomla Member

    Joined:
    May 15, 2007
    Messages:
    61
    any news on this ?

Share This Page