ok got something to work with now.. I put that set of lines directly in whos_online.php
Code:
Fatal error: Cannot instantiate non-existent class: simplexmlelement in /home/wkdwich/public_html/shoppeNEW/admin/whos_online.php on line 109
Lines 106-110
Code:
$answer = new SimpleXMLElement($backup);
if (!$backup) return false; // Failed to open connection
}else{
$answer = new SimpleXMLElement($d);
}
I thought the fact I had not changed permission on the backup folder might be the answer, but no that wasn't it.
I tried various combinations of commenting out those lines, changing it to:
Code:
// $answer = new SimpleXMLElement($backup);
// if (!$backup) return false; // Failed to open connection
// }else{
// $answer = new SimpleXMLElement($d);
}
Did bring up the page but with left navigation and the content itself had a slew of other errors..
I searched the forums here and at oscommerce.com and found this post:
Who's Online Enhancement 1.4 - osCommerce Community Support Forums - Page 79
unfortuantely that again gave me the page, left navigation & content but with a whole slew of errors..
FYI I do not have suhosin installed
running PHP Version 4.4.7
Further in the same thread:
Code:
If you are still getting this error there is a fix that was posted but was not correct in how to comment it out.
The correct way is to do this..
//$answer = new SimpleXMLElement($backup);
//if (!$backup) return false; // Failed to open connection
}//else{
//$answer = new SimpleXMLElement($d);
//}
Notice the line }//else{ If you put the // in front of the } you will get another error.
but that did not work either, page comes up, but same slew of errors in the left nav and content..
where do I go from here???
I forgot to add that in admin/functions/whos_online.php I added:
Code:
if(!function_exists('stripos')) {
function stripos($haystack, $needle, $offset = 0) {
return strpos(strtolower($haystack), strtolower($needle), $offset);
}
}
as was instructed in the thread @ forums.oscommerce.com
Thats when I started to get the page displaying but with loads of other errors
Bookmarks