Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SiteMonitor


Jack_mcs

Recommended Posts

Changed that as directed above Jack and it now shows the same error received from using article #1567836

 

Error ERROR_IMAGES_HAS_PHP

Error

Error

 

Error is on color background

I don't know what you mean by the articles you reference so that doesn't help. If you thinkk they are relevant, please include a link. And all you posted regarding the error are the words error, so that doesn't help. Without knowing the actual failure and your php version I can only guess, and I'm out of those.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Sorry for the confusion. The #1234567890 on the right hand side of your name is what I was referring to as the forum article which is also called the Posted Topic?

 

http://www.oscommerce.com/forums/index.php?showtopic=221438&view=findpost&p=1563468

 

Error.gif ERROR_IMAGES_HAS_PHP

Error.gif

Error.gif

 

When I goto admin in osCommerce and click on admin in Site Monitor The Error exactly as shown above is displayed above the osCommerce logo in Administration. The three error words on the left come from /images/icons/error.gif

 

I am not sure if any of that makes any sense but thats the exact result I am receiving.

Link to comment
Share on other sites

Jack here is the html of the error

 

<table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr class="messageStackError">

<td class="messageStackError"><img src="images/icons/error.gif" border="0" alt="Error" title=" Error " /> ERROR_IMAGES_HAS_PHP</td>IMAGES_HAS_PHP</td>

</tr>

<tr class="messageStackError">

 

<td class="messageStackError"><img src="images/icons/error.gif" border="0" alt="Error" title=" Error " /> </td>

</tr>

<tr class="messageStackError">

<td class="messageStackError"><img src="images/icons/error.gif" border="0" alt="Error" title=" Error " /> </td>

</tr>

</table>

Link to comment
Share on other sites

Jack here is the html of the error

 

If you're actually seeing "ERROR_IMAGES_HAS_PHP," it means a definition is missing which means there is something wrong with the installation. You need to go back through the steps since it seems you missed something.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I removed and step by step reinstalled but still got the original Error

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /location/sitemonitor_admin.php on line 66

 

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /location/sitemonitor_admin.php on line 66

 

I tried the last two code fixes again

$a1 = glob(DIR_FS_CATALOG . DIR_WS_IMAGES . '*.php');

$a2 = glob(DIR_FS_CATALOG . DIR_WS_IMAGES . '*.txt');

$invalidFiles = array_merge($a1, (array)$a2);

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/Mysite/public_html/admin/sitemonitor_admin.php on line 68

 

$a1 = glob(DIR_FS_CATALOG . DIR_WS_IMAGES . '*.php');

$a2 = glob(DIR_FS_CATALOG . DIR_WS_IMAGES . '*.txt');

$invalidFiles = array_merge((array)$a1, (array)$a2);

WARNING: Your images directory contains non-image type files which is, generally, not correct.

 

The php used here is V5.2.14 is this OK ?

 

I will keep trying to get Site Monitor running correctly because even on this new installation I have had "Hackers" knocking on the front door allready trying to get in to install :angry: and I would like to prevent them and protect my site as best I can.

Edited by Thare
Link to comment
Share on other sites

WARNING: Your images directory contains non-image type files which is, generally, not correct.

It seems to be working and telling you there is a non-image file in the images directory. Have you looked in the images directory to verify that?

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Only have installed the basic security Appz so my installation is more or less a default installation. I searched all /images/ folders for non image files. The results I got are :->

 

public_html/admin/images/.htaccess

public_html/admin/images/graphs/dummy

public_html/admin/includes/javascript/spiffyCal/images/spiffcal.cur

public_html/admin/includes/javascript/spiffyCal/images/spiffcal2.cur

public_html/admin/includes/javascript/spiffyCal/images/spiffcal3.cur

public_html/admin/includes/languages/images/buttons/Thumbs.db

 

There are no php files only image files in the folders.

Link to comment
Share on other sites

Only have installed the basic security Appz so my installation is more or less a default installation. I searched all /images/ folders for non image files. The results I got are :->

 

public_html/admin/images/.htaccess

public_html/admin/images/graphs/dummy

public_html/admin/includes/javascript/spiffyCal/images/spiffcal.cur

public_html/admin/includes/javascript/spiffyCal/images/spiffcal2.cur

