Usefull tool: Joomla diagnostics

Joomla version 1.0 is end-of-life and are no longer supported. Please use Joomla 3.x instead.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
User avatar
Websmurf
Joomla! Hero
Joomla! Hero
Posts: 2230
Joined: Fri Aug 19, 2005 2:23 pm
Location: The Netherlands
Contact:

Usefull tool: Joomla diagnostics

Post by Websmurf » Fri Apr 07, 2006 4:21 pm

Hi Guys and Girls,

Today I though of a cool little tool to find corrupted files on your server. I see a lot of threads on the forum currently that are caused by files that have been messed up during installation.

This little tool will compair the file hashes on your server with what it's supose to be. Download:
http://www.joomla-addons.org/option,com ... id,23.html

Instructions:
- upload both files
- go to yoursite.com/diagnostics.php

The script should list what's wrong with the files on your server.

Adam
Last edited by Websmurf on Mon Jul 03, 2006 9:27 am, edited 1 time in total.
Adam van Dongen - Developer

- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl

User avatar
stingrey
Joomla! Hero
Joomla! Hero
Posts: 2756
Joined: Mon Aug 15, 2005 4:36 pm
Location: Marikina, Metro Manila, Philippines
Contact:

Re: Usefull tool: Joomla diagnostics

Post by stingrey » Fri Apr 07, 2006 5:15 pm

Nicely done, dovetails nicely with a discussion I had about this a few months ago about something similar nice work Adam.

Though there is a bug in that it attempts to look for the configuration.php file in subdirectory /joomla/ also a small notice regards looking for the $task variable.


Anyway I've attached the fixes and some minor graphical changes - sorry couldnt help myself.
You do not have the required permissions to view the files attached to this post.
Rey Gigataras
http://www.wizmediateam.com <-- great team of talented Web Designers and Programmers!
http://about.me/reygigataras <-- About Me :)
Partner, Business Development & Project Manager, Event Manager, Sports Coach :D

User avatar
Websmurf
Joomla! Hero
Joomla! Hero
Posts: 2230
Joined: Fri Aug 19, 2005 2:23 pm
Location: The Netherlands
Contact:

Re: Usefull tool: Joomla diagnostics

Post by Websmurf » Fri Apr 07, 2006 5:49 pm

Original fixed as well.
Stupid mistake :)
Adam van Dongen - Developer

- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl

User avatar
Robin
Joomla! Master
Joomla! Master
Posts: 15753
Joined: Thu Aug 18, 2005 10:41 am

Re: Usefull tool: Joomla diagnostics

Post by Robin » Tue Apr 11, 2006 6:33 pm

Hi,

Great tool indeed. Would be nice for people to check, I've also seen quite a few posts where I had to advice to re-upload files again.

Robin

User avatar
Klementz
Joomla! Explorer
Joomla! Explorer
Posts: 400
Joined: Sun Aug 28, 2005 2:55 pm
Location: Barrie, Ontario CANADA
Contact:

Re: Usefull tool: Joomla diagnostics

Post by Klementz » Fri Apr 14, 2006 12:13 am

I just uploaded the file and ran a check, and *every* file says "WARNING - File is corrupted or has been altered."

I just had a restore done by my host due to a hack (post here). But why would I get this result?
http://www.jdanielclements.com (Personal photography site)
http://www.coinzoo.net (World coin collection with animals)

User avatar
DeanMarshall
Joomla! Hero
Joomla! Hero
Posts: 2352
Joined: Fri Aug 19, 2005 2:26 am
Location: Lancaster, Lancashire, United Kingdom
Contact:

Re: Usefull tool: Joomla diagnostics

Post by DeanMarshall » Fri Apr 14, 2006 12:18 am

Perhaps you uploaded all of your text files (.php, .js, etc) in binary mode rather than ascii.
Or perhaps the tool expects binary only  transfer when ASCII is the more correct.

I haven't used the tool (yet) so probably shouldn't comment ;)

