Jump to content
Jack_mcs

SiteMonitor

Recommended Posts

My guess is that it has to do with permissions or some other server setting that is preventing the script from working correctly. If both hosts use a php.ini file, try comparing the two to see what differences there might be.

 

Well that led me into another digital adventure, not having dealt with php.ini files before. I did some googling, got the gist of what's going on in the php.ini files, but really to no avail due to my lack of background in this arena.

Server A provides full access to the php.ini file; a fairly large file it is.

Server B has what they call a "master" php.ini file, which is much more limited in scope apparently, but the tech guy said I could overwrite and add to those directives with my own strategically placed file.

Anyway.....a quick comparison of the files showed me that the settings in the smaller file were matched by what was in the larger file. Of course the larger file has a lot more directives, maybe its one of those directives in there that's causing the glitch?

 

This really isn't much help in figuring why one server allowed the update, the other not but that's what I came up with.


I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Share this post


Link to post
Share on other sites

Well that led me into another digital adventure, not having dealt with php.ini files before. I did some googling, got the gist of what's going on in the php.ini files, but really to no avail due to my lack of background in this arena.

Server A provides full access to the php.ini file; a fairly large file it is.

Server B has what they call a "master" php.ini file, which is much more limited in scope apparently, but the tech guy said I could overwrite and add to those directives with my own strategically placed file.

Anyway.....a quick comparison of the files showed me that the settings in the smaller file were matched by what was in the larger file. Of course the larger file has a lot more directives, maybe its one of those directives in there that's causing the glitch?

 

This really isn't much help in figuring why one server allowed the update, the other not but that's what I came up with.

I doubt that it is that file but it could be. You can use the one from the other server and see what happens. If won't damage anything, though it may not work either.

Share this post


Link to post
Share on other sites

Please , help!

 

I have installed SiteMonitor V 2.6, when I click the link SiteMonitor everyone the time I get the error message 'Your username is invalid. "

 

Initially sitemonitor_configure.php file had incorrect data but now I have it correct and I still get the error.

The username in sitemonitor_configure.php is the same that in admin/include/configure.php.

Why do I get this error?

Share this post


Link to post
Share on other sites

Please , help!

 

I have installed SiteMonitor V 2.6, when I click the link SiteMonitor everyone the time I get the error message 'Your username is invalid. "

 

Initially sitemonitor_configure.php file had incorrect data but now I have it correct and I still get the error.

The username in sitemonitor_configure.php is the same that in admin/include/configure.php.

Why do I get this error?

A username is not necessary under normal circumstances. If you have a username in there take it out. If you do not then you may have a problem.


Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Share this post


Link to post
Share on other sites

I have installed SiteMonitor V 2.6, when I click the link SiteMonitor everyone the time I get the error message 'Your username is invalid. "

 

Initially sitemonitor_configure.php file had incorrect data but now I have it correct and I still get the error.

The username in sitemonitor_configure.php is the same that in admin/include/configure.php.

Why do I get this error?

The code is reading the configure file and not seeing the correct username so it redirects you to that page and displays that message. You have to enter the correct username if it is not already there and then click update. Clicking update is required in any case for it to work. To be sure you have the correct username, go to admin->Modules. It will be listed in the path shown on that page.

Share this post


Link to post
Share on other sites

The code is reading the configure file and not seeing the correct username so it redirects you to that page and displays that message. You have to enter the correct username if it is not already there and then click update. Clicking update is required in any case for it to work. To be sure you have the correct username, go to admin->Modules. It will be listed in the path shown on that page.

 

Hi,

 

I am getting the same issue when i try and goto 'site monitor> admin' i keep sseing the config page with 'Error Your username is invalid. Please change it and try again.'

 

i have both added and removed the username from the config while and also added/removed it via the 'site monitor> configure' and clicked update but i still get the same error??

 

please help.

thanks

Share this post


Link to post
Share on other sites

I am getting the same issue when i try and goto 'site monitor> admin' i keep sseing the config page with 'Error Your username is invalid. Please change it and try again.'

 

i have both added and removed the username from the config while and also added/removed it via the 'site monitor> configure' and clicked update but i still get the same error??

Have verified the path you enter as the start directory exactly matches the one shown on the modules page, except for the includes/modules part? If it still fails, please post both of those.

Edited by Jack_mcs

Share this post


Link to post
Share on other sites

I go to admin>modules and the path is:

 

/home/users/web/b2130/ipg.mydomaincom//includes/modules/payment/

 

In the sitemonitor_configure.php file I set:

 

$start_dir = '/home/users/web/b2130/ipg.mydomaincom/';

$admin_dir = 'http://www.mydomain.com/admin';

$admin_username = '';

$admin_password = '';

 

