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

error: Undefined variable [solved]

Started by maurofon, 25.07.2016 17:15:58

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

maurofon

Hello , I apologize me for my bad English . From qualhe day Users of my site , when carrying a dowload it, see for a Second THIS TEXT :
Notice : undefined variable: user random_id in
com_jdownload / helpers / jdownloadeshelper.php on line 3418.


This does not mean anything, the component works well but I do not understand this error message that apparae for a moment .
http://www.podisticatorino.it/index.php/archivio/classifiche

[gelöscht durch Administrator]
  •  

ColinM

Hi,
I think you have your error reporting in Joomla! Global Configuration - Server Settings set too high.  You only need it set to System Default.
To explain for example with user_random_id variable it is used in a php statement of the form
if ($may_download === true){
            if ($user_random_id){   
                JDHelper::writeSessionEncoded($user_random_id, 'jd_random_id');

Now it is perfectly good and permissible php to test on an undefined variable as it will return  a 'FALSE' state.  But at high levels of error reporting this is picked up as a potential error as sometimes it is a real error, but not in the cases shown in your error reports appearing on user sites.

Colin
Colin M
  •  

maurofon

Thank you, the problem was just that. Thanks again
  •