nice idea though Adam - cheers.

Does anyone remember a fairly comprehensive tool that used to check for config errors in the Mambo days?
It would identify path errors and livesite errors amongst others - IIRC

Dean
Dean Marshall Consultancy - six Joomla experts - http://www.deanmarshall.co.uk/

Joomla Experts - Joomla Support http://www.deanmarshall.co.uk/joomla-se ... pport.html

User avatar
sc00zy
Joomla! Exemplar
Joomla! Exemplar
Posts: 9529
Joined: Thu Aug 18, 2005 9:07 am
Location: Assen, Netherlands
Contact:

Re: Usefull tool: Joomla diagnostics

Post by sc00zy » Fri Apr 14, 2006 12:25 am

Klementz wrote: I just uploaded the file and ran a check, and *every* file says "WARNING - File is corrupted or has been altered."

I just had a restore done by my host due to a hack (post here). But why would I get this result?
I also get warnings on every file. I'm sure there's nothing wrong with the files though...

Anyway... Great idea Adam!!! :D
Arjan Menger
https://welldotcom.nl - Puntgaaf Internetbureau

User avatar
Websmurf
Joomla! Hero
Joomla! Hero
Posts: 2230
Joined: Fri Aug 19, 2005 2:23 pm
Location: The Netherlands
Contact:

Re: Usefull tool: Joomla diagnostics

Post by Websmurf » Tue Apr 18, 2006 11:04 am

Mm.. i believe even new lines etc could cause a miss match.

It's a really simple function i'm using (md5_file()). You did upload both files right?
Adam van Dongen - Developer

- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl

User avatar
Klementz
Joomla! Explorer
Joomla! Explorer
Posts: 400
Joined: Sun Aug 28, 2005 2:55 pm
Location: Barrie, Ontario CANADA
Contact:

Re: Usefull tool: Joomla diagnostics

Post by Klementz » Tue Apr 18, 2006 11:59 am

I uploaded both files from the modified version. I re-did it, just to be sure, and ran it again. I still get every file corrupted or altered.
http://www.jdanielclements.com (Personal photography site)
http://www.coinzoo.net (World coin collection with animals)

brasil.se
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Sat Apr 01, 2006 3:57 am

Re: Usefull tool: Joomla diagnostics

Post by brasil.se » Tue Apr 25, 2006 12:29 am

Websmurf wrote: Hi Guys and Girls,

Today I though of a cool little tool to find corrupted files on your server. I see a lot of threads on the forum currently that are caused by files that have been messed up during installation.

This little tool will compair the file hashes on your server with what it's supose to be. Download: http://websmurf.org/joomla/joomla-file- ... cs_1.0.zip

Instructions:
- upload both files
- go to yoursite.com/diagnostics.php

The script should list what's wrong with the files on your server.

Adam
well I did unzip the 2 files and upload to my root: /mysite/joomla/
nothing happens!!! :'(
well I try to find in the backend but NADA!!!!!!    ???
still can't find out what is the rite way to run the 'checker'
thanks to be very detailed with a VERY DUMMIE IN JOOMLA'

User avatar
Klementz
Joomla! Explorer
Joomla! Explorer
Posts: 400
Joined: Sun Aug 28, 2005 2:55 pm
Location: Barrie, Ontario CANADA
Contact:

Re: Usefull tool: Joomla diagnostics

Post by Klementz » Tue Apr 25, 2006 2:00 am

Type in the address directly in your browser address bar:

http://www.yoursite.com/diagnostics.php
http://www.jdanielclements.com (Personal photography site)
http://www.coinzoo.net (World coin collection with animals)

User avatar
Websmurf
Joomla! Hero
Joomla! Hero
Posts: 2230
Joined: Fri Aug 19, 2005 2:23 pm
Location: The Netherlands
Contact:

Re: Usefull tool: Joomla diagnostics

Post by Websmurf » Tue Apr 25, 2006 7:14 am

