View Full Version : 1st template - zip error installer_common.php on line 1130
I have produced my first template...
Installs fine manually and works..... :)
When I ZIP using the XP Zip utility I get this
error on the attempt..
Warning: Missing argument 4 for uploadfile() in W:\www\mambo45\administrator\includes\installer_co mmon.php on line 1130
Installation file not found
Any sense of what I have done wrong?
WebCruzer
16.04.2004, 22:30
:rolleyes3 Windows Builtin ZIP... Download WINZIP, WINRAR or WINACE, many more options..
I too had that error when installing my first Template. What I found was this.. you have to make sure your Theme Name Folder is the exact same spelling as the install description in the templateDetails.xml .. I'm currently making 3 more very cool "Canadian Styled" Templates and source will be available as well on my site.
MY Example: My first theme is called " alternative_tech ", the folder to zip is called the same, and the following file (templateDetails.xml) has the same descripted name.. ..
============================MY tempateDetails.xml Notepad File
?xml version="1.0" encoding="iso-8859-1"?>
<mosinstall type="template">
<name>alternative_tech</name>
<creationDate>April 2004</creationDate>
<author>Trevor Schouwstra</author>
<copyright>Copyright 2004. Released under GNU Public License.</copyright>
<authorEmail>your-email@where</authorEmail>
<authorUrl>www.cruzers.homeip.net</authorUrl>
<version>MOS 1.0</version>
<description>Mambo 4.5 Template. Stable</description>
<files>
<filename>index.php</filename>
</files>
<images>
<filename>images/favicon.ico</filename>
</images>
<css>
<filename>css/template_css.css</filename>
</css>
</mosinstall>
==========================SAVED AS templateDetails.xml
Sooo.. here's my summary incase I lost you, or other readers..
I made a folder called " alternative_tech "
Inside the folder I have the following files & folders
- index.php
- templateDetails.xml
- FOLDER images/myimages.*
- FOLDER css/template_css.css
ZIP the primary folder (my case its "alternative_tech")
Upload alternative_tech.zip
Publish..
Hope this helps abit..:)
[QUOTE=WebCruzer.. I'm currently making 3 more very cool "Canadian Styled" Templates and source will be available as well on my site.
[/QUOTE]
I will look at that..
Canadian Styled?? Do tell?
Moose and beaver backgrounds? Molson Canadian Beer bottles?
Vancouver Canucks logo?? :-)
Colin in Victoria -
www.coffeecrew.com
WebCruzer
17.04.2004, 02:35
YEP!
1st will be Our Red maple Leaf.. Project is called "canadian_mamboleaf" will have red/white theme fully customizable.. should be ready tonight!
YEP!
1st will be Our Red maple Leaf.. Project is called "canadian_mamboleaf" will have red/white theme fully customizable.. should be ready tonight!
Excellent!
Went over all my files.. template_css.css, image directories..
index.php etc etc etc...
It might have something to do with my choice of ZIP
utilities because I downloaded a pre-existing template
off of mamboportal.com (several in fact)...
saved them in a directory with all the right
subdirectories...
and then used QuickZip, XPZip and QZip to
"repackage" these perfectly good templates...
and then tried to upload them into one of
several MAMBO installs with the SAME error
message....
So: Stands to reason that my ZIP methodology is
bad....
:cool:
Thanks for all/all suggestions..
tonyskyday
17.04.2004, 04:19
Is there going to be a Tim Horton's donut theme? lol
Is there going to be a Tim Horton's donut theme? lol
Lordy be jeez, eh! Yea.. Tim Hortons theme.. ya have given me
a great idea, eh?
If I kin just master this template develop and deploy thing,
I will make this my first priority..
A Maple-Dip or Apple fritter makes the perfect backdrop
for one tasty template, eh?
Like, Okay, stay tuned eh..
Well.. I have tried about 1/2 dozen Zip utilities..
including 7-Zip, QuickZip, WinZip etc etc etc..
I have even downloaded and unpacked perfectly
good templates... rezipped them and I get the same
error:
zip error installer_common.php on line 1130
installation file not found...
Hey. I am offering a reward of a pound of
fresh roasted gourmet coffee to anyone
that can help me solve this...or an exotic coffee
mug... or a Rancilio Baseball Cap... or......
I am itching to get some of my templates
to the world... and at this rate!
Problem solved!
When you create a MAMBO template, the following directory
hierarchy is:
TemplateName
---------------------index.php
----------------------template_image.png
-----------------------template_details.xml
images(folder)
------image1
------image2
------image3
css(folder)
---templatename_css.css
Where I made a mistake is adding in a directory above all of this
called TEMPLATES.......... big boo-boo I picked
up from the MIRO template tutorial from 2003
In the final run, I end up zipping a package with the following tree:
TemplateName (folder)
-index.php, template_image.png, template_details.xml
images(folder)
css(folder)
Hopefully, within a month or so, I should start pumping out
some templates..
If anyone is starting out in template production, I am open to
helping out whereever I can..
tonyskyday
19.04.2004, 05:00
Where I made a mistake is adding in a directory above all of this
called TEMPLATES.......... big boo-boo I picked
up from the MIRO template tutorial from 2003
Ah! You know, I think I made the same mistake when I first started working with Mambo (looking a some MIRO tutorial) before I finally figgured things out. Maybe MOS needs to pick another dance and rename itself. Hmm, "Bosa Open Source" just doesn't have the same ring... :)
-Tony
WebCruzer
19.04.2004, 05:03
:thumbsup:
LOL, some of the simplest things really make us FrUsTeRaTeD!!
Ah! You know, I think I made the same mistake when I first started working with Mambo (looking a some MIRO tutorial) before I finally figgured things out. Maybe MOS needs to pick another dance and rename itself. Hmm, "Bosa Open Source" just doesn't have the same ring... :)
-Tony
Yes - that is how I got caught up.. the Miro tutorial from 2003
that mentioned a java-script in the template directory...
that would soon be replaced by the temlate_xml details
file...
Us Mambites get REALLY good at developing Mambo
'cause we ALWAYS feel totally on our own to figure things out! :)
truth is, I LOVE mambo!
vBulletin® v3.8.0, Copyright ©2000-2013, Jelsoft Enterprises Ltd.