Hi,
I am having a similar problem: Since earlier this week I have been unable to use the menu option 'Check My Mail' to collect new POP3 emails. When I click the button, after a short delay the screen goes blank. The page source is completely empty.
I have looked in the error logs and every time it is the same:
PHP Warning: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in /home/accountname/public_html/subdirectory/modules/Emails/Save.php on line 164
Looking at the PHP file in question, the offending line is the 'if' statement halfway down this block:
//// handle legacy parent_id/parent_type relationship calls
elseif(isset($_REQUEST['parent_type']) && !empty($_REQUEST['parent_type']) && isset($_REQUEST['parent_id']) && !empty($_REQUEST['parent_id'])) {
//run linking code only if the object_id has not been linked as part of the contacts above
if(!in_array($_REQUEST['parent_id'],$exContactIds)){
$rel = strtolower($_REQUEST['parent_type']);
$focus->load_relationship($rel);
$focus->$rel->add($_REQUEST['parent_id']);
}
}
nb. (I have pasted 'accountname' and 'subdirectory' in place of real company names)
I was using 4.5.1g and tried upgrading to the latest patch Version 4.5.1h (Build 1104). There were a lot of files that need to be merged. I have not done so as I don't know where to start with this task.
We have two instances of sugar on the same hosting, running in separate subdirectories. Because of the hosting arrangements, php.ini is in the subdirectory.
Our hosting company configuration is:
Apache 1.3.39
PHP 5.0.0
MySQL 5.0.27-standard.log
Please can you help me resolve this,
Philip
Bookmarks