Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Argument #1 is not an array in /home/mysite/admin/sitemonitor_admin.php on line 66


Recommended Posts

I came in today to find my website was having problems giving errors….I found fixes off this forum for the main one but now am having problems with Sitemonitor admin giving

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

 

I made no changes to my website which has been running 1year + and suddenly am having errors like the above and at one point on the main page. Could server updates by my host caused this? Any idea on how to fix it? I checked line 66 in sitemonitor_admin.php and there is nothing listed.

Link to comment
Share on other sites

Matthew,

 

 

Has your site been hacked ? Usually when your site fails for no reason, you can pretty much assume SOMEONE has made changes.

 

 

Line 66 should be this:

 

if (count(glob(DIR_FS_CATALOG . DIR_WS_IMAGES . '*.php'))) {

$messageStack->add(ERROR_IMAGES_HAS_PHP, 'error');

 

 

 

 

Chris

Link to comment
Share on other sites

Hi Chris, that is my fear, I am unable to run sitemon to find changes so what to do next I'm having trouble with. Here is what mine looks like.

 

Line 61>>>>> /********************** BEGIN CHECK THE USERNAME *********************/

 

$filenameConfigure = DIR_FS_ADMIN . FILENAME_SITEMONITOR_CONFIGURE;

 

$filenameConfigure = str_replace('.php', '_' . $instance . '.php', $filenameConfigure);

 

$fp = @file($filenameConfigure);

 

Line 69>>>>>>$invalidFiles = array_merge((array)glob(DIR_FS_CATALOG . DIR_WS_IMAGES . '*.php'),(array)glob(DIR_FS_CATALOG . DIR_WS_IMAGES . '*.txt'));

 

Is there anything you could tell me to look for?

 

Matthew,

 

 

Has your site been hacked ? Usually when your site fails for no reason, you can pretty much assume SOMEONE has made changes.

 

 

Line 66 should be this:

 

if (count(glob(DIR_FS_CATALOG . DIR_WS_IMAGES . '*.php'))) {

$messageStack->add(ERROR_IMAGES_HAS_PHP, 'error');

 

 

 

 

Chris

Link to comment
Share on other sites

I checked the error log found in the root public folder and have many listings for today

 

[27-Jul-2011 05:46:00] PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'fixitno1'@'localhost' (using password: NO) in /home/fixitno1/public_html/includes/functions/database.php on line 19

 

[27-Jul-2011 06:14:57] PHP Warning: session_save_path() [<a href='function.session-save-path'>function.session-save-path</a>]: SAFE MODE Restriction in effect. The script whose uid is 904 is not allowed to access /tmp owned by uid 0 in /home/fixitno1/public_html/includes/functions/sessions.php on line 337

 

The second one was comming up on the websites main page above everything which I was able to fix by following a post from this forum:

If the error prevents you from accessing your admin panel then

access the database via phpMyAdmin, go to the 'configuration' table,

find the Session Save Directory entry (there are several pages of

entries for this table), open it for editing and change /tmp to

just tmp with no slash before (or after) it.

 

This is the next error listed before today but I had no troubles until I got in today:

[22-Jul-2011 14:03:32] PHP Fatal error: Call to a member function remove_current_page() on a non-object in /home/fixitno1/public_html/popup_image.php on line 15

 

I also check mod dates via filezilla which lists upload files to google as the only files modified this month other then product_info.php which I think shows a mod date of this month because of new product uploads?

Edited by Guardian_Tech
Link to comment
Share on other sites

Just wanted to leave a final update to this problem…. Apparently my host had the server running in safe mode? This was the cause of the errors on my site but the odd thing is they uploaded a new file called php.ini. Can anyone shed light as to why this file would be uploaded? I am 100% sure this file is new and possibly fixed the problems however the host never said anything about uploading it which makes me worry.

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