Joomla! Discussion Forums



It is currently Tue Nov 24, 2009 11:07 pm (All times are UTC )

 


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.



Post new topic Reply to topic  [ 162 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next
Author Message
Posted: Fri Apr 07, 2006 4:21 pm 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Fri Aug 19, 2005 2:23 pm
Posts: 2158
Location: The Netherlands
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

_________________
Adam van Dongen - Developer

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


Last edited by Websmurf on Mon Jul 03, 2006 9:27 am, edited 1 time in total.

Top
  E-mail  
 
Posted: Fri Apr 07, 2006 5:15 pm 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Mon Aug 15, 2005 4:36 pm
Posts: 2399
Location: Marikina, Metro Manila, Philippines
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.

_________________
God grant me the Serenity to Accept the things I cannot change, the Courage to change the things I can and the Wisdom to know the Difference.


Top
  E-mail  
 
Posted: Fri Apr 07, 2006 5:49 pm 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Fri Aug 19, 2005 2:23 pm
Posts: 2158
Location: The Netherlands
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


Top
  E-mail  
 
Posted: Tue Apr 11, 2006 6:33 pm 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Thu Aug 18, 2005 10:41 am
Posts: 15089
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

_________________
Regards Robin


Top
   
 
Posted: Fri Apr 14, 2006 12:13 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sun Aug 28, 2005 2:55 pm
Posts: 321
Location: Barrie, Ontario CANADA
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.clements.on.ca (Family website on J1.0.x)
http://www.jdanielclements.com (Personal photography site on J1.5.x)


Top
   
 
Posted: Fri Apr 14, 2006 12:18 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 19, 2005 2:26 am
Posts: 1802
Location: Lancaster, Lancashire, United Kingdom
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 - Mambo and Joomla Consultant
Dean Marshall Consultancy Limited - http://www.deanmarshall.co.uk/


Top
   
 
Posted: Fri Apr 14, 2006 12:25 am 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Aug 18, 2005 9:07 am
Posts: 9305
Location: Assen, Netherlands
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
http://www.welldotcom.nl - Professionele Joomla! Design, Ontwikkeling en Hosting
http://www.joomlaideal.nl - iDEAL betaalmethode voor Joomla! en Virtuemart


Top
  E-mail  
 
Posted: Tue Apr 18, 2006 11:04 am 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Fri Aug 19, 2005 2:23 pm
Posts: 2158
Location: The Netherlands
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


Top
  E-mail  
 
Posted: Tue Apr 18, 2006 11:59 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sun Aug 28, 2005 2:55 pm
Posts: 321
Location: Barrie, Ontario CANADA
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.clements.on.ca (Family website on J1.0.x)
http://www.jdanielclements.com (Personal photography site on J1.5.x)


Top
   
 
Posted: Tue Apr 25, 2006 12:29 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat Apr 01, 2006 3:57 am
Posts: 30
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'


Top
   
 
Posted: Tue Apr 25, 2006 2:00 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sun Aug 28, 2005 2:55 pm
Posts: 321
Location: Barrie, Ontario CANADA
Type in the address directly in your browser address bar:

http://www.yoursite.com/diagnostics.php

_________________
http://www.clements.on.ca (Family website on J1.0.x)
http://www.jdanielclements.com (Personal photography site on J1.5.x)


Top
   
 
Posted: Tue Apr 25, 2006 7:14 am 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Fri Aug 19, 2005 2:23 pm
Posts: 2158
Location: The Netherlands
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


Top
  E-mail  
 
Posted: Tue Apr 25, 2006 8:27 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat Apr 01, 2006 3:57 am
Posts: 30
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!!!


Last edited by brasil.se on Tue Apr 25, 2006 8:34 am, edited 1 time in total.

Top
   
 
Posted: Tue Apr 25, 2006 8:31 am 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Fri Aug 19, 2005 2:23 pm
Posts: 2158
Location: The Netherlands
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


Top
  E-mail  
 
Posted: Tue Apr 25, 2006 11:04 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 19, 2005 2:26 am
Posts: 1802
Location: Lancaster, Lancashire, United Kingdom
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 - Mambo and Joomla Consultant
Dean Marshall Consultancy Limited - http://www.deanmarshall.co.uk/


Top
   
 
Posted: Thu Apr 27, 2006 11:21 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Apr 26, 2006 11:25 pm
Posts: 9
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.


Top
  E-mail  
 
Posted: Thu Apr 27, 2006 10:38 pm 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Tue Sep 06, 2005 11:46 am
Posts: 200
Location: New Zealand
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

_________________
http://www.nzmac.com
NZMac.com - Supporting the New Zealand Mac Community

http://www.nziphone.com
NZiPhone.com - the home of the iPhone in New Zealand


Top
   
 
Posted: Sat Apr 29, 2006 1:32 am 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sun Oct 09, 2005 3:57 pm
Posts: 392
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


Top
   
 
Posted: Sat Apr 29, 2006 7:58 am 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Fri Aug 19, 2005 2:23 pm
Posts: 2158
Location: The Netherlands
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

_________________
Adam van Dongen - Developer

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


Top
  E-mail  
 
Posted: Sun Apr 30, 2006 3:19 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sun Oct 09, 2005 3:57 pm
Posts: 392
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


Top
   
 
Posted: Mon May 01, 2006 12:11 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Apr 21, 2006 8:24 am
Posts: 18
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!


Top
   
 
Posted: Mon May 01, 2006 12:22 pm 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Fri Aug 19, 2005 2:23 pm
Posts: 2158
Location: The Netherlands
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.

_________________
Adam van Dongen - Developer

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


Top
  E-mail  
 
Posted: Mon May 01, 2006 12:29 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Apr 21, 2006 8:24 am
Posts: 18
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


Top
   
 
Posted: Mon May 01, 2006 12:50 pm 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Fri Aug 19, 2005 2:23 pm
Posts: 2158
Location: The Netherlands
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

_________________
Adam van Dongen - Developer

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


Top
  E-mail  
 
Posted: Mon May 01, 2006 1:10 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Apr 21, 2006 8:24 am
Posts: 18
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?


Top
   
 
Posted: Mon May 01, 2006 1:12 pm 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Fri Aug 19, 2005 2:23 pm
Posts: 2158
Location: The Netherlands
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

_________________
Adam van Dongen - Developer

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


Last edited by Websmurf on Mon May 01, 2006 1:14 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Mon May 01, 2006 1:18 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Apr 21, 2006 8:24 am
Posts: 18
That could be, since I have no idea what you are speaking of...

Frontend template?


Top
   
 
Posted: Mon May 01, 2006 1:25 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Apr 21, 2006 8:24 am
Posts: 18
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.


Top
   
 
Posted: Mon May 01, 2006 1:26 pm 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Fri Aug 19, 2005 2:23 pm
Posts: 2158
Location: The Netherlands
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


Top
  E-mail  
 
Posted: Sun May 07, 2006 3:08 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat May 06, 2006 4:08 am
Posts: 11
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!!!!


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 162 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next

Quick reply

 



Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group