Page 1 of 1

Anyone any good at debugging large php scripts ?

Posted: Sun Jun 10, 2018 10:59 am
by exxos
Really just half wondering if someone has the time and patience to debug the AMN scripts then possible the site can remain online.

From what I remember, its things like scripts moaning about variables not been set.. Though working out the actual problem locations in the scripts is something I am not to great at. I did have to fix 100's of errors in the scripts to get it working at all on my server, but I haven't "caused" the errors that I know of, the original site was churning out TB's of error logs before I "fixed it".

I don't think there are a lot of different errors, but the same errors occur like 100's of times per page.. so it soon fills up my error logs and makes actual stuff running on my server I want to debug very difficult.

This could all be easy fixes for someone who knows what they are doing :)

I guess a lot of warnings than errors.. but this gives you a idea whats going on... Mostly similar errors in various php scripts..

Code: Select all

PHP Warning:  Creating default object from empty value in /var/www/html/atarimusic.net/components/com_muscol/helpers/bookmarks.php on line 31
PHP Warning:  Creating default object from empty value in /var/www/html/atarimusic.net/components/com_muscol/helpers/bookmarks.php on line 36
PHP Warning:  Creating default object from empty value in /var/www/html/atarimusic.net/components/com_muscol/helpers/bookmarks.php on line 41
PHP Warning:  Creating default object from empty value in /var/www/html/atarimusic.net/components/com_muscol/helpers/bookmarks.php on line 46
PHP Warning:  Creating default object from empty value in /var/www/html/atarimusic.net/components/com_muscol/helpers/bookmarks.php on line 51
PHP Warning:  Creating default object from empty value in /var/www/html/atarimusic.net/components/com_muscol/helpers/bookmarks.php on line 56
PHP Warning:  Creating default object from empty value in /var/www/html/atarimusic.net/components/com_muscol/helpers/bookmarks.php on line 61
PHP Warning:  Creating default object from empty value in /var/www/html/atarimusic.net/components/com_muscol/helpers/bookmarks.php on line 66
PHP Warning:  Creating default object from empty value in /var/www/html/atarimusic.net/components/com_muscol/helpers/bookmarks.php on line 71
PHP Warning:  Creating default object from empty value in /var/www/html/atarimusic.net/components/com_muscol/helpers/bookmarks.php on line 76
PHP Warning:  Creating default object from empty value in /var/www/html/atarimusic.net/components/com_muscol/helpers/bookmarks.php on line 81
PHP Warning:  Creating default object from empty value in /var/www/html/atarimusic.net/components/com_muscol/helpers/bookmarks.php on line 86

Code: Select all

PHP Notice:  Undefined variable: user in /var/www/html/atarimusic.net/components/com_muscol/views/artist/tmpl/detailed.php on line 166
PHP Notice:  Trying to get property of non-object in /var/www/html/atarimusic.net/components/com_muscol/views/artist/tmpl/detailed.php on line 166
PHP Notice:  Undefined index: force_show_player in /var/www/html/atarimusic.net/plugins/muscolplayers/jwplayer.php on line 116
PHP Notice:  Undefined variable: object in /var/www/html/atarimusic.net/plugins/muscolplayers/jwplayer.php on line 152
PHP Notice:  Undefined variable: return in /var/www/html/atarimusic.net/components/com_muscol/helpers/helpers.php on line 141
PHP Notice:  Use of undefined constant \xa0 - assumed '\xa0' in /var/www/html/atarimusic.net/components/com_muscol/views/songs/tmpl/default.php on line 49
PHP Notice:  Use of undefined constant \xa0 - assumed '\xa0' in /var/www/html/atarimusic.net/components/com_muscol/views/songs/tmpl/default.php on line 87
PHP Notice:  Undefined index: force_show_player in /var/www/html/atarimusic.net/plugins/muscolplayers/jwplayer.php on line 116
PHP Notice:  Undefined variable: object in /var/www/html/atarimusic.net/plugins/muscolplayers/jwplayer.php on line 152
PHP Notice:  Undefined variable: return in /var/www/html/atarimusic.net/components/com_muscol/helpers/helpers.php on line 141

Re: Anyone any good at debugging large php scripts ?

Posted: Mon Jun 11, 2018 12:14 pm
by IngoQ
I wouldn't say that I am especially good at it, but I did do this before ;) So if no real "pro" is available, I can offer some help, if it is not that time critical ;)