News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

404 Error - [Bug Fixed in 3.2.30!!!]

Started by makitso, 21.03.2015 14:58:17

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

makitso

See attached screen shot:

Not sure if this is a new problem of one I just stumbled on.  

I have a number (not all) of items that work correctly.  However, there are a few where clicking on the link between the zip icon and the Hot icon, generates a 404 error.  However, if I click on the download button the link works correctly.  Both links appear to be the same.  This url is used for both.

http://www.webtrees.net/index.php/en/add-ons/download/5-gm-files/128-countries-top-level-updated

The problem links seem to be older  file IDs, e.g.  from 1-160.  File IDs above 160 appear to work correctly.

Suggestions?

Joomla v 3.40
Jdownloads v  3.2.28





[gelöscht durch Administrator]
  •  

ColinM

Hi
I have seen the problem on your site, which is asa you described. So at bottom of this I have a couple of queries. 
Observations
using as example  " Flags from Brazil, package updated" at http://www.webtrees.net/index.php/en/add-ons/category/5-gm-files

From 'zip' icon it fails.  Code is
<a href="/index.php/en/add-ons/download/5-gm-files/120-flags-brazil">zip.png" align="top" border="0" height="32" width="32</a>

From download name it fails.  Code is
<a href="/index.php/en/add-ons/download/5-gm-files/120-flags-brazil">Flags Brazil</a>

From download button it works AOK  Code is
<a href="/index.php/en/add-ons/send/5-gm-files/120-flags-brazil" title="Download" class="jdbutton jorange jsmall">Download</a>

The difference is the 'send' as opposed to 'download' in the href.  When 'download' appears it is a call to show the download details view,
and with send it causes the direct downloading

Trying elsewhere on your site indicates that you want the download details to appear when clicking on the symbol or the download name,
for example <a href="/index.php/en/add-ons/download/4-themes/211-justlight-theme-for-webtrees">JustLight theme for webtrees</a>

So the code is generated OK.

You  say this only appears on downloads with id < 160 which is a clue.  Also it is not a permissions problem as downloads are possible for the file.
Queries
Have you migrated from an earlier jDownloads series (1.9.x)?  If so which one and approximately when?
Were you using jD2.5 series on Joomla! 2.5.x?

It would seem that there is a problem with the download details layout not appearing, which is strange.
Could you turn on Joomla! debug to see if that gives a clue  - maybe better on a test site as it would slow things and I guess you have a lot of traffic.

Colin
Colin M
  •  

makitso

Thanks Colin,

QuoteHave you migrated from an earlier jDownloads series (1.9.x)?  If so which one and approximately when?
Were you using jD2.5 series on Joomla! 2.5.x?

Yes, we upgraded from  1.9.1.11 to 3.2.27 about a week ago.  Never used the 2.5 version, could not get it to work on my test system.

Quote
Could you turn on Joomla! debug to see if that gives a clue  - maybe better on a test site as it would slow things and I guess you have a lot of traffic.

Will do this on my dev system.
  •  

makitso

Here are some items from the 404.  However, I have no idea what they mean.

Errors:
Download not found
Call stack
#   Function   Location
1   JApplicationCms->execute()      JROOT/index.php:40
2   JApplicationSite->doExecute()      JROOT/libraries/cms/application/cms.php:252
3   JApplicationSite->dispatch()      JROOT/libraries/cms/application/site.php:230
4   JComponentHelper::renderComponent()   JROOT/libraries/cms/application/site.php:191
5   JComponentHelper::executeComponent()   JROOT/libraries/cms/component/helper.php:371
6   require_once()            JROOT/libraries/cms/component/helper.php:391
7   JControllerLegacy->execute()      JROOT/components/com_jdownloads/jdownloads.php:34
8   jdownloadsController->display()      JROOT/libraries/legacy/controller/legacy.php:728
9   JControllerLegacy->display()      JROOT/components/com_jdownloads/controller.php:72
10   jdownloadsViewDownload->display()   JROOT/libraries/legacy/controller/legacy.php:690
11   JViewLegacy->get()         JROOT/components/com_jdownloads/views/download/view.html.php:43
12   jdownloadsModelDownload->getItem()   JROOT/libraries/legacy/view/legacy.php:401
13   JError::raiseError()         JROOT/components/com_jdownloads/models/download.php:196
14   JError::raise()            JROOT/libraries/legacy/error/error.php:254

