Page 3 of 6

Re: Usefull tool: Joomla diagnostics

Posted: Fri Aug 25, 2006 8:10 am
by fan2
Hello,
I have been using your diagnostics for J 1.0.10 on my french Joomla 1.0.10.
The result is : "File is corrupted or has been altered - WARNING" for any Joomla core file.
Any idea ?

Re: Usefull tool: Joomla diagnostics

Posted: Fri Aug 25, 2006 2:46 pm
by mauri
Same to me. All Files corrupted. I have test in two different servers, both linux.

Re: Usefull tool: Joomla diagnostics

Posted: Fri Aug 25, 2006 3:27 pm
by Websmurf
You will have to use the correct version of it.
md5 hashes on a windows machine are different from the ones on a linux server.
Even unzipping on the server and uploading them to a server result in different md5 hashes.

Re: Usefull tool: Joomla diagnostics

Posted: Fri Aug 25, 2006 7:04 pm
by limestone
Surely the way this should work in future is to be included as an administrator component. Generate its own hashes immediately on first installation. Then be available to check for changes thereafter. If I know I have made a change to something myself, I run it and accept the new hash as correct and it updates its hashes. Sort of like Windows File Checker. (Did I just ask for a Joomla component to work like part of Windows?  :o )

Re: Usefull tool: Joomla diagnostics

Posted: Fri Aug 25, 2006 10:12 pm
by fan2
Websmurf wrote: You will have to use the correct version of it.
md5 hashes on a windows machine are different from the ones on a linux server.
Even unzipping on the server and uploading them to a server result in different md5 hashes.
I have tested both the linux and Windows version, the result is the same.
The site is hosted in a Linux machine. But all was tested first in Windows before the files get uploaded via FTP to the Linux machine.

Re: Usefull tool: Joomla diagnostics

Posted: Sat Aug 26, 2006 9:22 am
by Websmurf
Normally that should result in a correct list. Never had problems with it myself and I haven't heared this from others before.

Re: Usefull tool: Joomla diagnostics

Posted: Sat Aug 26, 2006 7:18 pm
by draculinos
I m cheking my site via diagnostics and tells me that configuration.php-dist is missing, but in the version of joomla that file is not included. So what to do now?

Re: Usefull tool: Joomla diagnostics

Posted: Sun Aug 27, 2006 3:42 pm
by Websmurf
No, I wouldn't worry about it. configuration.php-dist is a default configuration layout which can be used for a manual installation of joomla (without the installer).

Re: Usefull tool: Joomla diagnostics

Posted: Thu Aug 31, 2006 6:37 pm
by Websmurf
Just updated it for version 1.0.11.

- changed md5 hashing method to avoid different hashes on different platforms
- added check for register_globals and register global emulation
- added check for _VALID_MOS for each file that will include another.

Re: Usefull tool: Joomla diagnostics

Posted: Fri Sep 08, 2006 2:30 pm
by jeepn
Top notch Adam!  Thanks for making this available.    8)

Re: Usefull tool: Joomla diagnostics

Posted: Wed Sep 13, 2006 9:03 pm
by joojoobug
using the 1.0.11 version, i get File is corrupted or has been altered  warning for a lot of the files like
/home/mysite/public_html/administrator/components/com_content/admin.content.html.php

im wondering if this is the reason my sef won't work after migration.

what do i do now that i get that warning? right now my site won't come up, just a blank. last thing i did was add a menu item so i could test out my sef that wasn't working at all.

Re: Usefull tool: Joomla diagnostics

Posted: Thu Sep 14, 2006 7:25 am
by Websmurf
Try overwriting the files again with the joomla package. My best guess is some of the files got corrupted during the upload.

Re: Usefull tool: Joomla diagnostics

Posted: Thu Sep 14, 2006 6:09 pm
by joojoobug
now i remember i had used a opensef patch hack, of course i would get
File is corrupted or has been altered

your tool is good for the core files, which would be altered if you apply hacks.. i'm learning :D

Re: Usefull tool: Joomla diagnostics

Posted: Mon Sep 18, 2006 4:44 pm
by integrity
When I run the diagnostic I get a few dozen security flags with messages like the following

Error Filename Type
SECURITY /home/integrit/public_html/includes/Cache/Lite.php File does not contain _VALID_MOS. Read more =>

http://www.joomla-addons.org/faq/view/_ ... s/147.html

The "read more" does not appear to be valid.

Ken

Re: Usefull tool: Joomla diagnostics

Posted: Tue Sep 19, 2006 12:51 pm
by pe7er
Very usefull tool, thanks Adam!

edit:
PS: It isn't listed at the Extensions site, is it?
E.g. in: http://extensions.joomla.org/component/ ... Itemid,35/

Re: Usefull tool: Joomla diagnostics