public_html/admin/includes/javascript/spiffyCal/images/spiffcal3.cur

public_html/admin/includes/languages/images/buttons/Thumbs.db

 

There are no php files only image files in the folders.

Try checking the shops images directories, not the admins.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I examined all image folders including the shop images on that installation. They all contained images only.

 

I have today freshly reinstalled osCommerce and the only application currently loaded on it is Site Monitor. I am now back with the original error messages at Site Monitor Admin.

 

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/Mysite/public_html/admin/sitemonitor_admin.php on line 66

 

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/Mysite/public_html/admin/sitemonitor_admin.php on line 66

 

It would be great to solve this one so I will not install any more for now.

Link to comment
Share on other sites

I examined all image folders including the shop images on that installation. They all contained images only.

 

I have today freshly reinstalled osCommerce and the only application currently loaded on it is Site Monitor. I am now back with the original error messages at Site Monitor Admin.

 

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/Mysite/public_html/admin/sitemonitor_admin.php on line 66

 

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/Mysite/public_html/admin/sitemonitor_admin.php on line 66

 

It would be great to solve this one so I will not install any more for now.

Unfortunately, this is one of those problems that doesn't appear to be fixable in a support thread. If you are getting the same error as before, then you should review the changes that fixed those before.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I know how 2 find my way around install and tweak a few things but I know nothing about code :'(

 

Thanks Jack for your help and this great contribution. I searched the entire Topic for help and it appears that the original Warning: array_merge() [function.array-merge] error has not yet been resolved.

 

The patch/s given to fix the original error simply created other unrelated error/s causing further confusion instead of actually fixing the original error.

 

:blink: Eye suspect many who have Site Monitor installed are simply overlooking the issue and have said nothing or they have // CLOSED // line 66 or removed it.

Link to comment
Share on other sites

  • 3 weeks later...

I just installed the script and simple enough, but I'm having a bit of a problem. When I run the script manually I receive this error:

 

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

 

Then I receive results:

 

No new files found...

Found a deleted file named

No size differences found...

No time mismatches found...

No permissions mismatches found...

 

Then another error:

 

Warning: fopen(sitemonitor_log_0.txt) [function.fopen]: failed to open stream: Permission denied in /home/howigot/public_html/alter/includes/functions/sitemonitor_functions.php on line 629

 

Any ideas on how to fix this. I thought that the script might work anyway, even with the errors, so I added a file named zzz.php and it obviously didn't find the file. Any help would be greatly appreciated.

 

Thanks,

 

B

Link to comment
Share on other sites

I just installed the script and simple enough, but I'm having a bit of a problem. When I run the script manually I receive this error:

 

Warning: opendir(/home/username/public_html)

 

Warning: fopen(sitemonitor_log_0.txt) [function.fopen]: failed to open stream: Permission denied

 

Any ideas on how to fix this. I thought that the script might work anyway, even with the errors, so I added a file named zzz.php and it obviously didn't find the file. Any help would be greatly appreciated.

The first error is saying your username is username, which is probably wrong. I don't know how you could get it to run with a wrong one though so I'm confused. The second is probably due to the first but it could be a server setting too. I suggest making sure the confiugre settings are correct and try again.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Still have old issue:

 

 

Status: 404 Not Found

Content-type: text/html

 

No input file specified.

 

 

cron :

php /home/reyburn/public_html/admin/sitemonitor.php?instance=0

 

 

i am using Host Gator hosting.

From this hosting support:

 

 

What do I put for the cron job Command ?

Command lines. Examples only! Bold sections must be changed.

 

Shared, Reseller, SEO hosting, and other (VPS and Dedicated with Easy Apache 3 installed)

 

 

PHP

Command to run a PHP5 cron job:<BR style="FONT-FAMILY: Tahoma, kalimati, arial; FONT-SIZE: 12px">php /home/user_name123/public_html/cron.php

 

 

 

 

</B>

Edited by sunrise99
Link to comment
Share on other sites

Still have old issue:

 

 

Status: 404 Not Found

Content-type: text/html

 

No input file specified.

 

cron :

php /home/reyburn/public_html/admin/sitemonitor.php?instance=0

You could try the alternate cron statement I recently posted here.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

The first error is saying your username is username, which is probably wrong. I don't know how you could get it to run with a wrong one though so I'm confused. The second is probably due to the first but it could be a server setting too. I suggest making sure the confiugre settings are correct and try again.

 

 

Thanks for the reply. I had the username correct, but now I am getting a different error when I updated the config:

Warning: chmod() [function.chmod]: Operation not permitted in /home/howigot/public_html/alter/includes/functions/sitemonitor_functions.php on line 597
Cannot change the mode of file (/home/howigot/public_html/alter/sitemonitor_configure_0.php)

 

Does this file need to have other permissions beside 644?

Link to comment
Share on other sites

Okay, I figured out the permission issue, but after the script runs and finds all new files because they were not in the log, which I chmod to 777, it says at the bottom "Files being monitored: 0"?????

Edited by kycnotes
Link to comment
Share on other sites

Okay, I figured out the permission issue, but after the script runs and finds all new files because they were not in the log, which I chmod to 777, it says at the bottom "Files being monitored: 0"?????

That count is based on the entries in the sitemonitor_reference_0.php file. If you read that file, does it have any entries? Since you had permissions problems, I'm guessing the permissions for that file are also causing problems.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

That count is based on the entries in the sitemonitor_reference_0.php file. If you read that file, does it have any entries? Since you had permissions problems, I'm guessing the permissions for that file are also causing problems.

 

Okay, I chmod'd that file to 777. Now I get this error:

 

Warning: copy(sitemonitor_log_003_08_2011.txt) [function.copy]: failed to open stream: Permission denied in /home/howigot/public_html/alter/includes/functions/sitemonitor_functions.php on line 245

Link to comment
Share on other sites

Okay, I chmod'd that file to 777. Now I get this error:

 

Warning: copy(sitemonitor_log_003_08_2011.txt) [function.copy]: failed to open stream: Permission denied in /home/howigot/public_html/alter/includes/functions/sitemonitor_functions.php on line 245

Yes, there are several files that have to be writeable and setting permissions like that won't work since the file names change. You need to talk to your host about allowing the files to be written too.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Yes, there are several files that have to be writeable and setting permissions like that won't work since the file names change. You need to talk to your host about allowing the files to be written too.

 

If i chmod /functions or another directory would that fix the problem? If so, would that also open up potential exploits. I am terrified of 777

Edited by kycnotes
Link to comment
Share on other sites

If i chmod /functions or another directory would that fix the problem? If so, would that also open up potential exploits. I am terrified of 777

You shouldn't change the admin to 777, which is what it would need, if then. There are settings on the server that can override that, thus my suggestion to talk to your host.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Good morning everyone,

I have been trying to read through the posts here and none seems to address my present situation.

 

Anytime I try to configure sitemonitor, a popup comes out with an error warning saying " Home/xxxx/public_html does not match start directory Home/xxxx/public_html".

 

the funny things is this; the start directory is same with shop directory so i don't know why it keeps giving me such error messages.

 

Thanks

Link to comment
Share on other sites

Good morning everyone,

I have been trying to read through the posts here and none seems to address my present situation.

 

Anytime I try to configure sitemonitor, a popup comes out with an error warning saying " Home/xxxx/public_html does not match start directory Home/xxxx/public_html".

 

the funny things is this; the start directory is same with shop directory so i don't know why it keeps giving me such error messages.

 

Thanks

They're different. You just aren't looking closely enough.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

  • 2 weeks later...

They're different. You just aren't looking closely enough.

 

Yeah! i finally figured it out; but here comes another issue like that of KCnotes.

 

It says: Warning: chmod() [function.chmod]: Operation not permitted in /home/xxxxx/public_html/admin/includes/functions/sitemonitor_functions.php on line 597

Cannot change the mode of file (/home/xxxxx/public_html/admin/sitemonitor_configure_0.php)

 

 

 

function WriteConfigureFile($filename, $fp)

{

$fileFound = file_exists($filename);

 

if ($fileFound && !is_writable($filename)) {

Line 597 if (!chmod($filename, 0666)) {

echo "Cannot change the mode of file ($filename)";

return false;

}

}

 

 

Please help.

 

Thanks

Edited by elgaxton
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...