Klementz wrote: I uploaded both files from the modified version. I re-did it, just to be sure, and ran it again. I still get every file corrupted or altered.
Odd..
What server configuration are you running? (windows/linux/apache version/php version etc)
Adam van Dongen - Developer

- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl

brasil.se
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Sat Apr 01, 2006 3:57 am

Re: Usefull tool: Joomla diagnostics

Post by brasil.se » Tue Apr 25, 2006 8:27 am

OK
thanks to you that was direct and sharp..it does works..but...........................................NOW HOW DO I FIX IT?
Came out a never ending list or erros..probably 104 erros...http://www.brasil.se/amigos/joomla-sour ... ostics.php

                                                        Note that:I had modified the colors, and *.jpg of the original template...as well took away some stuff I could not understand what it was for..now I know that it can be usefull...

Can I re-instal the Joomla and not loose any of my modification on colors, jpg's,css color stuff and or some small changes,FINALLY THE WORK ITSELF DONE IN THE PORTAL? Just re-install waht is not there and fix what is not working? Is that possible to do?

how do I fix it? Is that a way to automatic fix those erros?
Thanks!!!
Last edited by brasil.se on Tue Apr 25, 2006 8:34 am, edited 1 time in total.

User avatar
Websmurf
Joomla! Hero
Joomla! Hero
Posts: 2230
Joined: Fri Aug 19, 2005 2:23 pm
Location: The Netherlands
Contact:

Re: Usefull tool: Joomla diagnostics

Post by Websmurf » Tue Apr 25, 2006 8:31 am

For the file does not exist errors, simple try to re-upload those files.
Do the same for the other files listed there. It doesn't meant per se that there's something wrong, even a different type of line break could lead to a different file hash as far as i know..
Adam van Dongen - Developer

- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl

User avatar
DeanMarshall
Joomla! Hero
Joomla! Hero
Posts: 2352
Joined: Fri Aug 19, 2005 2:26 am
Location: Lancaster, Lancashire, United Kingdom
Contact:

Re: Usefull tool: Joomla diagnostics

Post by DeanMarshall » Tue Apr 25, 2006 11:04 am

Hi Adam,

I haven't had a look yet, but if the expected file hashes are stored in an external file then it
shouldn't be too difficult for the community to put together a different set of results
generated for each of the common situations:

untarred directly on the server OR unpacked on, and transferred to, unix.
unpacked on Windows PC transferred to unix
unpacked on Mac transferred to Unix
unpacked on Mac transferred to Windows

Did I miss any?

Dean
Dean Marshall Consultancy - six Joomla experts - http://www.deanmarshall.co.uk/

Joomla Experts - Joomla Support http://www.deanmarshall.co.uk/joomla-se ... pport.html

bugmenot
I've been banned!
Posts: 9
Joined: Wed Apr 26, 2006 11:25 pm

Re: Usefull tool: Joomla diagnostics

Post by bugmenot » Thu Apr 27, 2006 11:21 am

this tool is a great idea! but it is quite useless in its current form for people who run localized version of joomla.

it would be nice to include instructions on how to generate the joomla_1.0.8.txt file from any joomla install package.

IMHO this tool should be made into the backend, in the next joomla release, it would certainly help with file integrity related issues, and to detect what files had been tampered with.

some features ideas:

-1- ability to check current files hash vs original files hash from the admin panel.
-2- ability to snap files hash file from admin panel.
-3- ability to save that file to a local machine for later use.
-4- ability to check current files hash vs previously save files hash from the admin panel.


the point here is
- to be always able to check vs original set of files (joomla install files should ship with a hash file)
- to be able to save a snapshot of files at any time, for example when one is finished with customizing one's own site and installing third party components/modules/plugins (still known as mambots)
- to be able to check vs this snapshot, for example to detect which file needs to be restored in case of a defaced site
- in case the admin panel is broken for some reason, it would be necessary to run diagnostic from outside admin panel, via uploading a clean diagnostic.php (found in joomla install files) and hash file (original one, or previously genertaed one) to the site. for this reason it is good to be able to export the generated hash file.

