Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SiteMonitor


Jack_mcs

Recommended Posts

Thanks..it's working

 

Lol...you have to update your instructions... >_<

 

Hi guys. i am a novice and have just installed site monitor _v_1_7 - it installed ok but as soon as I run it I get the following :

 

PHP Warning: opendir(wwwroot/catalog/admin/includes) [function.opendir]: failed to open dir: No such file or directory in C:\Domains\hartsphoto.co.za\wwwroot\catalog\admin\includes\functions\sitemonitor_functions.php on line 99 PHP Warning: readdir(): supplied argument is not a valid Directory resource in C:\Domains\hartsphoto.co.za\wwwroot\catalog\admin\includes\functions\sitemonitor_functions.php on line 101

 

PLease help :-)

Link to comment
Share on other sites

It's saying the initial directory is not correct or can't be found. Please post your sitemonitor_configure.php file, minus the username/password if you use those.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

It's saying the initial directory is not correct or can't be found. Please post your sitemonitor_configure.php file, minus the username/password if you use those.

 

Jack

 

Here it is : ( my site is www.hartsphoto.co.za )

 

<?php

/************** THE OPTIONS AND SETTINGS ****************/

$always_email = 1; //set to 1 to always email the results

$verbose = 1; //set to 1 to see the results displayed on the page (for when running manually)

$logfile = 1; //set to 1 to see to track results in a log file

$logfile_size = 100000; //set the maximum size of the logfile

$reference_reset = 0; //delete the reference file this many days apart

 

$quarantine = 0; //set to 1 to move new files found to the quarantine directory

 

$to = 'some_address@your_domain.com'; //where email is sent to

$from = 'From: some_address@your_domain.com'; //where email is sent from

 

$start_dir = '/home/username/public_html'; //your shops root

$admin_dir = 'http://www.yourdomain.com/admin'; //your shops admin

$admin_username = 'username'; //your admin username

$admin_password = 'password'; //your admin password

$excludeList = array("admin/quarantine", "cgi-bin","admin"); //don't check these directories - change to your liking - must be set prior to first run

 

?>

Link to comment
Share on other sites

Sorry here is the correct one :-)

 

<?php

/************** THE OPTIONS AND SETTINGS ****************/

$always_email = 1; //set to 1 to always email the results

$verbose = 1; //set to 1 to see the results displayed on the page (for when running manually)

$logfile = 1; //set to 1 to see to track results in a log file

$logfile_size = 100000; //set the maximum size of the logfile

$reference_reset = 0; //delete the reference file this many days apart

 

$quarantine = 0; //set to 1 to move new files found to the quarantine directory

 

$to = '[email protected]'; //where email is sent to

$from = 'From: [email protected]'; //where email is sent from

 

$start_dir = 'wwwroot/catalog/admin/includes'; //your shops root

$admin_dir = ' www.hartsphoto.co.za'; //your shops admin

$admin_username = ''; //your admin username

$admin_password = ''; //your admin password

$excludeList = array("catalog/admin/quarantine", "admin/quarantine", "cgi-bin","admin"); //don't check these directories - change to your liking - must be set prior to first run

 

?>

Link to comment
Share on other sites

I think, on a Windows server, you need the full path for the start dir setting. So try

C:/Domains/hartsphoto.co.za/wwwroot/catalog/admin

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I think, on a Windows server, you need the full path for the start dir setting. So try

C:/Domains/hartsphoto.co.za/wwwroot/catalog/admin

 

Jack

 

Thats seems to have worked thank you :-) Once I run it, what doe sit actually do ? Do I receive an email when a file is changed ? Do I have to manuallly look at some sort of reference file ?

 

Dave

Link to comment
Share on other sites

  • 2 weeks later...

When i try to execute site monitor or delete a reference file i get

 

