Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SiteMonitor


Jack_mcs

Recommended Posts

The error is saying it is missing quotes so removing more won't help. Did you read the text next to the exclude list box?

 

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

The error is saying it is missing quotes so removing more won't help. Did you read the text next to the exclude list box?

 

Jack

 

I read the text. I can put quotes in or leave the box blank and it still will not update.

Link to comment
Share on other sites

Try uploading the sitemonitor_configure.php file that comes with the contribution and before you make any changes to it, do an update. If that works, then you are making a mistake somehow.

 

Jack

Edited by Jack_mcs

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've just installed version 1.7.

 

I've read this entire thread and I cannot figure out why, when I hit the Delete Reference File button, I get a 'Reference File Creation Failed' error.

 

The path to my backup directory is

 

/services/webpages/i/t/**mysite**.com/public/catalog/admin/backups/

 

so I assumed the start path in SiteMonitor/Configure should be

 

/services/webpages/i/t/**mysite**.com/public/catalog/

 

(should there be a slash at the end, BTW?)

 

I have the admin directory set as

 

http://**mysite**.com/catalog/admin

 

Also, I assume that the username and PW is the one I use to sign into OSC Admin (not the .htaccess username and PW)

 

Which brings up the point that I have the admin file username/PW protected with .htaccess (not sure if this matters, but would think so)

 

The includes/config file in my admin looks like this:

 

<?php
 define('HTTP_SERVER', 'https://**mysite**.com');
 define('HTTP_CATALOG_SERVER', 'http://www.**mysite**.com');
 define('HTTPS_CATALOG_SERVER', 'https://**mysite**.com');
 define('ENABLE_SSL_CATALOG', 'true');
 define('DIR_FS_DOCUMENT_ROOT', '/services/webpages/i/t/**mysite**.com/public/catalog/');
 define('DIR_WS_ADMIN', '/catalog/admin/');
 define('DIR_FS_ADMIN', '/services/webpages/i/t/**mysite**.com/public/catalog/admin/');
 define('DIR_WS_CATALOG', '/catalog/');
 define('DIR_FS_CATALOG', '/services/webpages/i/t/**mysite**.com/public/catalog/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
 define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

I used https in the first line of my includes/config file to 'force' admin to use my SSL...it wasn't being picked up with just http.

 

I've tried setting the permission on the admin directory to 777...didn't work.

 

Also, because of the SSL cert, I have a public folder and a secure folder. I just copy everything in the public folder to the secure folder. (I'm not sure if this matters)

 

I use PHP5 and I'm on a Linux (Apache) server with curl enabled.

 

Any ideas? This is the last contribution I wanted to install before adding my products and finally going live. I've been working on this cart since the end of October (wasted 6 weeks trying to get Google Checkout to work and gave up) and I'm anxious to be up and running!

 

Thanks!

Link to comment
Share on other sites

My guess is that setup of your files may be causing confusion to the code. Try running it without using the three admin settings (Directory, Username, Password) and see if that helps.

 

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 emptied all of the admin boxes and left '/services/webpages/i/t/**mysite**.com/public/catalog/' in the start directory and still a Failed error.

 

BTW - if you empty the UN and PW boxes, hit update leave, and then return to Configure, those boxes will be automatically populated with your database username and PW. So if anyone ever wants to 'empty' those boxes, type in 'username' and 'password' just to be safe. :)

Link to comment
Share on other sites

I changed the code in my admin/includes/application_top.php to call the SSL connection and then changed my admin/includes/config file to the http: on the first line...and then tried again. No success.

 

If I wanted to create a refernece file myself, what is it called exactly and where does it go?

 

Thanks!

Link to comment
Share on other sites

In admin/includes/functions/sitemonitor.php, find this line

  $dp=opendir($dir);

and add these below it

if ($dp == FALSE)
 echo 'failed ';
echo 'opening '. $dir.'<br>';

Save the file and see what happens when it's ran.

 

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

Thanks Jack!

 

I did as you asked and now I get this:

 

failed opening /home/username/public_html

Reference file creation failed.

 

It's looking for '/home/username/public_html' even though I have my start dir (in Configure) set to '/services/webpages/i/t/**mysite**.com/public/catalog/'

 

BTW - I had all of the admin areas filled in again. I had 'http://www.**mysite**.com/catalog/admin/' in the Admin Dir area. I emptied them again and still got the same as above.

 

(If I need to place the path in a file somewhere, should there be a '/' at the end of the path...and should 'catalog' be there?)

Link to comment
Share on other sites

It is picking up the default configure file settings, not the ones you are entering. Try looking at the sitemonitor_configure.php file and see if it is being updated. My guess is that there are two copies, due to your dual folder setup. I don't know that it will work with that kind of setup, never having tried it. You could try editing that file with an editor and see what happens. The trailing slash may be important, depending upon your setup. It is not normally needed though.

 

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 had updated the file in the public folder, but not the secure folder. I copied the file from the public to the secure, and then hit the first button in SiteMonitor/Admin. This is what i got:

 

opening /services/webpages/i/t/**mysite**.com/public/catalog

opening /services/webpages/i/t/**mysite**.com/public/catalog/download

opening /services/webpages/i/t/**mysite**.com/public/catalog/images

opening /services/webpages/i/t/**mysite**.com/public/catalog/images/banners

opening /services/webpages/i/t/**mysite**.com/public/catalog/images/default

opening /services/webpages/i/t/**mysite**.com/public/catalog/images/dvd

opening /services/webpages/i/t/**mysite**.com/public/catalog/images/gt_interactive

opening /services/webpages/i/t/**mysite**.com/public/catalog/images/hewlett_packard

opening /services/webpages/i/t/**mysite**.com/public/catalog/images/icons

opening /services/webpages/i/t/**mysite**.com/public/catalog/images/infobox...

 

And the list continued.

 

 

OOh! I got 4 e-mails. The first listed just about every file saying it was new, and the other three said nothing had changed. Progress at least!

Edited by vicster
Link to comment
Share on other sites

That's good to hear. You should delete the code I had you add. It won't help now and will slow down the script.

 

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

If you need open new one windows for "Manually Execute Sitemonitor" on

 

/admin/sitemonitor_admin.php

 

Only one line need replace on: <?php echo (tep_image_submit('button_update.gif', IMAGE_UPDATE) ); ?>

 

You can find code :

<td class="smallText"><?php echo TEXT_SITEMONITOR_MANUAL_EXPLAIN; ?></td> <td align="center"> <?php echo (tep_image_submit('button_update.gif', IMAGE_UPDATE) ); ?>

 

and change them into:

 <td class="smallText"><?php echo TEXT_SITEMONITOR_MANUAL_EXPLAIN; ?></td> <td align="center"> <?php //echo (tep_image_submit('button_update.gif', IMAGE_UPDATE) ); ?> <?php echo '<a href="' . tep_href_link('sitemonitor.php', '', 'NONSSL') . '" class="menuBoxContentLink" target="_blank" >' . '<img src="includes/languages/english/images/buttons/button_update.gif">' . '</a>'; ?>

 

Best Regards,

Edited by sunrise99
Link to comment
Share on other sites

  • 2 weeks later...
My guess is that setup of your files may be causing confusion to the code. Try running it without using the three admin settings (Directory, Username, Password) and see if that helps.

 

Jack

Hi Jack: It's me again. I am ready to upgrade to 1.7. I was reading the update history and am confused by

ADD BENEATH IT:

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

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

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

 

I don't have an OSC panel user name and password. I only use .htaccess protection. Something about the way my site was set up for me.

 

Which username and password am I supposed to be putting in here?

 

In a sort of related question, I went to my copy of 1.6 today, to delete the reference file and write a new one, but nothing happened. all I got was the report of a time mismatch, which I knew was there.

 

I did not even get the usual error messages when I changed all the permissions to 755 or folders and 644 for files. Your thoughts? Should I just start over with 1.7 and hope for the best?

Jim

Link to comment
Share on other sites

You only need to enter those settings if you want to use curl as the way to connect, which some hosts require. If you don't need curl, then there's no reason to use them. If you do use the, the username and password are the ones you use for your admin.

 

V 1.7 fixes a lot of problems others wer having so I wouldn't bother trying to get an earlier version to work.

 

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

You only need to enter those settings if you want to use curl as the way to connect, which some hosts require. If you don't need curl, then there's no reason to use them. If you do use the, the username and password are the ones you use for your admin.

 

V 1.7 fixes a lot of problems others wer having so I wouldn't bother trying to get an earlier version to work.

 

Jack

I know this may sound really dumb, but which ADMIN? I use .hataccess to limit access to the ADMIN panel. Is there another admin I am missing?

 

If I am not going to use those lines in the sitemonitor_cofigure.php, do I need to replace it at all? Are there any of the other files I don't need to upload?

 

Jim

Link to comment
Share on other sites

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

 

Warning: readdir(): supplied argument is not a valid Directory resource in /home1/demhacor/public_html/admin/includes/functions/sitemonitor_functions.php on line 101

Reference file creation failed.

 

 

this is the error i get and i dont understand this at all could someone help me plz

 

Thanks in Advance

Link to comment
Share on other sites

There's only one admin section in any oscommerce shop.

 

Yes, you need all of the files uploaded.

 

Jack

Hi Jack: I know you are a very busy guy, but you did not answer my question. My admin panel does not have a login requirement. I don't know if standard osCommerce does or not, but I am trying to find out if I am supposed to use the username and password for the .htaccess protection, or just ignore those lines. Please take the time to actually answer the question I asked.

Thank You

Jim

Link to comment
Share on other sites

I did answer the question. It sounds like you are confusing the names or maybe your shop is not setup correctly. If you have an oscommerce shop, then you should have an admin section. If you don't have an admin section, then the code of your shop has been drastically altered and I won't be able to help you. But assuming you have an admin section, you get to it wth a url something like, http://YOUR_DOMAIN_NAME.com/admin. When you go to the correct url for your admin, you should be prevented from accessing it until after you enter in a username and password. If you can get right in, then you've got a serious security problem so installing this contribution won't help a bit. If you do have to login, then that is the username and password that is to be entered into configure settings of this contribution. I hope that is clear enough since I don't know how else to explain it.

 

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 did answer the question. It sounds like you are confusing the names or maybe your shop is not setup correctly. If you have an oscommerce shop, then you should have an admin section. If you don't have an admin section, then the code of your shop has been drastically altered and I won't be able to help you. But assuming you have an admin section, you get to it wth a url something like, http://YOUR_DOMAIN_NAME.com/admin. When you go to the correct url for your admin, you should be prevented from accessing it until after you enter in a username and password. If you can get right in, then you've got a serious security problem so installing this contribution won't help a bit. If you do have to login, then that is the username and password that is to be entered into configure settings of this contribution. I hope that is clear enough since I don't know how else to explain it.

 

Jack

so the answer is to use the username and password asked for by the .htaccess file.

 

Thanks

Jim

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...