1. micker
  2. CTransifex
  3. Thursday, 17 January 2013
  4.  Subscribe via email
hello i will try webhooks option in transifex
i transifex url isn't valide
if i check url
xxx
it say
[code type=php]Warning: Invalid argument supplied for foreach() in /web/minelobegrise/www/by/administrator/components/com_ctransifex/helpers/package.php on line 158

Warning: Invalid argument supplied for foreach() in /web/minelobegrise/www/by/administrator/components/com_ctransifex/helpers/package.php on line 158[/code]
some idea ?
regards
Responses (2)
Daniel Dimitrov
Support team
Accepted Answer Pending Moderation
Hello Micker,
I don't know how you are checking? Just pasting the url in your browser or what?
The webhook url should be called by transifex - transifex also passes some arrays with data. If you just open the url and don't send the data, then you are going to get those warnings. The way to test it is - either simulate the data that transifex is sending or go to transifex and edit a language -> whenever the language file gets 100% translated transifex is going to send information to the webhooks url.
http://help.transifex.com/intro/projects.html#webhooks

And also - look at the url -> it has a key -> this key should be kept private! You don't want people just randomly sending data to this url, do you? We check the key with the value in the db and only go further in the script if it matches.

Regards,
Daniel
Please if you use our extensions be so kind and review them at JED
Matukio | Hotspots Pro | CComment Pro
  1. more than a month ago
  2. CTransifex
  3. # 1
Accepted Answer Pending Moderation
hello
sorry i find my error
when we copy webhook url a space is copy to
http://www.by-creationnumerique.com/index.php?option=com_ctransifex&key=26ed1d35226a3a5e58def023a264ad2e&task=webhooks.webhook&project_id=1"hereaspace"
and transifex doesn't like it !!
thanks for your works !!
  1. more than a month ago
  2. CTransifex
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Powered by EasyDiscuss for Joomla!