but I still get the same error.

'Your username is invalid. Please change it and try again.'

What I can do?

Edited by RafaAlepuz

Share this post


Link to post
Share on other sites

I go to admin>modules and the path is:

 

/home/users/web/b2130/ipg.mydomaincom//includes/modules/payment/

 

In the sitemonitor_configure.php file I set:

 

$start_dir = '/home/users/web/b2130/ipg.mydomaincom/';

but I still get the same error.

'Your username is invalid. Please change it and try again.'

What I can do?

First, be sure you are using version 2.6 os SiteMonitor.

 

Then, in admin/sitemonitor_admin.php, find this line

        $root = substr(DIR_FS_DOCUMENT_ROOT, -1) === '/' ? DIR_FS_DOCUMENT_ROOT : DIR_FS_DOCUMENT_ROOT . '/'; 

and add this after it

 echo 'user '.$fp[$i] .' - '. $root.'<br>';

Then upload and click on the SiteMonitor admin link. What is displayed at the top of the page?

Share this post


Link to post
Share on other sites

Yes, I have SiteMonitor V 2.6.

What is displayed at the top of the page?

Nothing. Continues to appear the error message 'Your username is invalid. Please change it and try again.

Also,I tried put breakpoint with FirePHP and displayed nothing from admin/sitemonitor_admin.php file.

And the URL is http://mydomain.com//admin/sitemonitor_configure_setup.php?invalid_username=true&osCAdminID=xxxxxxxx...

Share this post


Link to post
Share on other sites

Yes, I have SiteMonitor V 2.6.

What is displayed at the top of the page?

Nothing. Continues to appear the error message 'Your username is invalid. Please change it and try again.

Also,I tried put breakpoint with FirePHP and displayed nothing from admin/sitemonitor_admin.php file.

And the URL is http://mydomain.com//admin/sitemonitor_configure_setup.php?invalid_username=true&osCAdminID=xxxxxxxx...

Try placing the following after the line I had you add and try again.

die('');

Share this post


Link to post
Share on other sites

Try placing the following after the line I had you add and try again.

die('');

 

Ok, it display the next:

 

user $start_dir = '/home/users/web/b2130/ipg.mydomaincom'; //your shops root - /home/users/web/b2130/ipg.mydomaincom//

 

It is possible, for the comments '// Your shops root' ??

Edited by RafaAlepuz

Share this post


Link to post
Share on other sites

Ok, it display the next:

 

user $start_dir = '/home/users/web/b2130/ipg.mydomaincom'; //your shops root - /home/users/web/b2130/ipg.mydomaincom//

 

It is possible, for the comments '// Your shops root' ??

The problem is the double slash in your configure file: mydomaincom//

That shouldn't be there. See this thread for how to set it up properly.

Share this post


Link to post
Share on other sites

The problem is the double slash in your configure file: mydomaincom//

That shouldn't be there. See this thread for how to set it up properly.

 

Do not think that's it. I corrected the configure.php file.

Now displaying,

 

user $start_dir = '/home/users/web/b2130/ipg.mydomaincom'; - /home/users/web/b2130/ipg.mydomaincom/

 

And shows the same error 'Your username is invalid. Please change it and try again.'

Share this post


Link to post
Share on other sites

I don't understand,

 

I have,

if (strpos($fp[$i], '$start_dir') !== FALSE)

{

$root = substr(DIR_FS_DOCUMENT_ROOT, -1) === '/' ? DIR_FS_DOCUMENT_ROOT : DIR_FS_DOCUMENT_ROOT . '/';

 

if (strpos($fp[$i],$root) === FALSE){

tep_redirect(tep_href_link(FILENAME_SITEMONITOR_CONFIG_SETUP, 'invalid_username=true'));

}

}

 

fp --> $start_dir = '/home/users/web/b2130/ipg.mydomaincom';

root --> /home/users/web/b2130/ipg.mydomaincom/

 

if (strpos($fp[$i], '$start_dir') !== FALSE) --> it work!

 

then

 

if (strpos($fp[$i],$root) === FALSE) --> does not work!!

if (strpos($root,$fp[$i]) === FALSE) --> does not work!!

 

It's frustrating!

Share this post


Link to post
Share on other sites

I test to put the final slash to:

 

$start_dir = '/home/users/web/b2130/ipg.mydomaincom/';

 

And to match:

 

root --> /home/users/web/b2130/ipg.mydomaincom/

 

