jDownloadsownloads.com


Author Topic: Error messages in php error_log  (Read 457 times)

0 Members and 1 Guest are viewing this topic.

Offline sclg

  • Newbie
  • *
  • Posts: 17
Error messages in php error_log
« 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
« Last Edit: 31.03.2020 17:09:55 by ColinM »

Offline ColinM

  • Moderator
  • *
  • Posts: 4.206
Re: Error messages in php error_log
« Reply #1 on: 30.03.2020 19:14:21 »
Hi
Could you asdvise what level of error logging you have set please.
Colin

Offline sclg

  • Newbie
  • *
  • Posts: 17
Re: Error messages in php error_log
« Reply #2 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

Offline ColinM

  • Moderator
  • *
  • Posts: 4.206
Re: Error messages in php error_log
« Reply #3 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

Offline sclg

  • Newbie
  • *
  • Posts: 17
Re: Error messages in php error_log
« Reply #4 on: 31.03.2020 16:14:37 »
Set to 'system default'.
I'm happy to try one of the other settings!






      Steve

Offline ColinM

  • Moderator
  • *
  • Posts: 4.206
Re: Error messages in php error_log
« Reply #5 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

Offline sclg

  • Newbie
  • *
  • Posts: 17
Re: Error messages in php error_log
« Reply #6 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


Offline ColinM

  • Moderator
  • *
  • Posts: 4.206
Re: Error messages in php error_log
« Reply #7 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

Offline sclg

  • Newbie
  • *
  • Posts: 17
Re: Error messages in php error_log
« Reply #8 on: 01.04.2020 16:39:27 »
OK - thanks. I'll investigate further and perhaps re-download.
Steve