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.
doomla
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sun May 07, 2006 9:37 am

Re: Usefull tool: Joomla diagnostics

Post by doomla » Sun May 07, 2006 9:50 am

problem solved  ;D
Last edited by doomla on Sun May 07, 2006 3:05 pm, edited 1 time in total.

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 4:56 pm

doomla wrote: problem solved  ;D
What's been solved?

doomla
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sun May 07, 2006 9:37 am

Re: Usefull tool: Joomla diagnostics

Post by doomla » Mon May 08, 2006 2:11 am

sorry for that... as there was no reply in hours I solved my problem in the meantime and erased my original post.

I had some error messages so I tried to find out with the diagnostics tool if some files were missing or corrupt, but this tool didn't work for me. it said that all files were missing (but they weren't).

User avatar
Toni Marie
Joomla! Ace
Joomla! Ace
Posts: 1503
Joined: Tue May 09, 2006 5:37 am
Location: Arid-Zona
Contact:

Re: Usefull tool: Joomla diagnostics

Post by Toni Marie » Tue May 09, 2006 6:07 am

Thank you so much for this!  I'm used to installing Joomla through Fantastico... always a way to get a fresh install so I've never had a problem.

Today I installed on GoDaddy (can't even unpack a tar!) and it is incredibly frustrating.  Using your diagnostic file I was able to pinpoint the corrupt and missing files that were causing a problem I couldn't otherwise find.

I can't tell you how much of a relief this is.  I may get to sleep before sunup!

davidrrm
Joomla! Explorer
Joomla! Explorer
Posts: 251
Joined: Mon Sep 05, 2005 3:50 pm

Re: Usefull tool: Joomla diagnostics

Post by davidrrm » Fri May 12, 2006 1:22 pm

bugmenot wrote: 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.
A couple of us have been working on just such a component under the project name JSecure (http://forge.joomla.org/sf/projects/jsecure) for a couple of months. The initial goal is something very much along these lines - a generated snapshot file that can be stored on the server and downloaded. Hopefully we can get an alpha out shortly. And anyone with some time to help with the project would be welcome.

david

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 May 12, 2006 11:44 pm

davidrrm wrote: A couple of us have been working on just such a component under the project name JSecure (http://forge.joomla.org/sf/projects/jsecure) for a couple of months. The initial goal is something very much along these lines - a generated snapshot file that can be stored on the server and downloaded. Hopefully we can get an alpha out shortly. And anyone with some time to help with the project would be welcome.
Look forward to keeping track of progress
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
brian
Joomla! Master
Joomla! Master
Posts: 12787
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: Usefull tool: Joomla diagnostics

Post by brian » Fri May 12, 2006 11:47 pm

When you are ready to relese I ill be more than happy to test for you and provide appropriate feedback
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.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 » Mon May 15, 2006 8:26 am

davidrrm wrote:
A couple of us have been working on just such a component under the project name JSecure (http://forge.joomla.org/sf/projects/jsecure) for a couple of months. The initial goal is something very much along these lines - a generated snapshot file that can be stored on the server and downloaded. Hopefully we can get an alpha out shortly. And anyone with some time to help with the project would be welcome.

david
neat, would like to hear more about that as well when there's information.
Adam van Dongen - Developer

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

Jesse R
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Mon May 29, 2006 8:10 pm

Re: Usefull tool: Joomla diagnostics

Post by Jesse R » Thu Jun 08, 2006 5:45 am

Do we need a new file for 1.0.9?

user deleted

Re: Usefull tool: Joomla diagnostics

Post by user deleted » Thu Jun 08, 2006 7:14 am


Jesse R
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Mon May 29, 2006 8:10 pm

Re: Usefull tool: Joomla diagnostics

Post by Jesse R » Thu Jun 08, 2006 5:44 pm

OK, it seems there is code there for me to create my own text file, but I'm not exactly clear how this works. Sorry, I'm not a coder.

It seems that I need a clean complete set of the files to build my text file. I can't use the ones I have now as I they might be corrupted and so shouldn't be used for a base. I'm gathering I would need to download the full Joomla install package, run it locally, build my file and then upload that to my production server.

Am I correct or is there an easier way?

user deleted

Re: Usefull tool: Joomla diagnostics

Post by user deleted » Thu Jun 08, 2006 6:44 pm

Hi,

Thah should be correct way of building such a text file.

tmcclellan
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon May 29, 2006 2:35 am

Re: Usefull tool: Joomla diagnostics

Post by tmcclellan » Fri Jun 09, 2006 1:24 am

I'm showing that all files are corrupt. Did some post a solution for that that I missed?

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 Jun 09, 2006 7:37 am

I'll generate a few variation later today for common use :)

[edit: files have been placed]
Last edited by Websmurf on Fri Jun 09, 2006 8:25 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
Chinaman
Joomla! Guru
Joomla! Guru
Posts: 575
Joined: Sun Aug 21, 2005 8:46 am
Location: Perth, Western Australia
Contact:

Re: Usefull tool: Joomla diagnostics

Post by Chinaman » Sat Jun 10, 2006 6:01 am

Great addition to my J! toolbox - will be using this at site setup time, to take a "timestamp" picture of files immediately after successful J! install, and again at site launch, which will give me a nice view of what coms, mods, bots, temps, etc are installed at site launch.

May I suggest that this maybe integrated into Joomla distro, auto run on successful installation, with option to download the final txt

Forgot to say - Thank You  :)
Joomla! - enjoying every minute of the journey!

TheRoot
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Thu May 18, 2006 11:48 pm

Re: Usefull tool: Joomla diagnostics

Post by TheRoot » Mon Jun 12, 2006 1:44 pm

Hi there guys

I did what adam said but it is still not working !!!  :(
It gives me the following:

Warning: main(configuration.php): failed to open stream: No such file or directory in /home/domain/public_html/joomla/diagnostics.php on line 63

Warning: main(configuration.php): failed to open stream: No such file or directory in /home/domain/public_html/joomla/diagnostics.php on line 63

Fatal error: main(): Failed opening required 'configuration.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/domain/public_html/joomla/diagnostics.php on line 63

Plz help !!!  :-[

TheRoot
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Thu May 18, 2006 11:48 pm

Re: Usefull tool: Joomla diagnostics

Post by TheRoot » Mon Jun 12, 2006 2:01 pm

I edited the code and replaced the line that calls the configure.php file with configuration.php-dist instead but it now says that the files are missing what shall I have to do to the code so that it reads the right ???:-[

TheRoot
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Thu May 18, 2006 11:48 pm

Re: Usefull tool: Joomla diagnostics

Post by TheRoot » Mon Jun 12, 2006 2:13 pm

returened to the same error  :'(

Code: Select all

Warning: main(configuration.php): failed to open stream: No such file or directory in /home/arabnix/public_html/alug/diagnostics.php on line 63

Warning: main(configuration.php): failed to open stream: No such file or directory in /home/arabnix/public_html/alug/diagnostics.php on line 63

Fatal error: main(): Failed opening required 'configuration.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/arabnix/public_html/alug/diagnostics.php on line 63
Plz help

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 Jun 12, 2006 2:48 pm

did you put the file in your joomla root?
There should be a configuration.php file present for this to work.

Ones you see a list of files that contain either a warning or error, it's a good thing to re-upload those files.
(remember, this script gives an indication, it's not leading).
Adam van Dongen - Developer

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

TheRoot
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Thu May 18, 2006 11:48 pm

Re: Usefull tool: Joomla diagnostics

Post by TheRoot » Mon Jun 12, 2006 5:06 pm

There is no file called "configuration.php"  even in the root dir of the joomla
there is a file called "configuration.php-dist" and still not working  :(

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 Jun 13, 2006 7:16 am

There should be a file called configuration.php once you've installed joomla. Why isn't there with you?
Adam van Dongen - Developer

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

TheRoot
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Thu May 18, 2006 11:48 pm

Re: Usefull tool: Joomla diagnostics

Post by TheRoot » Tue Jun 13, 2006 10:06 am

Aha you mean after installation  :o
Man for sure the MD5 of the files after installation shall be different  ;)
And they will never be the same as those in the txt file bcoz MD5 shall encrypt each file with a differen key  :-\

Thanx Man

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 Jun 13, 2006 1:36 pm

No, that's not true.
Normally the md5 file hash is the same for each occasion.
The only thing that might mess it up are line break differences. This typically occour when a file will be transfered from windows to linux, or to mac or something like that.
Adam van Dongen - Developer

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

olson
Joomla! Intern
Joomla! Intern
Posts: 51
Joined: Tue Jan 17, 2006 8:40 pm

Re: Usefull tool: Joomla diagnostics

Post by olson » Wed Jun 28, 2006 7:38 am

Adam,

Can we expect a version for 1.0.10?

dabull
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Mon Jul 03, 2006 2:22 pm

Re: Usefull tool: Joomla diagnostics

Post by dabull » Mon Jul 03, 2006 3:00 pm

hi

will the utility work on version 1.0.10?

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 Jul 03, 2006 4:07 pm

No, i'm going to release a version for joomla 1.0.10 tomorrow.
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
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 » Thu Jul 06, 2006 12:09 pm

Adam van Dongen - Developer

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

VegasBoxers
Joomla! Intern
Joomla! Intern
Posts: 53
Joined: Mon Aug 14, 2006 9:07 pm

Re: Usefull tool: Joomla diagnostics

Post by VegasBoxers » Mon Aug 14, 2006 9:51 pm

Nice Tool DUDE!  I'm a newbie who doesn't know anything about PHP and such, but I'm a pretty good hack.  I've installed galleries and forums before and this was my first attempt at a CMS.  Upon loading the Joomla code, I noticed that there was no file integrity check, which surprised me.  I hope they'd offer this kind of tool in there next version.

I use a free version of coffee cup to FTP files.  It's okay, but sometimes it misses files or times out, etc.  This tool helped me find the ones I was missing and solved problems I had.

THANKS!
Scott

Geoff
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3173
Joined: Sun Apr 16, 2006 12:20 am
Location: 127.0.0.1

Re: Usefull tool: Joomla diagnostics

Post by Geoff » Wed Aug 23, 2006 11:22 pm

Websmurf wrote:
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
when you do this, it also indexes files in the cache folder which then causes errors when you run the diagnostic again
Backup, backup, backup!
The "Master" .htacess file by Nicholas http://snipt.net/nikosdion/the-master-htaccess

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 » Thu Aug 24, 2006 7:30 am

Mm.. good idea yeah.
Will have a look at this for the upcoming version.
Adam van Dongen - Developer

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


Locked

Return to “Installation - 1.0.x”