{"id":14,"date":"2012-05-24T17:13:52","date_gmt":"2012-05-24T17:13:52","guid":{"rendered":"http:\/\/blog.law.gmu.edu\/webservices\/?p=14"},"modified":"2012-05-24T17:13:52","modified_gmt":"2012-05-24T17:13:52","slug":"upgrade-notes","status":"publish","type":"post","link":"https:\/\/sls.gmu.edu\/web\/2012\/05\/24\/upgrade-notes\/","title":{"rendered":"Upgrade Notes"},"content":{"rendered":"<p><strong>WordPress<\/strong>: Just hit the upgrade button<\/p>\n<p><strong>MODX<\/strong>: 1.06<\/p>\n<ul>\n<li>Follow <a href=\"http:\/\/wiki.modxcms.com\/index.php\/Upgrading_Guide\">Upgrading Guide<\/a> (Alternate Method).<\/li>\n<li>Back up config.inc.php and document.parser.class.inc.php<\/li>\n<li>Once upgraded, <a href=\"http:\/\/forums.modx.com\/thread\/?thread=25111&amp;page=1\">change default sort order in resource tree<\/a>:<code>if (!isset($_SESSION['tree_sortby']) &amp;&amp; !isset($_SESSION['tree_sortdir'])) {<br \/>\n\/\/ This is the first startup, set default sort order<br \/>\n$_SESSION['tree_sortby'] = 'menuindex'; \/\/ Change menuindex to a value of your choice.<br \/>\n$_SESSION['tree_sortdir'] = 'ASC';<br \/>\n}<\/code><\/li>\n<li>PHx Bug &amp; pageTOC issue: The fix is to increase the pcre.backtrack_limit setting in php.inifrom 100000 to 800000<br \/>\n<code><br \/>\n[Pcre]<br \/>\n;PCRE library backtracking limit.<br \/>\npcre.backtrack_limit=800000<br \/>\n<\/code><\/li>\n<\/ul>\n<p><strong>Modifying the document.parser.class.inc.php<\/strong><\/p>\n<p>Add the following codes when upgrade:<\/p>\n<p>  <code>\/\/ START CODE BY PAUL BOHMAN\/DONNY TRUONG<br \/>\n\/\/ Ability to get all documents, whether deleted or unpublished, added by Paul Bohman<br \/>\n    if ($published == '*') $sqlPublished = '';<br \/>\n             else $sqlPublished = \"AND sc.published=$published\";<br \/>\n             if ($deleted == '*') $sqlDeleted = '';<br \/>\n             else $sqlDeleted = \"AND sc.deleted=$deleted\";<br \/>\n\/\/ END CODE BY PAUL BOHMAN\/DONNY TRUONG<\/code><\/p>\n<p><strong>And here:<\/strong><\/p>\n<p><code>$result= $this-&gt;getTemplateVars($vars, \"*\", $docid, $published, \"\", \"\", $sep, <strong>$deleted=0<\/strong>);<br \/>\n            \/\/ The <strong>deleted<\/strong> option above was added by Paul Bohman\/Donny Truong<\/code><\/p>\n<p>Remember to add the codes for <a href=\"http:\/\/blog.law.gmu.edu\/webservices\/2013\/11\/14\/casifying-modx\/\">CASifying MODX<\/a> as well.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress: Just hit the upgrade button MODX: 1.06 Follow Upgrading Guide (Alternate Method). Back up config.inc.php and document.parser.class.inc.php Once upgraded, change default sort order in resource tree:if (!isset($_SESSION[&#8216;tree_sortby&#8217;]) &amp;&amp; !isset($_SESSION[&#8216;tree_sortdir&#8217;])) { \/\/ This is the first startup, set default sort order $_SESSION[&#8216;tree_sortby&#8217;] = &#8216;menuindex&#8217;; \/\/ Change menuindex to a value of your choice. $_SESSION[&#8216;tree_sortdir&#8217;] = &hellip; <a href=\"https:\/\/sls.gmu.edu\/web\/2012\/05\/24\/upgrade-notes\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Upgrade Notes&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-14","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/posts\/14","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/comments?post=14"}],"version-history":[{"count":0,"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/posts\/14\/revisions"}],"wp:attachment":[{"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/media?parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/categories?post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/tags?post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}