0
votes

I'm trying to upload my hand-coded template to Joomla 2.5.

I have moved it to the templates folder online. Now I'm trying to INSTALL it from Extension Manager > Install (I see the path to it in the textbox against the Install button). But upon clicking the button, I get this error:

-1 - An error has occurred.

Copy failed

Here's my XML file:

<?xml version="1.0" encoding="utf-8"?>
<extension version="2.5" type="template">
    <name>Travels</name>
    <description>
        Template for Target Travels
    </description>
    <files>
        <filename>index.php</filename>
        <filename>catergory.php</filename>
        <filename>templateDetails.xml</filename>
        <filename>css/template.css</filename>  
        <filename>css/mystyle.css</filename>  
        <filename>css/common.css</filename>  
        <filename>css/crasel.css</filename>  
        <filename>css/jquery.jcarousel.css</filename>  
        <filename>css/skin.css</filename>
        <folder>css</folder>  
        <folder>images</folder>
    </files>
    <positions>  
        <position>breadcrumb</position>  
        <position>welcome</position>  
        <position>tour_catergory</position>  
        <position>left</position>  
        <position>right</position>  
        <position>top</position>  
        <position>user1</position>  
        <position>user4</position>  
        <position>footer</position>  
    </positions>
</extension>

Any idea on the cause and how to fix it?

2

2 Answers

0
votes

This is usually due to permission issues with folders. In the Joomla backend go to:

Site (top menu) >> System Information >> Directory Permissions and ensure the "templates" folder is writable. Whilst you're at it, ensure all folder and files in the list are writable.

Hope this helps

0
votes

If your template is already in place you should use discover install not install from directory. You have no need to copy files if the files are already where they need to be.