Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SiteMonitor


Jack_mcs

Recommended Posts

I don't see the benefit of doing that. If you want to add a new file to exclude then you would have to edit the file you created. As it is now, you edit the file in the code. But maybe I'm missing the point. Please explain how doing that will help?

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

  • 8 months later...

Hi Jack

Thank you for you great add ons.

I get this in the server log when accessing the configure page. (In my Phoenix test shop PHP 7.3)

PHP Warning:  Use of undefined constant BOX_WIDTH - assumed 'BOX_WIDTH' (this will throw an Error in a future version of PHP) in D:\\Phoenix_7_3\\htdocs\\**********\\sitemonitor_configure_setup.php on line 404, referer: http://localhost/*********/sitemonitor_admin.php

 

Edited by mhsuffolk

Live shop Phoenix 1.0.8.4 on PHP 7.4 Working my way up the versions.

Link to comment
Share on other sites

That is a php compatibility issue. The change below will fix it but there are problem others. This addon is scheduled for an update but I don't when that will be.

In admin/sitemonitor_configure_setup.php, find two instances of the following and remove them.

width="<?php echo BOX_WIDTH; ?>"

 

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

  • 4 weeks later...

A new version has been uploaded with these changes:

  • Added headers to the mail function.
  • Added a global entry in functions file to fix problem with php 7.2 Found by member mhsuffolk.
  • Corrected coding mistake that stopped some configurations from being recognized.
  • Removed the BOX_WIDTH usage for newer shops.
  • Removed definitions missed in the last version.

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

  • 4 months later...

Hi Jack, @Jack_mcs

Maybe it is not the correct topic to ask this question, but does this addon let you know if the number of users connected simultaneously is less than 200, for example?

The other day I had 500 IPs from Singapore on my site on the whos_online and only one client from my country (it was me looking at the site in addition to google), that slowed the site down a lot.

It also gave me this error sometimes:


Warning: mysqli_connect () [function.mysqli-connect]: (42000/1203): User already has more than 'max_user_connections' active connections in includes / functions / database.php on line 20

I had to block singapore IPs ... But I wanted to create an alarm in case that amount of Ips happens again ...

I appreciate your comments if this addon works for me or if there is another.

Cheers

Valqui

Edited by valquiria23

:heart: Community Oscommerce fan :heart: You'll find the latest osC community version here.

 

Link to comment
Share on other sites

@valquiria23No, SiteMonitor won't help in a situation like you describe. I suggest you install View Counter for that. It is like Who's Online but with much more control. It won't stop the connections unless they violate the traps it has. But you can see it happening and ban the IP from admin. The pro version has an option that reports excessive hits so you can easily see it happening and be emailed when it happens. You can also see the hits in the non-pro version but you have to check for them manually. I hope this helps. 

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

  • 7 months later...

A new version has been uploaded with these changes:

  • Added icon for Phoenix shops.
  • Cleaned up code a little.
  • Fixed php warnings for Phoenix.

Please note that this update just applies to Phoenix shops. The addon will work in other versions but if you already have it installed in a non-Phoenix shop, applying this update won't change anything.

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