×

Notice

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

TOPIC: Package download is not working

Package download is not working 9 years 4 months ago #31520

  • Dmitry Rekun
  • Dmitry Rekun's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Hello ;)

Finally I've setup my first project and got all data from the Transifex, created project menu item. But when I want to download the package and click on "Download now", I am being redirected to index.php?option=com_ctransifex&task=download.download&language=7 with the message "Something went wrong "... :(

I checked media folder and packages are there :side:

Package download is not working 9 years 4 months ago #31522

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
look at components\com_ctransifex\controllers\download.php - it seems that we can't fetch the zip from the database. Dump the query and look at the db.

Regards,
Daniel

Package download is not working 9 years 4 months ago #31536

  • Dmitry Rekun
  • Dmitry Rekun's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
So the problem is that component's language var is being changed with Joomla's language var. Here is the dump of data var of IInput:
[data:protected] => Array
        (
            [option] => com_ctransifex
            [task] => download
            [language] => ru-RU
            [Itemid] => 1178
            [lang] => ru
        )

Funny! The only workaround I found is to get language var directly from get. So I've changed
$input = JFactory::getApplication()->input;
to
$input = JFactory::getApplication()->input->get;

And now it is working :woohoo:

Interesting that on another website everything is working fine without this change...

Package download is not working 9 years 4 months ago #31537

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
hm, can you try it with the dev. release? I have already fixed this long time ago. We use ctlang instead of lang because of this.

Regards,
Daniel

Package download is not working 9 years 4 months ago #31554

  • Dmitry Rekun
  • Dmitry Rekun's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Yeah on dev release there is no such problem.
  • Page:
  • 1
Time to create page: 0.141 seconds