elkuku / EasyCreator

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

Not able to create packages with EasyCreator for J!3.0 #13

Closed machadoug closed 11 years ago

machadoug commented 11 years ago

Dear Nikolai,

I'm using the latest 0.0.19 version and Joomla! 3.0.1.

When I try to create a package I get the following error: ERROR: EcrProjectZiper::copyPackageElements - Unable to create package plg_system_mailto2ce try to copy from plg_system_mailto2ce.zip to /home/douglas/www/Dropbox/web/joomla/3.0/tmp/pkg_contactenhanced507d380778291/plg_system_mailto2ce.zip

I've checked and the /tmp/pkg_contactenhanced507d380778291/ directory is created with the "drwxr-xr-x" file permission and the user www-data;

Since this seems to be a permission issue, I've spent most of the day yesterday trying to setup suphp for the PHP handler, but I was not successful.

Is there another way to fix this?

PS: EasyCreator for Joomla 2.5 still works correctly in the same server;

Thanks in advanced for your help,

Douglas Machado

machadoug commented 11 years ago

Dear Nikolai,

I've fixed the permission issue, but now I got a new problem: ERROR: EcrProjectZiper::copyPackageElements - Unable to create package plg_system_mailto2ce try to copy from plg_system_mailto2ce_3.0.0_121022_1740.zip to /var/www/tmp/pkg_contactenhanced5085a13c87106/plg_system_mailto2ce_3.0.0_121022_1740.zip

I've changed the permission and Apache is running using the my Linux user in order to avoid any problem, but it persists;

Best regards,

machadoug commented 11 years ago

Dear Nikolai,

It just says it was unable to copy, but it does not say why. Can you please add a more detailed error message? Please let me know if it was due to a permission error.

I've changed the ordering of the package and I got the same error message, but the extension was different.

Below is the entire log:

Date: 2012-10-22 20:03:29 UTC

Software: Joomla Platform 12.2.0 Stable [ Neil Armstrong ] 21-September-2012 00:00 GMT

Fields: datetime priority message

20:03:29 INFO |¯¯¯ Starting 20:03:29 INFO Start building 20:03:29 INFO Build dir: JROOT/administrator/components/com_easycreator/data/builds/pkg_contactenhanced 20:03:29 INFO TempDir created /var/www/tmp/pkg_contactenhanced5085a69149235 20:03:29 INFO Copying Package elements 20:03:29 INFO |¯¯¯ Starting 20:03:29 INFO Start building 20:03:29 INFO Build dir: JROOT/administrator/components/com_easycreator/data/builds/com_contactenhanced 20:03:29 INFO TempDir created /var/www/tmp/com_contactenhanced5085a6914f5de 20:03:29 INFO COPY DIR SRC: JROOT/administrator/components/com_contactenhanced DST: /var/www/tmp/com_contactenhanced5085a6914f5de/admin 20:03:29 INFO COPY DIR SRC: JROOT/components/com_contactenhanced DST: /var/www/tmp/com_contactenhanced5085a6914f5de/site 20:03:29 INFO Processing language en-GB - admin 20:03:29 INFO File: en-GB.com_contactenhanced.ini already exists 20:03:29 INFO Processing language en-GB - sys 20:03:29 INFO File: en-GB.com_contactenhanced.sys.ini already exists 20:03:29 INFO Processing language en-GB - site 20:03:29 INFO File: en-GB.com_contactenhanced.ini already exists 20:03:29 WARNING JFile::getName is deprecated. Use native basename() syntax. 20:03:29 WARNING JFile::getName is deprecated. Use native basename() syntax. 20:03:29 WARNING JFile::getName is deprecated. Use native basename() syntax. 20:03:29 WARNING JFile::getName is deprecated. Use native basename() syntax. 20:03:29 WARNING JFile::getName is deprecated. Use native basename() syntax. 20:03:29 WARNING JFile::getName is deprecated. Use native basename() syntax. 20:03:29 INFO COPY INSTALL FILE SRC: /var/www/tmp/com_contactenhanced5085a6914f5de/admin/install/script.php DST: /var/www/tmp/com_contactenhanced5085a6914f5de/install/script.php 20:03:29 WARNING JFile::read is deprecated. Use native file_get_contents() syntax. 20:03:29 WARNING JFile::getName is deprecated. Use native basename() syntax. 20:03:29 INFO INSTALL FILE DELETED SRC: /var/www/tmp/com_contactenhanced5085a6914f5de/admin/install/script.php 20:03:29 INFO Starting CleanUp 20:03:29 INFO 0 language version files deleted 20:03:29 INFO File deleted /var/www/tmp/com_contactenhanced5085a6914f5de/admin/contactenhanced.xml 20:03:29 INFO Starting manifest 20:03:29 WARNING JFile::getName is deprecated. Use native basename() syntax. 20:03:29 WARNING JFile::getName is deprecated. Use native basename() syntax. 20:03:29 WARNING JFile::getName is deprecated. Use native basename() syntax. 20:03:29 WARNING JFile::getName is deprecated. Use native basename() syntax. 20:03:29 WARNING JFile::getName is deprecated. Use native basename() syntax. 20:03:29 WARNING JFile::getName is deprecated. Use native basename() syntax. 20:03:29 WARNING JFile::getName is deprecated. Use native basename() syntax. 20:03:29 WARNING JFile::getName is deprecated. Use native basename() syntax. 20:03:29 WARNING JFile::getName is deprecated. Use native basename() syntax. 20:03:29 INFO Start adding files 20:03:29 INFO TOTAL: 518 files 20:03:29 INFO creating Zip 20:03:30 INFO Packing routine for zip finished 20:03:30 INFO The build folder has been sucessfully deleted. 20:03:30 INFO FINISHED 20:03:30 WARNING JFile::getName is deprecated. Use native basename() syntax. 20:03:30 WARNING JFile: :copy: Cannot find or read file: $com_contactenhanced.zip 20:03:30 INFO |_ Finished in 1.38 sec. 20:03:31 ERROR ABORT: EcrProjectZiper::copyPackageElements - Unable to create package com_contactenhanced try to copy from com_contactenhanced.zip to /var/www/tmp/pkg_contactenhanced5085a69149235/comcontactenhanced.zip 20:03:31 INFO | Finished in 2.43 sec.

