{"id":405,"date":"2011-05-12T18:02:07","date_gmt":"2011-05-12T17:02:07","guid":{"rendered":"http:\/\/kb.toderu.ro\/?p=405"},"modified":"2011-05-12T18:02:07","modified_gmt":"2011-05-12T17:02:07","slug":"how-to-fix-plesk-horde-after-upgrade-to-php-5-3","status":"publish","type":"post","link":"https:\/\/kb.toderu.ro\/?p=405","title":{"rendered":"how to fix plesk horde after upgrade to php 5.3"},"content":{"rendered":"<p>\t\t\t\ttested on Horde: 3.1.7<\/p>\n<p>don&#8217;t be tricked by these errors in log:<br \/>\n[error] [client &#8230;.] PHP Deprecated:  Assigning the return value of new by reference is deprecated in \/usr\/share\/psa-pear\/PEAR.php<br \/>\n<i>the errors can be disabled in \/usr\/share\/psa-horde\/config\/conf.php<\/i><\/p>\n<p>If you get white page [500 error] after login on horde you can try this:<br \/>\nedit files: <\/p>\n<pre>\/usr\/share\/psa-horde\/imp\/lib\/IMAP\/Client.php line 576\nmodify     function namespace($additional = array())\nwith       function plmnamespace($additional = array())\n\/usr\/share\/psa-horde\/imp\/lib\/Session.php line 295\nmodify     $_SESSION['imp']['namespace'] = $imapclient->namespace($user_namespace);\nwith       $_SESSION['imp']['namespace'] = $imapclient->plmnamespace($user_namespace);<\/pre>\n<p>reload the webmail page and logout\/login again.<\/p>\n<p>Please let me know if this helps you. Feedback is appreciated.<\/p>\n<p>UPDATE:<br \/>\nmodify all this files to get everything working properly<\/p>\n<p>.\/IMAP\/Tree.php:78:            $ptr = reset($_SESSION[&#8216;imp&#8217;][&#8216;plmnamespace&#8217;]);<br \/>\n.\/IMAP\/Tree.php:83:                $this->_namespaces = (empty($GLOBALS[&#8216;conf&#8217;][&#8216;user&#8217;][&#8216;allow_folders&#8217;])) ? array() : $_SESSION[&#8216;imp&#8217;][&#8216;plmnamespace&#8217;];<br \/>\n.\/IMAP\/Tree.php:184:        foreach ($_SESSION[&#8216;imp&#8217;][&#8216;plmnamespace&#8217;] as $val) {<br \/>\n.\/Folder.php:139:            $delimiter = reset($_SESSION[&#8216;imp&#8217;][&#8216;plmnamespace&#8217;]);<br \/>\n.\/Folder.php:678:        foreach ($_SESSION[&#8216;imp&#8217;][&#8216;plmnamespace&#8217;] as $val) {<br \/>\n.\/Session.php:259:                $_SESSION[&#8216;imp&#8217;][&#8216;plmnamespace&#8217;] = $ptr[&#8216;imap_config&#8217;][&#8216;plmnamespace&#8217;];<br \/>\n.\/Session.php:265:                $_SESSION[&#8216;imp&#8217;][&#8216;plmnamespace&#8217;] = array();<br \/>\n.\/Session.php:268:                $user_namespace = (isset($ptr[&#8216;plmnamespace&#8217;]) &#038;&#038; is_array($ptr[&#8216;plmnamespace&#8217;])) ? $ptr[&#8216;plmnamespace&#8217;] : array();<br \/>\n.\/Session.php:278:                                $_SESSION[&#8216;imp&#8217;][&#8216;plmnamespace&#8217;][$val] = array(&#8216;name&#8217; => $val, &#8216;delimiter&#8217; => $box[0]->delimiter);<br \/>\n.\/Session.php:295:                    $_SESSION[&#8216;imp&#8217;][&#8216;plmnamespace&#8217;] = $imapclient->plmnamespace($user_namespace);<br \/>\n.\/Session.php:296:                    if (!is_array($_SESSION[&#8216;imp&#8217;][&#8216;plmnamespace&#8217;])) {<br \/>\n.\/Session.php:318:            $_SESSION[&#8216;imp&#8217;][&#8216;plmnamespace&#8217;] = null;<br \/>\n.\/IMP.php:1195:            reset($_SESSION[&#8216;imp&#8217;][&#8216;plmnamespace&#8217;]);<br \/>\n.\/IMP.php:1196:            $mailbox = key($_SESSION[&#8216;imp&#8217;][&#8216;plmnamespace&#8217;]);<br \/>\n.\/IMP.php:1204:        foreach ($_SESSION[&#8216;imp&#8217;][&#8216;plmnamespace&#8217;] as $key => $val) {<br \/>\n.\/IMP.php:1211:        if ($empty &#038;&#038; isset($_SESSION[&#8216;imp&#8217;][&#8216;plmnamespace&#8217;][&#8221;])) {<br \/>\n.\/IMP.php:1212:            $cache[$key][$mailbox] = $_SESSION[&#8216;imp&#8217;][&#8216;plmnamespace&#8217;][&#8221;];<br \/>\n.\/IMP.php:1236:            foreach ($_SESSION[&#8216;imp&#8217;][&#8216;plmnamespace&#8217;] as $val) {<\/p>\n<p>P.S. If you copy\/paste the content to your blog, please quote the source \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>tested on Horde: 3.1.7 don&#8217;t be tricked by these errors in log: [error] [client &#8230;.] PHP Deprecated: Assigning the return value of new by reference is deprecated in \/usr\/share\/psa-pear\/PEAR.php the errors can be disabled in \/usr\/share\/psa-horde\/config\/conf.php If you get white page [500 error] after login on horde you can try this: edit files: \/usr\/share\/psa-horde\/imp\/lib\/IMAP\/Client.php line [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,10,11],"tags":[],"class_list":["post-405","post","type-post","status-publish","format-standard","hentry","category-linux","category-php","category-plesk"],"_links":{"self":[{"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=\/wp\/v2\/posts\/405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=405"}],"version-history":[{"count":0,"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=\/wp\/v2\/posts\/405\/revisions"}],"wp:attachment":[{"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}