Zen Cart Logo
Forums / All Other Contributions/Addons / Help needed testing and debugging "ZenDiags"

Help needed testing and debugging "ZenDiags"

Locked

Views: 1,042

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
28 Jan 2008, 2:36 PM
#1
hubert avatar

hubert

Zen Follower

Join Date:
Mar 2005
Posts:
229
Plugin Contributions:
0

Help needed testing and debugging "ZenDiags"

I'm on the road (with a friend of mine) of making a great (because usefull) little (because not so complicated) Joomla add-on available for Zen-Carters.

This is the Joomla diagnostics add-on. It's purpose is easy to understand, it verifies that files have not been corrupted during FTP transfers.

First it generates a text file with every file in a zen-cart site and for each an md5 checksum. The mechanic is to compare these checksums on the tranfered files. The add-on generates a web page telling which file is missing or which one has been aletered.

I've made a first attemp to adapt the joomla add-on to zen-cart. You'll find it attached.

It's easy to use,

Now look on your server, you'find a file named ZenDiagFile_1.3.7.txt

  • Transfer this file to you site copy,
  • modify the path so that it matches the one of your copy server,
  • and on the copy server ask for
    http://sitecopy/diagnostics.php

You'll get a page telling you wich files have been altered or are missing.

On my tests, something strange is happening : I have, as all of you on a 1.3.7 install, about 4000 files.
The strange is that it tells me that files in /admin are not there. If I verify the files are there and even the md5 checksums match the one in the text file.

If someone can test that on his site, and tell me what happens it would be nice.

Thanks for your help

Regards

Hubert

28 Jan 2008, 3:02 PM
#2
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Help needed testing and debugging "ZenDiags"

Was there a presumption that anyone using this Mod would first have Joomla installed? Because I don't and no TXT file is created plus the file kicks back an error:

fopen(ZenDiagFile_1.3.7.txt) [function.fopen]: failed to open stream: Permission denied in /path/.../diagnostics.php on line 143

line 143
$fp = fopen("ZenDiagFile_" . $jversion . ".txt", "w");

Note: Zen Cart version used is 1.3.8a and 'fopen' works just fine within Zen Cart files.

28 Jan 2008, 7:52 PM
#3
hubert avatar

hubert

Zen Follower

Join Date:
Mar 2005
Posts:
229
Plugin Contributions:
0

Re: Help needed testing and debugging "ZenDiags"

First thanks for taking a look at this little piece of software.

Website Rob:

Was there a presumption that anyone using this Mod would first have Joomla installed?

No, fortunately not.

Website Rob:

no TXT file is created plus the file kicks back an error:

fopen(ZenDiagFile_1.3.7.txt) [function.fopen]: failed to open stream: Permission denied in /path/.../diagnostics.php on line 143

line 143
$fp = fopen("ZenDiagFile_" . $jversion . ".txt", "w");

This tells us that you don't have permission to write on the directory where the Diagnostics.php file tries to. Did you change the path on both line 17 and 66 ?. Perhaps Diagnostics.php is trying to write its txt file in a directory on which you have no rights.

Tanks again for helping

Regards

Hubert

29 Jan 2008, 2:01 AM
#4
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Help needed testing and debugging "ZenDiags"

I know what the error msg. meant and only provided details for you to work with.

Sorry, but you'll have to be more clear with your instructions. I did the path change as mentioned but wasn't aware there was more than one line for the path -- and why should there be?