jDownloadsownloads.com


Support-Forum

jDownloads for Joomla 3.x => jDownloads 3.2 => General => Topic started by: sclg on 29.03.2020 19:30:37

Title: Error messages in php error_log
Post by: sclg on 29.03.2020 19:30:37
Hi.I'm seeing lots of lines like these in error_log...
[29-Mar-2020 18:09:35 Europe/London] PHP Notice:  Undefined variable: user_random_id in l/components/com_jdownloads/helpers/jdownloadshelper.php on line 3574
[29-Mar-2020 18:09:35 Europe/London] PHP Notice:  Undefined offset: 1 in components/com_jdownloads/helpers/jdownloadshelper.php on line 2539
[29-Mar-2020 18:09:35 Europe/London] PHP Notice:  Undefined offset: 1 in /components/com_jdownloads/helpers/jdownloadshelper.php on line 2540
Any idea why? I'm on v3.2.66Thanks


Edited to remove site  location links Colin
Title: Re: Error messages in php error_log
Post by: ColinM on 30.03.2020 19:14:21
Hi
Could you asdvise what level of error logging you have set please.
Colin
Title: Re: Error messages in php error_log
Post by: sclg on 30.03.2020 19:47:49
Not sure how to find out! It's a shared server so I don't have access to php.ini and I can't find anything in Joomla or phpinfo.php that tells me the error reporting level - other than that it is 'default'.
Steve
Title: Re: Error messages in php error_log
Post by: ColinM on 31.03.2020 10:39:04
Hi
In Joomla go to Global Configuration - Server Settings tab.  There is an option there called 'Error Reporting'.
Colin
Title: Re: Error messages in php error_log
Post by: sclg on 31.03.2020 16:14:37
Set to 'system default'.
I'm happy to try one of the other settings!






      Steve
Title: Re: Error messages in php error_log
Post by: ColinM on 31.03.2020 17:38:28
Steve
See you are in the UK in Oxfordshire - have just edited yor initial message to hide identity.  I am based in HantsThe error reporting level is fine.
Have you recently added another extension?  It may have some incompatibilities.
Which error log are you viewing?
I will send you a PM
Colin
Title: Re: Error messages in php error_log
Post by: sclg on 31.03.2020 18:32:18
I'm actually in Gloucestershire - near Stroud.
The log I'm viewing is error_logs in the Joomla root folder - the standard php-produced error file.
Today's errors are...

[31-Mar-2020 14:01:31 Europe/London] PHP Notice:  Undefined offset: 1 in /home/hta/public_html/components/com_jdownloads/helpers/jdownloadshelper.php on line 2539
[31-Mar-2020 14:01:31 Europe/London] PHP Notice:  Undefined offset: 1 in /home/hta/public_html/components/com_jdownloads/helpers/jdownloadshelper.php on line 2540
[31-Mar-2020 14:38:19 Europe/London] PHP Notice:  Undefined variable: user_random_id in /home/hta/public_html/components/com_jdownloads/helpers/jdownloadshelper.php on line 3574

They have appeared about a dozen times so far today and there are nearly 500 lines of these errors in the log file in the last 2 days!

The 2 offset errors are on these 2 lines
       list($remove, $stuff) = explode('//', $refr, 2);
       list($home, $stuff) = explode('/', $stuff, 2);
.. . and the undefined variable one is
            if ($user_random_id){ 

These sorts of error are usually specific the the extension in question. It's not likely that another extension is causing this one to suddenly have an undefined variable!
Thanks
Steve

Title: Re: Error messages in php error_log
Post by: ColinM on 01.04.2020 15:50:00
Steve
Understand what you are saying but nothing has changed in jD - have found this type of thing previouslyfrom other extensions. Something must have changed recently.
Will continue to look at.
When did you update to jD 3.2.66?
Colin
Title: Re: Error messages in php error_log
Post by: sclg on 01.04.2020 16:39:27
OK - thanks. I'll investigate further and perhaps re-download.
Steve