phil_roy
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 204
Joined: Tue Sep 06, 2005 11:46 am
Location: New Zealand
Contact:

Re: Usefull tool: Joomla diagnostics

Post by phil_roy » Thu Apr 27, 2006 10:38 pm

I found it OK to use, but I think "Diagnostic" is a bit misleading....it's a file-checker isn't it? I freaked out when I saw loads of red warnings....then just realised it was the default theme files which I no longer have installed.

Phil

JAF Site Design
Joomla! Explorer
Joomla! Explorer
Posts: 402
Joined: Sun Oct 09, 2005 3:57 pm
Contact:

Re: Usefull tool: Joomla diagnostics

Post by JAF Site Design » Sat Apr 29, 2006 1:32 am

Nice tool, however the template files are unnecessary.

I think, if I have some spare time, I will make a little script that writes your own joomla_1.0.8.txt file from the current setup which you know is uncorrupt. (chances are I'll give up, but you never know)
-Josh Fee, JAF Site Design

View the website as it is created (using Joomla! of course)http://www.jafsitedesign.com

User avatar
Websmurf
Joomla! Hero
Joomla! Hero
Posts: 2230
Joined: Fri Aug 19, 2005 2:23 pm
Location: The Netherlands
Contact:

Re: Usefull tool: Joomla diagnostics

Post by Websmurf » Sat Apr 29, 2006 7:58 am

JAF Site Design wrote: I think, if I have some spare time, I will make a little script that writes your own joomla_1.0.8.txt file from the current setup which you know is uncorrupt. (chances are I'll give up, but you never know)
Actually, the code is allready in diagnostics.php

modify:

Code: Select all

generateMd5Hash();
to

Code: Select all

generateMd5Hash('/my/path/to/joomla/root');
Then call your file:
diagnostics.php?task=generate
Adam van Dongen - Developer

- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl

JAF Site Design
Joomla! Explorer
Joomla! Explorer
Posts: 402
Joined: Sun Oct 09, 2005 3:57 pm
Contact:

Re: Usefull tool: Joomla diagnostics

Post by JAF Site Design » Sun Apr 30, 2006 3:19 pm

wow... I hadn't even looked in the source. Very thorough!!! :)
-Josh Fee, JAF Site Design

View the website as it is created (using Joomla! of course)http://www.jafsitedesign.com

emrfixit
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Fri Apr 21, 2006 8:24 am

Re: Usefull tool: Joomla diagnostics

Post by emrfixit » Mon May 01, 2006 12:11 pm

Ok guys, I need some help. I get the same "page not found" when I run your diagnostic script. I am figuring something isn't setup correct for my server.

Apache2, Linux (fd4), MySQL and PHP. See my other post "Page not found error". To digress a moment, if I move my install folder back, I get the Joomla waring to move the install file, but when I move it out. Page not found error. I have placed and PHP info line in the index.php to test. I've also placed your diagnostic script in that folder as well. Same error. I know its reading the files, cause I can put any index file there and it reads.

Could one you gurus take a look?

http://webworks.morganswebworks.com&nbsp;

Please,
Thanks!

User avatar
Websmurf
Joomla! Hero
Joomla! Hero
Posts: 2230
Joined: Fri Aug 19, 2005 2:23 pm
Location: The Netherlands
Contact:

Re: Usefull tool: Joomla diagnostics

Post by Websmurf » Mon May 01, 2006 12:22 pm

There's a parse error in configuration.php:
Parse error: parse error, unexpected T_DNUMBER in /var/www/html/morganswebworks/webworks/configuration.php on line 3
That would probably cause all your other problems as well.
Adam van Dongen - Developer

- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl

emrfixit
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Fri Apr 21, 2006 8:24 am

Re: Usefull tool: Joomla diagnostics

Post by emrfixit » Mon May 01, 2006 12:29 pm

that was me, trying changing server variable

some post said to use the ip number instead of 'localhost'

will change back if you are looking right now...

do you want me to put the php info script back in the index.php ? I've taken it out to test the ip number

User avatar
Websmurf
Joomla! Hero
Joomla! Hero
Posts: 2230
Joined: Fri Aug 19, 2005 2:23 pm
Location: The Netherlands
Contact:

Re: Usefull tool: Joomla diagnostics

Post by Websmurf » Mon May 01, 2006 12:50 pm

The diagnostics page is fine now:
Compair file hashes against original
Filename Error Type
administrator/images/Thumbs.db File does not exist ERROR
globals.php File is corrupted or has been altered WARNING
index.php File is corrupted or has been altered WARNING
I would try to upload the two warning files again, see if that makes a difference
Adam van Dongen - Developer

- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl

emrfixit
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Fri Apr 21, 2006 8:24 am

Re: Usefull tool: Joomla diagnostics

Post by emrfixit » Mon May 01, 2006 1:10 pm

Hey Websmurf, I don't quite understand why now the diagnostics.php works now.

about the files, both the index and globals, i worked with trying to isolate why its not working. I had changed the variable for gob la registers just to test, but had put it back, I guess thats why it showed it as altered. Anyway, I replaced them with the originals, but I cannot find this other file. It says its a thumb.db file, is this, or was this supposed to be created when the install occurs? I cannot find such a file on my downloads from Joomla.

Thanks so much for your help, where do I send the margarita?

User avatar
Websmurf
Joomla! Hero
Joomla! Hero
Posts: 2230
Joined: Fri Aug 19, 2005 2:23 pm
Location: The Netherlands
Contact:

Re: Usefull tool: Joomla diagnostics

Post by Websmurf » Mon May 01, 2006 1:12 pm

You can ignore the .db file, think this is a windows file from my installation.

Btw your backend seems to be functioning correctly.
What did you define as your frontend template? I think the problem will be related to that
Last edited by Websmurf on Mon May 01, 2006 1:14 pm, edited 1 time in total.
Adam van Dongen - Developer

- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl

emrfixit
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Fri Apr 21, 2006 8:24 am

Re: Usefull tool: Joomla diagnostics

Post by emrfixit » Mon May 01, 2006 1:18 pm

That could be, since I have no idea what you are speaking of...

Frontend template?

emrfixit
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Fri Apr 21, 2006 8:24 am

Re: Usefull tool: Joomla diagnostics

Post by emrfixit » Mon May 01, 2006 1:25 pm

If that is setup through the admin section, hadn't got that far yet... The admin section allows a log on, but get the same page cannot be found message.

User avatar
Websmurf
Joomla! Hero
Joomla! Hero
Posts: 2230
Joined: Fri Aug 19, 2005 2:23 pm
Location: The Netherlands
Contact:

Re: Usefull tool: Joomla diagnostics

Post by Websmurf » Mon May 01, 2006 1:26 pm

mm...odd

maybe it's a good idea to contact your to see if they can tell what's going on  ???
Adam van Dongen - Developer

- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl

shaiss
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Sat May 06, 2006 4:08 am

Re: Usefull tool: Joomla diagnostics

Post by shaiss » Sun May 07, 2006 3:08 am

This is a cool tool, but Im a noob and confused
This is my site
http://ride4.org/diagnostics.php
The thumbs.db thing, ignore, ok fine with that
But the configuration.php-dist doesn't exist for a reason.  During the instalation joomla said it couldn't creat the config file and to manual upload the code.  So I did and named the file configuration.php and the site works fine.  Except the user login part of the page, which I will figure out later.

So did I do something wrong, or is the tool misleading.

BTW, thank you Adam, hopefully theres a tool like this one day that will check more than the installation.
Thank you!!!!


Locked

Return to “Installation - 1.0.x”