need help for my first app

  • hi,


    yesterday, i have test app software autoinstall creation.But when i upload the app the software manager say incorrect tar.gz


    This is the link to the app http:\\totalynet.fr.cr\dotclear-2.4.1.2-fr.tar.gz


    thanks for your help.

    Debian 6 with proxmox 2 - OpenVZ - KVM
    I-mscp 1.0.3.0 migrate from ispcp 1.0.7
    dovecot + zarafa + z-push + maia mail guard + apacheITK

  • Hi...
    It seems like a problem while installing the package...
    The problem are the french language with `, ´ and so on...


    I search for a solution.



    OK...
    If find the problem and i find the solution...
    Search the file "imscp-pkt-mngr" and open it.
    Inside search for this section (line 302)

    Code
    1. $sql = " UPDATE `web_software` SET `software_installtype` = '".$INSTALL_DATA{software_installtype}."', `software_name` = '".$INSTALL_DATA{software_name}."', `software_version` = '".$INSTALL_DATA{software_version}."', `software_language` = '".$INSTALL_DATA{software_language}."', `software_type` = '".$INSTALL_DATA{software_type}."', `software_db` = '".$INSTALL_DATA{software_db}."', `software_installfile` = '".$INSTALL_DATA{software_installfile}."', `software_prefix` = '".$INSTALL_DATA{software_prefix}."', `software_link` = '".$INSTALL_DATA{software_link}."', `software_desc` = '".$INSTALL_DATA{software_desc}."', `software_status` = 'ready' WHERE `software_id` = $sw_software_id ";


    Add this

    Code
    1. $INSTALL_DATA{software_desc} =~ s/(["'*])/\\$1/g;


    before

    Code
    1. $sql = "


    After this fix the package will be installed...
    I will fix this in the git.

    Edited once, last by TheCry ().

  • hi,


    thanks cry, i will be test.[hr]
    ok it works, tanks[hr]
    i have had the app to the list but i have this error in imscp_pkt_mngr_engine.log:


    [ERROR] [Wed Jan 11 17:03:39 2012] main::engine: Name "main::cleared" used only once: possible typo at /var/www/imscp/engine/imscp-pkt-mngr line 356.


    but works

    Debian 6 with proxmox 2 - OpenVZ - KVM
    I-mscp 1.0.3.0 migrate from ispcp 1.0.7
    dovecot + zarafa + z-push + maia mail guard + apacheITK

    Edited once, last by krok ().


  • i have had the app to the list but i have this error in imscp_pkt_mngr_engine.log:


    [ERROR] [Wed Jan 11 17:03:39 2012] main::engine: Name "main::cleared" used only once: possible typo at /var/www/imscp/engine/imscp-pkt-mngr line 356.


    That is ok.. I will fix this, but it don't crash any installation



    You have to escape $ and @ (\$ or \@) in the dotclear_fr... Thats the trick.
    If you test the perl script manuelly on the server you will see every error you make...
    Put the dotclear_fr in the tmp folder and call it "perl dotclear_fr"

    Edited once, last by TheCry ().

  • Ok...
    I tested you dotclear package...


    There are some issues...
    At first... Not all database tables where deleted...
    There was a problem with this error "a foreign key constraint fails"...
    To fix this problem you need to add this lines to your install script (uninstall section)

    Code
    1. $sql = "SET foreign_key_checks = 0;"; doSQL($sql);


    I will add this to the default script!


    Then i found some usernames "krok" in the sql dump.
    Change this to admin... This is better...
    Some links are pointed to your site.
    Change this to "imscp.net"... The same with the emailadresses. Change them to "[email protected]".


    In the config file you didn't set a correct emailadress...
    To insert a adress use this:

    Code
    1. define('DC_ADMIN_MAILFROM','webmaster\@$domain_name');


    Update every date colum to the actually date!


    And the last... Every ip set to localhost or 127.0.0.1!


    I'd changed everything and i will upload the package to our repo.

    Edited once, last by TheCry ().