Warning: opendir(C:/Domains/pleazurecity.com/wwwroot//admin) [function.opendir]: failed to open dir: No such file or directory in /home/www/pleazurecity.com/admin/includes/functions/sitemonitor_functions.php on line 99

 

Warning: readdir(): supplied argument is not a valid Directory resource in /home/www/pleazurecity.com/admin/includes/functions/sitemonitor_functions.php on line 101

Reference file creation failed.

also when i go to site monitor config and when i try to update my settings i get

 

Warning: opendir(/home/www/pleazurecity.com/catalog/images/) [function.opendir]: failed to open dir: Permission denied in /home/www/pleazurecity.com/admin/includes/functions/sitemonitor_functions.php on line 168

 

Warning: readdir(): supplied argument is not a valid Directory resource in /home/www/pleazurecity.com/admin/includes/functions/sitemonitor_functions.php on line 170

 

Warning: closedir(): supplied argument is not a valid Directory resource in /home/www/pleazurecity.com/admin/includes/functions/sitemonitor_functions.php on line 182

 

Warning: opendir(/home/www/pleazurecity.com/catalog/Images/) [function.opendir]: failed to open dir: Permission denied in /home/www/pleazurecity.com/admin/includes/functions/sitemonitor_functions.php on line 168

 

Warning: readdir(): supplied argument is not a valid Directory resource in /home/www/pleazurecity.com/admin/includes/functions/sitemonitor_functions.php on line 170

 

Warning: closedir(): supplied argument is not a valid Directory resource in /home/www/pleazurecity.com/admin/includes/functions/sitemonitor_functions.php on line 182

 

And when i downloaded this contribution my admin kinda changed everything is capitalized and it says box heading in front of all the categories heres the link to the pic belowI would appreciate someones help.

http://i11.photobucket.com/albums/a193/Sha...pg?t=1232391958

Link to comment
Share on other sites

It's not finding your 'catalog' before it gets to the 'admin' part of your URL. Check your configure file settings (and/or the URL setting in the program).

 

also...

 

What are the permissions set to on your catalog/images directory?

Link to comment
Share on other sites

the permission are set to 777. and i have no catalog directory. i installed my oscommerce directly on my website. if your not understanding me like if i want to go to my admin of my store i go to mysite.com/admin instead of mysite.com/catalog/admin.

Link to comment
Share on other sites

Gotcha!

 

also when i go to site monitor config and when i try to update my settings i get

 

Warning: opendir(/home/www/pleazurecity.com/catalog/images/) [function.opendir]: failed to open dir: Permission denied in /home/www/pleazurecity.com/admin/includes/functions/sitemonitor_functions.php on line 168

 

It's still in there somewhere...you'll have to find out where it's still calling for the 'catalog' even though you don't use it.

 

Sorry I can't help you with the harder part. :(

Link to comment
Share on other sites

And when i downloaded this contribution my admin kinda changed everything is capitalized and it says box heading in front of all the categories heres the link to the pic belowI would appreciate someones help.

http://i11.photobucket.com/albums/a193/Sha...pg?t=1232391958

This sounds like you replaced your admin/includes/languages/english.php file with the includes/languages/english.php file.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

This sounds like you replaced your admin/includes/languages/english.php file with the includes/languages/english.php file.

 

Jack

Thank you jack for answering my question. but why When i try to execute site monitor or delete a reference file i get

 

Warning: opendir(/home/username/public_html) [function.opendir]: failed to open dir: No such file or directory in /home/www/pleazurecity.com/admin/includes/functions/sitemonitor_functions.php on line 99

 

Warning: readdir(): supplied argument is not a valid Directory resource in /home/www/pleazurecity.com/admin/includes/functions/sitemonitor_functions.php on line 101

Reference file creation failed.

also when i go to site monitor config and when i try to update my settings i get

Warning: opendir(/home/www/pleazurecity.com/catalog/images/) [function.opendir]: failed to open dir: Permission denied in /home/www/pleazurecity.com/admin/includes/functions/sitemonitor_functions.php on line 168

 

Warning: readdir(): supplied argument is not a valid Directory resource in /home/www/pleazurecity.com/admin/includes/functions/sitemonitor_functions.php on line 170

 

Warning: closedir(): supplied argument is not a valid Directory resource in /home/www/pleazurecity.com/admin/includes/functions/sitemonitor_functions.php on line 182

 

Warning: opendir(/home/www/pleazurecity.com/catalog/Images/) [function.opendir]: failed to open dir: Permission denied in /home/www/pleazurecity.com/admin/includes/functions/sitemonitor_functions.php on line 168

 

Warning: readdir(): supplied argument is not a valid Directory resource in /home/www/pleazurecity.com/admin/includes/functions/sitemonitor_functions.php on line 170

 

Warning: closedir(): supplied argument is not a valid Directory resource in /home/www/pleazurecity.com/admin/includes/functions/sitemonitor_functions.php on line 182

Exactly what do i need to do to get this thing running properly can anyone help?

Link to comment
Share on other sites

Thank you jack for answering my question. but why When i try to execute site monitor or delete a reference file i get

 

Warning: opendir(/home/username/public_html) [function.opendir]: failed to open dir: No such file or directory in /home/www/pleazurecity.com/admin/includes/functions/sitemonitor_functions.php on line 99

Is username your actual username?

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Then there appears to be a problem with your server setup since it shows the path as home/www/pleazurecity.com/admin, which doesn't inlcude username in it and it should. You'll need to talk to your host to get that problem resolved.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Just show them the error you are getting and mention that the problem seems to be related to the username. As long as it is not a error in the setup, it should be their problem.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Hi Jack, I had sitemonitor set up and working. I got up this morning and found that sitemonitor had deleted my intire site. (Luckily I had a Backup)

What setting do you suppose I have tinkered with to cause this? I had it setup on a cron job but I deleted the cron until I can figure out what I did wrong.

 

Thanks, Rickey

Link to comment
Share on other sites

Warning: opendir(/www/hazebuster.com/s/catalog) [function.opendir]: failed to open dir: No such file or directory in /mnt/w0503/d19/s34/b02d0062/www/mysite.com/s/catalog/admin/includes/functions/sitemonitor_functions.php on line 99

 

Warning: readdir(): supplied argument is not a valid Directory resource in /mnt/w0503/d19/s34/b02d0062/www/mysite.com/s/catalog/admin/includes/functions/sitemonitor_functions.php on line 101

Reference file creation failed.

 

Here's my error messages when clicking that top button in "Site Monitor, Admin".

Any clues Jack?

 

I gave full permissions temporarily to this file and directory, just to see if it was a permission issue, but to no avail.

Link to comment
Share on other sites

It seems to be failing because of the path. Try going to admin->Tools->Database Backups and seeing what the path is there (it will show on the page). That path is what you need to use.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...