Skip to content
This repository has been archived by the owner on Nov 28, 2017. It is now read-only.

Installation not work with Joomla 3.4.4 #28

Open
GLAlfieri opened this issue Sep 18, 2015 · 0 comments
Open

Installation not work with Joomla 3.4.4 #28

GLAlfieri opened this issue Sep 18, 2015 · 0 comments

Comments

@GLAlfieri
Copy link

Page: Developing an MVC Component/Adding language management

I have JLIB_INSTALLER_ABORT_COMP_FAIL_ADMIN_FILES error. Installer not allow to write in:
/admin/language

Solution: move languages files to component path.

Edit helloworld.xml form

<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="3.2.0" method="upgrade">

    <name>COM_HELLOWORLD</name>

    ...

    <files folder="site">
        <filename>index.html</filename>
        <filename>helloworld.php</filename>
        <filename>controller.php</filename>     
        <folder>views</folder>
        <folder>models</folder>
    </files>

    <languages folder="site/language">
        <language tag="en-GB">en-GB/en-GB.com_helloworld.ini</language>
    </languages>


    <administration>
        <menu link='index.php?option=com_helloworld'>COM_HELLOWORLD_MENU</menu>
        <files folder="admin">
            <filename>index.html</filename>
            <filename>helloworld.php</filename>
            <filename>controller.php</filename> 

            <folder>sql</folder>
            <folder>tables</folder>
            <folder>models</folder>
            <folder>views</folder>

            <languages folder="admin/language">
                <language tag="en-GB">en-GB/en-GB.com_helloworld.ini</language>
                <language tag="en-GB">en-GB/en-GB.com_helloworld.sys.ini</language>
            </languages>
        </files>
    </administration>

</extension>

to

<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="3.2.0" method="upgrade">
    <name>COM_HELLOWORLD</name>

    ...

    <files folder="site">
        <filename>index.html</filename>
        <filename>helloworld.php</filename>
        <filename>controller.php</filename>     
        <folder>views</folder>
        <folder>models</folder>
        <folder>language</folder>
    </files>

    <administration>
        <menu link='index.php?option=com_helloworld'>COM_HELLOWORLD_MENU</menu>
        <files folder="admin">
            <filename>index.html</filename>
            <filename>helloworld.php</filename>
            <filename>controller.php</filename> 
            <folder>sql</folder>
            <folder>tables</folder>
            <folder>models</folder>
            <folder>views</folder>
            <folder>language</folder>
        </files>
    </administration>

</extension>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant