×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: [Solved with code] Error: No zip creation

[Solved with code] Error: No zip creation 11 years 1 month ago #23282

  • Paulo Pereira
  • Paulo Pereira's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 27
  • Thank you received: 1
We have a nasty problem: ctransifex worked fine but since August 2013 it stopped updating projects.
When manually refreshing projects it finds the resources online but then, when its about to start creating the first language zip it locks and it stays there forever.
"We are trying to generate zip for af_ZA"

This is on different projects and different languages as the first zip to be created.
Them project page turns empty with no packs available.
All projects worked then, not now!

Could this be related to Transifex feature that make projects on "organizations"?

Can this be a major issue or just us? Is it working for anyone else? :)


Site is: translations.joomlapt.com/
Linux vns.spvservers.net 2.6.32-458.18.1.lve1.2.39.el6.x86_64 #1 SMP
PHP 5.3.23
Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/1.0.0-fips mod_bwlimited/1.4
Joomla! 3.1.5

Browser: Mozilla, Chrome

=======
Update 1
Error log is:

PHP Fatal error: Class 'Jfile' not found in administrator/components/com_ctransifex/helpers/package.php on line 78



=======
Update 2 Solved with changes on code:

administrator/components/com_ctransifex/helpers/package.php
find:
class CtransifexHelperPackage
add
jimport('joomla.filesystem.file');

[Solved with code] Error: No zip creation 11 years 1 month ago #23284

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Paulo,
Thanks! I've added this code to the file now as well. I never understand why this is working on some system and on another we need to manually call the file package. Thanks for pointing this out.

As far the webhooks are concerned - transifex has changed the behavior of those -> they are no longer sending a webhook when a file is being translated. They only do this once the file is 100% translated. That is why the auto-update of lang packages is no longer going to work.

The next ctransifex version will come with a cronjob that will look for the changes... Up till then you'll need to manually hit the recreate button in the backend. Sorry!

Regards,
Daniel

[Solved with code] Error: No zip creation 11 years 1 month ago #23315

  • Lyr!C
  • Lyr!C's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 1

Daniel Dimitrov wrote: Hey Paulo,
Thanks! I've added this code to the file now as well. I never understand why this is working on some system and on another we need to manually call the file package. Thanks for pointing this out.


Maybe due to other plugin activated, and loaded file.system...

About ctransifex, do you need some help in developpement ?
I'm thinking of enhancements such as auto-update xml file server, individual xml for each language pack (to add for example name of translator, and a personal description for each pack generated)
As i've already posted some months ago, i'm still thinking that only "admin" and "site" should be used for Joomla core predefined folder (and so being able to use administrator to route a special language, as with liveupdate)
What is your opinion about that ?

Best Regards,
Cyril

[Solved with code] Error: No zip creation 11 years 1 month ago #23335

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Cyril,
I'll be more than happy to look at any pull request!
I myself am thinking about the auto-update feature. Other things I want to do is create a library like liveupdate from nicholas, that would list the languages for a specific extension and would allow to install it directly from there.

As far the "admin" and "site" folders is concerned. Well - the thing is our extensions are organized like this. We don't use admin and site folders. Our build scripts are made to handle the joomla file structure. We've invested already days in simplifying the process of development with automated scripts:
github.com/compojoom/buildtools
So I actually don't want to start restructuring my extensions for this unless I see a reason to do.

I have nothing against ctransifex supporting admin and site folders and letting the developer decide how they want their package to be structured though.

We have a lot of stuff going on here and I was currently unable to work much on ctransifex, but once I'm free again we'll put some love into it!

Cheers,
Daniel

[Solved with code] Error: No zip creation 11 years 1 month ago #23431

  • Lyr!C
  • Lyr!C's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 1

Daniel Dimitrov wrote:
As far the "admin" and "site" folders is concerned. Well - the thing is our extensions are organized like this. We don't use admin and site folders. Our build scripts are made to handle the joomla file structure. We've invested already days in simplifying the process of development with automated scripts:
github.com/compojoom/buildtools
So I actually don't want to start restructuring my extensions for this unless I see a reason to do.


Hi Daniel,

I meant about naming in Transifex config files ;-)

For example, and no link with your buildtools :
file_filter = source\administrator\language\<lang>\<lang>.com_ctransifex.ini
source_file = source\administrator\language\en-GB\en-GB.com_ctransifex.ini

I mean "administrator" is a joomla core folder. So, could be used if we need to give to special place for language file (as for liveupdate when included inside in a component : compojoom.com/forum/ctransifex/17789-location-of-liveupdate-ini )

In my opinion, using standard "admin" and "site" could be better to add the most flexibility as said in the other topic (and not using there core names of Joomla repository:
file_filter = source\admin\language\<lang>\<lang>.com_ctransifex.ini
source_file = source\admin\language\en-GB\en-GB.com_ctransifex.ini

It could be backend and frontend too, but admin and site is used in Joomla Translation packs as standard, so could be good to have the same logic, no ?

Not yet having time to work on new features, but will keep you informed when things done, and working!

Just one question: is there a special reason to generate new ID for language packs, each time it is generated ? (as with a fix ID, it could help in adding columns, and so data for each language pack...)

Thanks!
Regards,
Cyril Rezé (Lyr!C)

[Solved with code] Error: No zip creation 11 years 1 month ago #23464

  • Lyr!C
  • Lyr!C's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 1

Daniel Dimitrov wrote: Hey Cyril,
I'll be more than happy to look at any pull request!

[...]

We have a lot of stuff going on here and I was currently unable to work much on ctransifex, but once I'm free again we'll put some love into it!

Cheers,
Daniel


Hi Daniel,

To give you some news of my last 3 days of coding on ctransifex, maybe it would be better not in this topic! ;-)
To sum up, i have added creation of collection and update.xml files, added a new #__ctransifex_packs to save individual xml information (author, description, stats, translators...). Too, i'm using this table to save hits on download.
Hits and updates files are okay, and working. I've added view in admin to manage Packs infos, and all this is mainly done.

When ready, i can send you my version enhanced with those features, but where? To your contact email on this website ?
I'm following you now on Twitter ;-)

I really think that cTransifex could serve all the developper community, but Joomla too!

Regards,
Lyr!C (Cyril Rezé - joomlic.com)

[Solved with code] Error: No zip creation 7 years 7 months ago #35932

  • Kaya Zeren
  • Kaya Zeren's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
I found that zip file creation problem reincarnated
Fresh Joomla! installation 3.6.5/3.7.0
Latest CTransifex package from compojoom site

I couldn't find Paulo's previous - jimport('joomla.filesystem.file'); - suggestion is not in files as Daniel mentioned.
I tried same fix with no result and found another fix, seems like working:

- Open administrator/components/com_ctransifex/helpers/package.php file
- Find defined('_JEXEC') or die('Restricted access');
- Add these code after

/* Joomla doesn't autoload JFile and JFolder */
JLoader::register('JFile', JPATH_LIBRARIES . '/joomla/filesystem/file.php');
JLoader::register('JFolder', JPATH_LIBRARIES . '/joomla/filesystem/folder.php');

Regards
Kaya
  • Page:
  • 1
Time to create page: 0.127 seconds