Thanks in advanced for your help,

Douglas

machadoug commented 11 years ago

Dear Nikolai,

I suspect this is not a problem directly related to my php/apache permissions, because I can create packages correctly using EasyCreator in my Joomla 2.5 installation;

Best regards,

machadoug commented 11 years ago

Dear Nikolai,

I'm still having this problem. Do you have any idea why I'm facing this issue? Can you please help me out?

elkuku commented 11 years ago

As always sorry for the late response.. The issue is really strange and since I can not reproduce it..

One thing that you might try: Set the temp directory in Joomla!s configuration to the temp directory of your Joomla! root. From what I can see it is set to /tmp. Is that correct ?

machadoug commented 11 years ago

Dear Nikolai,

Thanks for your reply. The tmp directory for all my Joomla installs on my local computer are located in /var/www/tmp. It makes easier for me to manager things.

I've set the directory inside the Joomla installation directory, but I've got the same error. This time I've hit the "Create ContactEnhanced" button and I've started to watch the tmp directory and noticed that JROOT/tmp/com_contactenhanced50a62061413e2 was never created. The package directory (JROOT/tmp/pkg_contactenhanced50a620611e418) was created correctly.

I also have checked and the file component zip file was correctly created in: /administrator/components/com_easycreator/data/builds/com_contactenhanced/3.0.1

I'm still not sure what to do. Do you have any idea? It seems to me that "JFile: :copy" is looking for the the file in the wrong directory.

Please see log below:

Date: 2012-11-16 11:15:45 UTC

Software: Joomla Platform 12.2.0 Stable [ Neil Armstrong ] 21-September-2012 00:00 GMT

Fields: datetime priority message

