×

Notice

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

TOPIC: webhook error pakages.php line 158

webhook error pakages.php line 158 11 years 11 months ago #19174

  • micker
  • micker's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 28
  • Thank you received: 0
hello i will try webhooks option in transifex
i transifex url isn't valide
if i check url
xxx
it say
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
some idea ?
regards

webhook error pakages.php line 158 11 years 11 months ago #19179

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
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.
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

webhook error pakages.php line 158 11 years 11 months ago #19182

  • micker
  • micker's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 28
  • Thank you received: 0
hello
sorry i find my error
when we copy webhook url a space is copy to
www.by-creationnumerique.com/index.php?o...ject_id=1"hereaspace "
and transifex doesn't like it !!
thanks for your works !!
  • Page:
  • 1
Time to create page: 0.109 seconds