Database:
2 duplicate found!
2 duplicates: #6  #9


#6
Query Time: 0.28 ms After last query: 2.01 ms
Duplicate queries: #9

SHOW TABLES

Explain
EXPLAIN not possible on query: SHOW TABLES
Profile
No SHOW PROFILE (maybe because there are more than 100 queries)
Call Stack
JROOT/plugins/system/jdownloads/jdownloads.php:76
JROOT/libraries/joomla/event/event.php:69
JROOT/libraries/joomla/event/dispatcher.php:160
JROOT/libraries/joomla/application/base.php:83
JROOT/libraries/cms/application/cms.php:654
JROOT/libraries/cms/application/site.php:647
JROOT/libraries/cms/application/site.php:209
JROOT/libraries/cms/application/cms.php:252
JROOT/index.php:40
[Add xdebug.file_link_format directive to your php.ini file to have links for files.]

#9
Query Time: 0.28 ms After last query: 1.70 ms
Duplicate queries: #6

SHOW TABLES

Explain
EXPLAIN not possible on query: SHOW TABLES
Profile
No SHOW PROFILE (maybe because there are more than 100 queries)
Call Stack
JROOT/plugins/system/jdownloads/jdownloads.php:346
JROOT/libraries/joomla/event/event.php:69
JROOT/libraries/joomla/event/dispatcher.php:160
JROOT/libraries/joomla/application/base.php:83
JROOT/libraries/cms/application/cms.php:1098
JROOT/libraries/cms/application/site.php:747
JROOT/libraries/cms/application/site.php:215
JROOT/libraries/cms/application/cms.php:252
JROOT/index.php:40
[Add xdebug.file_link_format directive to your php.ini file to have links for files.]
  •  

ColinM

Hi
Could you go to Extension Manager - Database tab and check your database structure please.  After fixing any problems with that please test again.  After that can you try the Rebuild function in Categories.

Colin
Colin M
  •  

makitso

Database structure showed no errors.  No change after rebuild in Categories.
  •  

makitso

So, as an experiment, I created a new upload file, a duplicate of one of the existing 404 entries.  The only thing different was the file id (old 55, new 220).  So, the new item on the list worked correctly.  So, then, I went into the database and swapped the file_id of the two entries, old now with 220 and new with 55.  Well, the old entry worked just fine but the new entry now gets a 404.  Is there some other table that uses this file_id? 
  •  

Arno

#7
Hi makitso,
i think it would be the best when i can checks it self in your backend.
Maybe the result from mis-configuration?  ::)

When possible send me login data via PM for backend.

Edit: wie ich deiner Webseite entnehme sprichst du auch deutsch?

Edit2: when the 'download' link works, you should for the moment deactivate the 'View Download detail page?'.


[gelöscht durch Administrator]
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

makitso

Thank you Arno,

I have turned off the the View Download detail page, which masks the problem from my users.

I have sent you login information via PM.

Rob Peters
  •  

Arno

Hi Rob,
sorry for the delay but i had tonight not the time to check it.  :-\
I will do this tomorrow.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Arno

#10
Hi Rob,
together with your akeeba backup was it possible for me to find the bug.
This bug exist only when jDownloads is used on a multilanguage website.
I have it now fixed in jDownloads 3.2.30 and will this install in your backend.

Many thanks for your support to find this bug.  ;)
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

makitso

Thanks Arno, I really appreciate your help.

Rob
  •