Anyone any good at debugging large php scripts ?

Atari talk, or the life and the universe and things. Just keep it clean!
Post Reply
User avatar
exxos
Site Admin
Posts: 2923
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Anyone any good at debugging large php scripts ?

Post by exxos » Sun Jun 10, 2018 10:59 am

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
4MB STFM 1.44 FD- VELOCE+ 020 STE - 4MB STE 32MHz - STFM 16MHz - STM - MEGA ST - Falcon 030 CT60 - Atari 2600 - Atari 7800 - Gigafile - SD Floppy Emulator - PeST - HxC - CosmosEx - Ultrasatan - various clutter

https://www.exxoshost.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxoshost.co.uk/atari/last/storenew/ - All my hardware mods for sale - Please help support by making a purchase.

User avatar
IngoQ
Posts: 584
Joined: Tue Aug 22, 2017 8:38 am
Location: Germany

Re: Anyone any good at debugging large php scripts ?

Post by IngoQ » Mon Jun 11, 2018 12:14 pm

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 ;)
Ingo :geek:

“Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.” - Antoine de Saint-Exupéry

Post Reply