and nothing!! :(

Edited by RafaAlepuz

Share this post


Link to post
Share on other sites

Hi,

 

Have also problems to get sitemonitor working, looks like the installation help file is not complete.

 

First everything goes well, until i clic on the sitemonitor link in the admin, nothing happens, blank page.

 

Solved this issue by editing the sitemonitor config file by adding the directory's.

 

When clicking on sitemonitor configure, i get a blank page, when clicking on sitemonitor admin i get the update buttons. etc. But clicking on one of te update buttons i get a blank page again.

 

What do i need to change more.

 

Greetings, Anne

Share this post


Link to post
Share on other sites

Do not think that's it. I corrected the configure.php file.

Now displaying,

 

user $start_dir = '/home/users/web/b2130/ipg.mydomaincom'; - /home/users/web/b2130/ipg.mydomaincom/

 

And shows the same error 'Your username is invalid. Please change it and try again.'

I'm sorry but that's as far as I can go. It must be something specific to your shop.

Share this post


Link to post
Share on other sites

Have also problems to get sitemonitor working, looks like the installation help file is not complete.

 

First everything goes well, until i clic on the sitemonitor link in the admin, nothing happens, blank page.

 

Solved this issue by editing the sitemonitor config file by adding the directory's.

 

When clicking on sitemonitor configure, i get a blank page, when clicking on sitemonitor admin i get the update buttons. etc. But clicking on one of te update buttons i get a blank page again.

 

What do i need to change more.

It may be that your site s large and the script is timing out before it can display the configure settings. You can edit the configure file directly and add your large directories, images and includes, to see if that will allow you to get into the configure section.

Share this post


Link to post
Share on other sites

Hi,

 

Where and what do i need to change than..

 

The image directory for the shop is only about 2800 images large..

 

Also i changed the admin directory name and the images directory name. for security measurements with the corresponding settings in the configure.php files of the shop..

 

Greeting, Anne

Share this post


Link to post
Share on other sites

My Sitemonitor is working ok, but I wonder why this is happening:

 

In osC admin panel to the right of the top menubar it says: (I have changed my username here wink.gif)

Logged in as: steini (Logoff)

 

But after clicking Sitemonitor -> Configure this is what it says:

Logged in as: c (Logoff)

 

And stays that way until I close admijn panel and restart it again.

Why is Sitemonitor changing the username info on that line?


---------------

regards

sijo

---------------

 

Contrib: JMrating10 - Rate your products / osCommerce VTS - Virus & Threat Scanner

 

(osCommerce VTS now also checks for leading and trailing whitespace and also have a grep function)

Share this post


Link to post
Share on other sites

Hi,

 

I'm getting there. Configure page is also displaying now, was 1 file missing in the includes dir. under functions.

 

But the next bit, when pressing on Update first button i get the message in the top left : Reference file creation failed!

 

Something with write premission maybe. ?

 

Greetings, Anne

 

 

Hi,

 

Where and what do i need to change than..

 

The image directory for the shop is only about 2800 images large..

 

Also i changed the admin directory name and the images directory name. for security measurements with the corresponding settings in the configure.php files of the shop..

 

Greeting, Anne

Share this post


Link to post
Share on other sites

For anyone having these errors!!

 

"Your username is invalid. Please change it and try again."

Or

"At least one entry is required" error when there is a entry listed, your problems lies within the start directory. Only writing your web root (http://yourdomain.com) will not suffice, you need to start from your system root(/hsphere/local/home/cpanel/.......). You will see that in version 1.9 it will be displayed automatically, but in 2.6 in will not.

 

Also you need to change both log files in the admin folder to permissions 775

 

Hope this helps

Share this post


Link to post
Share on other sites

My Sitemonitor is working ok, but I wonder why this is happening:

 

In osC admin panel to the right of the top menubar it says: (I have changed my username here wink.gif)

Logged in as: steini (Logoff)

 

But after clicking Sitemonitor -> Configure this is what it says:

Logged in as: c (Logoff)

 

And stays that way until I close admijn panel and restart it again.

Why is Sitemonitor changing the username info on that line?

It's changing because the code in SiteMonitor uses a name that is used by the code to display the login name. To fix that, please make this change: In sitemonitor_configure_setup.php, find this code

      $admin = trim(DIR_WS_ADMIN, "/");
     $switch['exclude_list'] = ((! strstr($list, $admin)) ? "'" .  $admin . "', " : '');

and replace it with

      $adminSM = trim(DIR_WS_ADMIN, "/");
     $switch['exclude_list'] = ((! strstr($list, $adminSM)) ? "'" .  $adminSM . "', " : '');

Share this post


Link to post
Share on other sites

I'm getting there. Configure page is also displaying now, was 1 file missing in the includes dir. under functions.

 

But the next bit, when pressing on Update first button i get the message in the top left : Reference file creation failed!

 

Something with write premission maybe. ?

Assuming it is installed correctly, it might be a problem where your server is restricting file creation for security reasons. You would need to ask your host about this.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×