We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14779
    • 256 Posts
    Hey all!

    I just upgraded 0.9.2.2 to 0.9.5. on three of my personal servers with no problem. This was a sort of test before I upgraded on the ’Important Server’. (heav.org)

    When I did upgrade, as soon as the files were finished uploading, I ran the install. No problems there. Then I logged into the Manager. Still no problems. BUT, when I try to view the site, the pages are all blank. A totally empty page. when I try to view the content of a page in the manager I get this error:

    Fatal error: Call to undefined function: getsitestats() in /home/heavws05/public_html/manager/includes/document.parser.class.inc.php(748) : eval()’d code on line 8
    It was my understanding that Site Stats were eliminated in 0.9.5. PLEASE HELP. this is a VERY important server, and according to Jason Coward, an upgrade will fix some minor problems I am having with weblinks. http://modxcms.com/forums/index.php/topic,9981.msg68509.html#msg68509
      PM me to find out how you can get a FREE ipad 2!
      • 22303 MODX Staff
      • 10,725 Posts
      Josh, you have a call to a snippet called GetStats somewhere in your template...
        • 25663 MODX Staff
        • 12,272 Posts
        What’s on line 8 (or thereabouts) on your main home page template? Should be a snippet that’s calling a getsitestats() function.
          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
          • 14779
          • 256 Posts
          I looked at my template and found a call to a modified GetSitestats snippet near the bottom.

          Here is my template:

          <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
          <html xmlns="http://www.w3.org/1999/xhtml">
          
          <head>
          <title>Home Educators Association of VA | [*pagetitle*]</title>
          <meta name="description" content="Home Educators Association of Virginia is a member-supported, statewide, nonprofit homeschool association that operates from a biblical worldview. HEAV serves all homeschoolers and since 1983 has worked tirelessly to promote and protect homeschool interests in Virginia through information, legislation, and resources."></meta>
          <meta name="keywords" content="home education, homeschoolers, homeschool, virginia, education, speakers, HEAV, legislation, resources, help, christian, convention, richmond, state, government, organization, schooling,Virginia homeschool, homeschool Virginia, homeschooling, home schooling, homeschool, home school, home-school, home school law, homeschool law, Virginia homeschool law, how to begin homeschool, homeschool high school"></meta>
          <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /></meta>
          <META name="verify-v1" content="o8zJip2tJmoxQYDLKuaTx9GLTLvHLsRIhBXYhjQMIxA=" />
          
          <link rel="shortcut icon" href="assets/templates/heav2.0/favicon.ico" />
          <link type="text/css" rel="stylesheet" media="all" href="[(base_url)]assets/templates/heav2.0/stylesheet.css"></link>
          <script type="text/javascript" src="[(base_url)]assets/templates/heav2.0/javascript/prototype.js"></script>
          <script type="text/javascript" src="[(base_url)]assets/templates/heav2.0/javascript/moo.fx.js"></script>
          <script type="text/javascript" src="[(base_url)]assets/templates/heav2.0/javascript/drop_down_menu.js"></script>
          
          
          
          
          <base href="[(site_url)]" />
          </head>
          <body>
          <!--body begins here-->
          <div id="wrapper">
          <div id="container">
          <img style="margin-top: none;" src="[(base_url)]assets/templates/heav2.0/images/purple-bar.jpg">
          
          <!--top navigation begins here-->
          
          
          <div id="header">
          <img style="margin-top:5px;" src="[(base_url)]assets/templates/heav2.0/images/logo.jpg">
          <ul id="menu_top">
          <li><a href="http://heav.org">Home</a>
          <ul style="display:none;">
          <li><a href="http://heav.org">Home</a></li>
          <li><a href="[~16~]">Annual Convention</a></li>
          <li><a href="[~19~]">Become a Member</a></li>
          <li><a href="[~636~]">Donate Now!</a></li>
          <li><a href="[~23~]">FREE Magazine</a></li>
          <li><a href="[~25~]">FREE Newsletter</a></li>
          <li><a href="[~186~]">Homeschool Success Seminars</a></li>
          <li><a href="[~21~]">Virginia Homeschool Manual</a></li></ul>
          </li>
          
          <li><a href="[~3~]">Basic Info</a>
          <ul style="display:none;">
          <li><a href="[~3~]">Basic Info</a></li>
          <li><a href="[~34~]">How to Begin</a></li>
          <li><a href="[~523~]">Beginning Mid-Year</a></li>
          <li><a href="[~43~]">Curriculum</a></li>
          <li><a href="[~156~]">Gifted Education</a></li>
          <li><a href="[~150~]">Special Needs</a></li>
          <li><a href="[~158~]">High School</a></li>
          <li><a href="[~169~]">After High School</a></li>
          <li><a href="[~139~]">Tutoring</a></li>
          <li><a href="[~175~]">Extracurricular</a></li>
          <li><a href="[~58~]">Articles of Interest</a></li>
          <li><a href="[~636~]">FAQ</a></li></ul>
          </li>
          
          <li><a href="[~5~]">The Law</a>
          <ul style="display:none;">
          <li><a href="[~5~]">The Law</a></li>
          <li><a href="[~92~]">Access to Public School</a></li>
          <li><a href="http://www.doe.virginia.gov/VDOE/Parents/corrcour.html">Approved Correspondence Courses</a></li>
          <li><a href="[~523~]">Beginning After the Deadline</a></li>
          <li><a href="[~95~]">Certified Tutor</a></li>
          <li><a href="[~83~]">Compulsory Attendance Statute</a></li>
          <li><a href="[~97~]">Driver Education</a></li>
          <li><a href="[~105~]">GED</a></li>
          <li><a href="[~83~]">Home Instruction Statute</a></li>
          <li><a href="[~88~]">Homeschooling Options</a></li>
          <li><a href="[~109~]">Immunizations</a></li>
          <li><a href="[~636~]">Important Links</a></li>
          <li><a href="[~112~]">K5 Registration</a></li>
          <li><a href="[~85~]">Law Flowchart</a></li>
          <li><a href="[~114~]">Legislative</a></li>
          <li><a href="[~121~]">Notice of Intent</a></li>
          <li><a href="[~124~]">Religious Exemption</a></li>
          <li><a href="[~55~]">SOLs</a></li>
          <li><a href="[~7~]">Testing</a></li>
          <li><a href="[~90~]">Virginia Department of Education</a></li>
          <li><a href="[~709~]">Virtual Charter Schools</a></li>
          <li><a href="[~77~]">Work Permits</a></li>
          <li><a href="[~636~]">FAQ</a></li>
          </ul></li>
          
          <li><a href="[~7~]">Testing</a>
          <ul style="display:none;">
          <li><a href="[~7~]">Testing</a></li>
          <li><a href="[~79~]">Laws</a></li>
          <li><a href="[~130~]">Options</a></li>
          <li><a href="[~138~]">Benefits</a></li>
          <li><a href="[~142~]">Test Preparation</a></li>
          <li><a href="[~139~]">Counselors, Testers, and Tutors</a></li>
          <li><a href="[~140~]">Testing Resources</a></li>
          <li><a href="[~147~]">Interpretation of Results</a></li>
          <li><a href="[~132~]">SAT/ACT Practice Tests</a></li>
          <li><a href="[~81~]">FAQ</a></li>
          </ul></li>
          
          <li><a href="[~9~]">Support</a>
          <ul style="display:none;">
          <li><a href="[~9~]">Support</a></li>
          <li><a href="[~9~]">National Organizations</a></li>
          <li><a href="[~9~]">State Organizations</a></li>
          <li><a href="http://heav.networkats.com/members_online/members/directory.asp?af=HEAV">Local Support Groups</a></li>
          <li><a href="[~398~]">Add a Support Group</a></li>
          <li><a href="[~397~]">For Leaders</a></li>
          <li><a href="[~636~]">Boy Scouts</a></li>
          <li><a href="[~636~]">Girl Scouts</a></li></ul></li>
          
          <li><a href="[~11~]">Resources</a>
          <ul style="display:none;">
          <li><a href="[~11~]">Resources</a></li>
          <li><a href="[~19~]">Join HEAV</a></li>
          <li><a href="[~18~]">HEAV Store</a></li>
          <li><a href="[~23~]">FREE Magazine</a></li>
          <li><a href="[~25~]">FREE Newsletter</a></li>
          <li><a href="[~51~]">FREE Legislative Update</a></li>
          <li><a href="[~16~]">Annual Convention</a></li>
          <li><a href="[~21~]">Virginia Homeschool Manual</a></li>
          <li><a href="[~71~]">Virginia Field Trips</a></li>
          <li><a href="[~75~]">Cool Websites by Subject</a></li>
          <li><a href="[~58~]">Helpful Articles</a></li></ul></li>
          
          
          <li><a href="[~13~]">Events</a>
          <ul style="display:none;">
          <li><a href="[~13~]">Events</a></li>
          <li><a href="[~16~]">Annual Convention</a></li>
          <li><a href="[~116~]">Day at the Capitol</a></li>
          <li><a href="[~186~]">Homeschool Success Seminars</a></li>
          <li><a href="[~556~]">Leadership Conference</a></li>
          <li><a href="[~718~]">Answers in Genesis Seminar</a></li>
          </ul></li>
          
          <li><a href="[~16~]">Convention</a>
          <ul  style="display:none; margin-left: -75px;">
          <li><a href="[~16~]">Convention</a></li>
          <li><a href="[~687~]">2007 Convention Home</a></li>
          <li><a href="[~684~]">2007 Speakers</a></li>
          <li><a href="[~685~]">2007 Workshops</a></li>
          <li><a href="[~686~]">2007 Exhibitors</a></li>
          <li><a href="[~688~]">2007 Graduation</a></li>
          <li><a href="[~747~]">2007 Registration</a></li>
          <li><a href="[~16~]">2006 Convention</a></li>
          <li><a href="http://www.best-christian-conferences.com/bcc/store/scripts/orderform.asp?id=5885">2006 Get the Recordings</a></li>
          </ul></li>
          
          <li><a href="[~18~]" style="background-image: none;">Store</a>
          <ul style="display:none; margin-left: -150px;">
          <li><a href="[~18~]">Store</a></li>
          <li><a href="[~18~]">Browse the Store</a></li>
          <li><a href="[~18~]">This Week's Specials</a></li>
          <li><a href="[~18~]">Preschool</a></li>
          <li><a href="[~18~]">High School</a></li>
          <li><a href="[~18~]">Special Needs</a></li>
          <li><a href="[~18~]">General Homeschooling</a></li>
          <li><a href="[~18~]">Record Keeping</a></li>
          <li><a href="[~18~]">For Dads</a></li>
          <li><a href="[~18~]">For the Family</a></li>
          <li><a href="[~18~]">Miscellaneous</a></li>
          <li><a href="http://heav.networkats.com/members_online/members/createorder.asp?af=HEAV">View All Resources</a></li>
          <li><a href="[~636~]">Book Reviews</a></li></ul></li>
          </ul>
          
          
          
          </div>
          
          <!-- begin sub header -->
          <div id="sub-header">
          <img src="[(base_url)]assets/templates/heav2.0/images/header/rotate.php">
          <div id="topnavb"><div>[*yellowbox*]</div></div>
          </div>
          <!-- end sub header -->
          <div id="lower_links">
          <table>
          <tr>
          <td style="width: 94px;"><a href="[~193~]">About HEAV</a></td>
          <td style="width: 90px;"><a href="[~19~]">Join/Renew</a></td>
          <td style="width: 108px;"><a href="[~21~]">Virginia Manual</a></td>
          <td style="width: 108px;"><a href="[~23~]">FREE Magazine</a></td>
          <td style="width: 110px;"><a href="[~25~]">FREE Newsletter</a></td>
          <td style="width: 80px;"><a href="[~26~]">Advertisers</a></td>
          <td style="width: 62px; background-image: none;"><a href="[~453~]">Media</a></td>
          </tr>
          </table>
          </div>
          
          <!-- begin body -->
          
          <!--begin side navigation-->
          <div id="sidebar">
          <center>
          [*includesearch*]
          <br />
          [*sidebaradspace*]
          </center>
          </div>
          
          <!--end side navigation-->
          
          <div id=body>
          [*content*]
          <br />
          [*contentadspace*]
          </div>
          <center>
           <div id="footer">
          <a href="[~28~]">Contact Us</a>  |  <a href="[~29~]">Volunteer</a>  |  <a href="[~30~]">FAQs</a>  |  <a href="454">Site Map</a>  |  <a href="[~31~]">Link to Us!</a><br /><br />
          Home Educators Association of Virginia, 2248 G Dabney Road, Richmond, Virginia,  23230<br />
          PHONE 804-278-9200, FAX 804-278-9202<br /><br />
          Committed to helping parents fulfill their God-given right and responsibility to educate their own children<br /><br />
          This page last edited: [[lastedited]]<br />Number of Visitors to HEAV.org: [[sitestat]] since  Feb. 18, 2006<br /><br /><br />� 2006 Home 
          Educators Association of Virginia. All rights reserved. <a href="mailto:[email protected]">[email protected]</a></font>
          </div>
          </center>
          
          
          </div>
          <script type="text/javascript">
          /* <![CDATA[ */
          
          if(DropDownMenu && $('menu_top')) {
           var menu = new DropDownMenu($('menu_top'));
          }
          
          /* ]]> */
          </script>
          </body>
          </html>


          I don’t see anything near line 8
            PM me to find out how you can get a FREE ipad 2!
            • 25663 MODX Staff
            • 12,272 Posts
            So did you try removing the call to that Stats snippet. I’d suspect near line 8 in that snippet is where the call to the deprecated API is located.
              Ryan Thrash, MODX Co-Founder
              Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
              • 14779
              • 256 Posts
              Sorry, The code doesn’t show, but I commented out the entire snippet call, and still got the same problem.
                PM me to find out how you can get a FREE ipad 2!
                • 14779
                • 256 Posts
                I just realized that even if you comment out a snippet call, I guess MODx still parses it.
                  PM me to find out how you can get a FREE ipad 2!
                  • 22815
                  • 1,097 Posts
                  There is no way of commenting out a snippet call. If you put <!-- HTML comments around it, it will just output into the HTML comments - so it wouldn’t show in a normal browser view but if you looked at the generated source it would be there.
                    No, I don&#39;t know what OpenGeek&#39;s saying half the time either.
                    MODx Documentation: The Wiki | My Wiki contributions | Main MODx Documentation
                    Forum: Where to post threads about add-ons | Forum Rules
                    Like MODx? donate (and/or share your resources)
                    Like me? See my Amazon wishlist
                    MODx "Most Promising CMS" - so appropriate!
                    • 14779
                    • 256 Posts
                    Yeah, i figured that out. smiley

                    Still, after I removed the call to the snippet, the site was still down. I’m just getting a blank page when I try to access it.
                      PM me to find out how you can get a FREE ipad 2!
                      • 22303 MODX Staff
                      • 10,725 Posts
                      Quote from: joshlfisher at Dec 12, 2006, 08:46 AM

                      Yeah, i figured that out. smiley

                      Still, after I removed the call to the snippet, the site was still down. I’m just getting a blank page when I try to access it.
                      There is likely another error that is just not printing out...try changing the error_reporting call in your config file to E_ALL, make sure you login to the manager, and see if it outputs the errors when viewing the site.