11:15:45 INFO |¯¯¯ Starting 11:15:45 INFO Start building 11:15:45 INFO Build dir: JROOT/administrator/components/com_easycreator/data/builds/pkg_contactenhanced 11:15:45 INFO TempDir created JROOT/tmp/pkg_contactenhanced50a620611e418 11:15:45 INFO Copying Package elements 11:15:45 INFO |¯¯¯ Starting 11:15:45 INFO Start building 11:15:45 INFO Build dir: JROOT/administrator/components/com_easycreator/data/builds/com_contactenhanced 11:15:45 INFO TempDir created JROOT/tmp/com_contactenhanced50a62061413e2 11:15:47 INFO COPY DIR SRC: JROOT/administrator/components/com_contactenhanced DST: JROOT/tmp/com_contactenhanced50a62061413e2/admin 11:15:50 INFO COPY DIR SRC: JROOT/components/com_contactenhanced DST: JROOT/tmp/com_contactenhanced50a62061413e2/site 11:15:50 INFO Processing language en-GB - admin 11:15:50 INFO File: en-GB.com_contactenhanced.ini already exists 11:15:50 INFO Processing language en-GB - sys 11:15:50 INFO File: en-GB.com_contactenhanced.sys.ini already exists 11:15:50 INFO Processing language en-GB - site 11:15:50 INFO File: en-GB.com_contactenhanced.ini already exists 11:15:50 WARNING JFile::getName is deprecated. Use native basename() syntax. 11:15:50 WARNING JFile::getName is deprecated. Use native basename() syntax. 11:15:50 WARNING JFile::getName is deprecated. Use native basename() syntax. 11:15:50 WARNING JFile::getName is deprecated. Use native basename() syntax. 11:15:50 WARNING JFile::getName is deprecated. Use native basename() syntax. 11:15:50 WARNING JFile::getName is deprecated. Use native basename() syntax. 11:15:50 INFO COPY INSTALL FILE SRC: JROOT/tmp/com_contactenhanced50a62061413e2/admin/install/script.php DST: JROOT/tmp/com_contactenhanced50a62061413e2/install/script.php 11:15:50 WARNING JFile::read is deprecated. Use native file_get_contents() syntax. 11:15:50 WARNING JFile::getName is deprecated. Use native basename() syntax. 11:15:50 INFO INSTALL FILE DELETED SRC: JROOT/tmp/com_contactenhanced50a62061413e2/admin/install/script.php 11:15:50 INFO Starting CleanUp 11:15:50 INFO 0 language version files deleted 11:15:50 INFO File deleted JROOT/tmp/com_contactenhanced50a62061413e2/admin/contactenhanced.xml 11:15:50 INFO Starting manifest 11:15:50 WARNING JFile::getName is deprecated. Use native basename() syntax. 11:15:50 WARNING JFile::getName is deprecated. Use native basename() syntax. 11:15:50 WARNING JFile::getName is deprecated. Use native basename() syntax. 11:15:50 WARNING JFile::getName is deprecated. Use native basename() syntax. 11:15:50 WARNING JFile::getName is deprecated. Use native basename() syntax. 11:15:50 WARNING JFile::getName is deprecated. Use native basename() syntax. 11:15:50 WARNING JFile::getName is deprecated. Use native basename() syntax. 11:15:50 WARNING JFile::getName is deprecated. Use native basename() syntax. 11:15:50 WARNING JFile::getName is deprecated. Use native basename() syntax. 11:15:50 INFO Start adding files 11:15:50 INFO TOTAL: 561 files 11:15:50 INFO creating Zip 11:15:51 INFO Packing routine for zip finished 11:15:51 INFO The build folder has been sucessfully deleted. 11:15:51 INFO FINISHED 11:15:51 WARNING JFile::getName is deprecated. Use native basename() syntax. 11:15:51 WARNING JFile: :copy: Cannot find or read file: $com_contactenhanced.zip 11:15:51 INFO |_ Finished in 6.38 sec. 11:15:52 ERROR ABORT: EcrProjectZiper::copyPackageElements - Unable to create package com_contactenhanced try to copy from com_contactenhanced.zip to JROOT/tmp/pkg_contactenhanced50a620611e418/comcontactenhanced.zip 11:15:52 INFO | Finished in 7.63 sec.

machadoug commented 11 years ago

Dear Nikolai,

I've just migrated from Ubuntu to Windows 8 and I'm still facing this problem. I cannot create a package.

Thanks for your help.

machadoug commented 11 years ago

Dear Nikolai,

I have just found out the problem.

Open \joomla\3.0\administrator\components\com_easycreator\helpers\project\ziper.php on line 782 replace: $src = $files[0]->name; with: $src = $files[0]->path;

Best regards,

deianmotov commented 11 years ago

Hey Machadoug,

Thank you!

elkuku commented 11 years ago

Fixed in #20 Thanks @deianmotov :wink: