| Joomla! http://forum.joomla.org/ |
|
| Usefull tool: Joomla diagnostics http://forum.joomla.org/viewtopic.php?f=35&t=53052 |
Page 1 of 6 |
| Author: | Websmurf [ Fri Apr 07, 2006 4:21 pm ] |
| Post subject: | Usefull tool: Joomla diagnostics |
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 |
|
| Author: | stingrey [ Fri Apr 07, 2006 5:15 pm ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
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. |
|
| Author: | Websmurf [ Fri Apr 07, 2006 5:49 pm ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
Original fixed as well. Stupid mistake
|
|
| Author: | Robin [ Tue Apr 11, 2006 6:33 pm ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
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 |
|
| Author: | Klementz [ Fri Apr 14, 2006 12:13 am ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
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? |
|
| Author: | DeanMarshall [ Fri Apr 14, 2006 12:18 am ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
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 |
|
| Author: | sc00zy [ Fri Apr 14, 2006 12:25 am ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
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!!!
|
|
| Author: | Websmurf [ Tue Apr 18, 2006 11:04 am ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
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? |
|
| Author: | Klementz [ Tue Apr 18, 2006 11:59 am ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
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. |
|
| Author: | brasil.se [ Tue Apr 25, 2006 12:29 am ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
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' |
|
| Author: | Klementz [ Tue Apr 25, 2006 2:00 am ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
Type in the address directly in your browser address bar: http://www.yoursite.com/diagnostics.php |
|
| Author: | Websmurf [ Tue Apr 25, 2006 7:14 am ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
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) |
|
| Author: | brasil.se [ Tue Apr 25, 2006 8:27 am ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
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-sourceforge/diagnostics.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!!! |
|
| Author: | Websmurf [ Tue Apr 25, 2006 8:31 am ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
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.. |
|
| Author: | DeanMarshall [ Tue Apr 25, 2006 11:04 am ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
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 |
|
| Author: | bugmenot [ Thu Apr 27, 2006 11:21 am ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
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. |
|
| Author: | phil_roy [ Thu Apr 27, 2006 10:38 pm ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
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 |
|
| Author: | JAF Site Design [ Sat Apr 29, 2006 1:32 am ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
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) |
|
| Author: | Websmurf [ Sat Apr 29, 2006 7:58 am ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
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: generateMd5Hash(); to Code: generateMd5Hash('/my/path/to/joomla/root'); Then call your file: diagnostics.php?task=generate |
|
| Author: | JAF Site Design [ Sun Apr 30, 2006 3:19 pm ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
wow... I hadn't even looked in the source. Very thorough!!!
|
|
| Author: | emrfixit [ Mon May 01, 2006 12:11 pm ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
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 Please, Thanks! |
|
| Author: | Websmurf [ Mon May 01, 2006 12:22 pm ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
There's a parse error in configuration.php: Quote: 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. |
|
| Author: | emrfixit [ Mon May 01, 2006 12:29 pm ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
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 |
|
| Author: | Websmurf [ Mon May 01, 2006 12:50 pm ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
The diagnostics page is fine now: Quote: 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 |
|
| Author: | emrfixit [ Mon May 01, 2006 1:10 pm ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
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? |
|
| Author: | Websmurf [ Mon May 01, 2006 1:12 pm ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
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 |
|
| Author: | emrfixit [ Mon May 01, 2006 1:18 pm ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
That could be, since I have no idea what you are speaking of... Frontend template? |
|
| Author: | emrfixit [ Mon May 01, 2006 1:25 pm ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
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. |
|
| Author: | Websmurf [ Mon May 01, 2006 1:26 pm ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
mm...odd maybe it's a good idea to contact your to see if they can tell what's going on
|
|
| Author: | shaiss [ Sun May 07, 2006 3:08 am ] |
| Post subject: | Re: Usefull tool: Joomla diagnostics |
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!!!! |
|
| Page 1 of 6 | All times are UTC |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|