elkuku / EasyCreator

EasyCreator helps creating extensions for the Joomla! CMS
http://extensions.joomla.org/extensions/miscellaneous/development/5908
50 stars 23 forks source link

Create Package Problem #6

Closed topwebs closed 12 years ago

topwebs commented 12 years ago

Am new to EasyCreator. When I try to create a package with the template, I get the error:

File not found C:\Users\Dan\Documents\My Webs\wamp\www\joomla\C:\Users\Dan\Documents\My Webs\wamp\www\joomla/administrator/manifests\packages\pkg_package1.xml

The file pkg_package1.xml is there, but the url is partially doubled. I am on Windows 7.

elkuku commented 12 years ago

First of all... I do very little windows testing, so every bug report regarding windows is highly appreciated ;)

As always the bug is caused by the twisted slashes.. If you want to fix it up yourself, change administrator/components/com_easycreator/helpers/project/helper.php@177 from:

<?php
//-- Valid xml manifest found
return str_replace(JPATH_ROOT.DS, '', $fileName);

to:

<?php
//-- Valid xml manifest found
return str_replace(JPATH_ROOT.DS, '', JPath::clean($fileName));

Will be fixed in the next release.

I would believe, that there could be more errors like this... please don't hesitate to report them.

Thanks, Nikolai

topwebs commented 12 years ago

OK, that appears to have fixed the issue and the package is created. There is another warning however as follows: EcrProjectManifest::processParameters : Undefined JVersion Not sure if I did something wrong or this is a bug.

elkuku commented 12 years ago

It's another bug :scream:

EasyCreator is very version specific - sometimes I forget one..

You can fix it by adding

<?php
case '2.5':

in administrator/components/com_easycreator/helpers/project/manifest@809

apologies and thanks again, Nikolai

topwebs commented 12 years ago

That worked. It doesn't seem that Remove Project works for package projects, though it works for other template projects. I get the error: Invalid Project The Project could not be removed If I just delete the xml file from the scripts folder, it disappears.