Posted: Wed Sep 20, 2006 7:50 am
by Websmurf
integrity wrote: When I run the diagnostic I get a few dozen security flags with messages like the following

Error Filename Type
SECURITY /home/integrit/public_html/includes/Cache/Lite.php File does not contain _VALID_MOS. Read more =>

http://www.joomla-addons.org/faq/view/_ ... s/147.html

The "read more" does not appear to be valid.

Ken
Fixed the link :)
Made a change the the faq section, so the urls are a bit different. Added a redirect for the old urls.

Re: Usefull tool: Joomla diagnostics

Posted: Wed Sep 20, 2006 7:51 am
by Websmurf
pe7er wrote: Very usefull tool, thanks Adam!

edit:
PS: It isn't listed at the Extensions site, is it?
E.g. in: http://extensions.joomla.org/component/ ... Itemid,35/
No it isn't (yet). Will add it there.

Re: Usefull tool: Joomla diagnostics

Posted: Thu Sep 21, 2006 10:37 pm
by zaleznog
Hi there,

I ran the diagnostics and I get the following error:

Compair file hashes against original

Warning: file(joomla_1.0.11.txt) [function.file]: failed to open stream: No such file or directory in /home/mysite/public_html/diagnostics.php on line 123

Notice: Undefined offset: 1 in /home/mysite/public_html/diagnostics.php on line 126
Error Filename Type
SECURITY /home/mysite/public_html/administrator/components/com_events/admin.events.main.php File does not contain _VALID_MOS. Read more
SECURITY /home/mysite/public_html/administrator/components/com_events/admin.events.php File does not contain _VALID_MOS. Read more
SECURITY /home/mysite/public_html/administrator/components/com_feedgator/etc/xajax.inc.php File does not contain _VALID_MOS. Read more

Is this a serous problem that I should fix asap.

Any help would be much appreciated.

joseG

Re: Usefull tool: Joomla diagnostics

Posted: Fri Sep 22, 2006 7:33 am
by Websmurf
Make sure you also upload joomla_1.0.11.txt, that's the first error you are getting.

About the _VALID_MOS error: http://www.joomla-addons.org/faq/view/j ... s/147.html

Re: Usefull tool: Joomla diagnostics

Posted: Fri Sep 29, 2006 1:57 pm
by piotrwoj
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. But why would I get this result?
-----------------------------------------------------------------------------------

MOD note: link removed.
Please see: http://forum.joomla.org/index.php/topic,65.0.html

Re: Usefull tool: Joomla diagnostics

Posted: Fri Nov 17, 2006 11:09 am
by sampsota
i bet it is a great tool... but i can't download it, the downloaded file is corruped!
can i get it from somewhere else?
thanks.

Re: Usefull tool: Joomla diagnostics

Posted: Fri Nov 17, 2006 11:49 am
by sc00zy
sampsota wrote: i bet it is a great tool... but i can't download it, the downloaded file is corruped!
can i get it from somewhere else?
thanks.
I second that. The download is corrupt.

I attached a working archive for you.

Re: Usefull tool: Joomla diagnostics

Posted: Fri Nov 17, 2006 12:06 pm
by sampsota
Thanks, that worked...!

Unfortunatly everything seems to be ok, meaning it didn't find my problem... with my images in the media manager that aren't working!!
oh well, I'll find it!!

Re: Usefull tool: Joomla diagnostics

Posted: Fri Nov 17, 2006 1:00 pm
by sc00zy
I allready notified Adam van Dongen and he fixed the download system. So no more corrupted downloads anymore.

Re: Usefull tool: Joomla diagnostics

Posted: Tue Nov 21, 2006 3:46 pm
by Rio Reo
Websmurf wrote:
About the _VALID_MOS error: http://www.joomla-addons.org/faq/view/j ... s/147.html
I have 3  _VALID_MOS errors, I have checked the original files but they don't have the line defined( '_VALID_MOS' ) or die( 'Restricted access' );

Shall I add this line myself or just ignore it? 

Thanks in advance.

Re: Usefull tool: Joomla diagnostics

Posted: Wed Nov 22, 2006 11:02 am
by Websmurf
Depends a bit on which files it are. If they're core files, you should be ok :)

Re: Usefull tool: Joomla diagnostics

Posted: Tue Nov 28, 2006 2:48 am
by Solon Magrizos
wedsmurf
Great tool !
thank a lot

Re: Usefull tool: Joomla diagnostics

Posted: Wed Dec 06, 2006 9:28 am
by jan32
Does anyone have a demo?

Re: Usefull tool: Joomla diagnostics

Posted: Mon Dec 25, 2006 12:15 pm
by Websmurf
Version for Joomla 1.0.12 is available from now.

Re: Usefull tool: Joomla diagnostics

Posted: Sat Dec 30, 2006 11:48 am
by wattie
Yes I got three valid_mos warnings on three include files that I never altered (so they should be "stock")... I guess this is normal