How can I retrieve deleted page versions?

I inadvertently deleted old page versions that I should not have and now only the home page can be viewed. (Lesson: never work when overly tired!) I refreshed each block type and cleared cache, but still nothing. I have a back-up db from two months ago, so I'd prefer to try and retrieve these page versions before resorting to database restoration. My current C5 version is # concrete5 Version Here is the error message displayed when a someone tries to view any page but home:

Fatal error: Call to a member function getBlockTypeHandle() on a non-object in /home6/yogacent/public_html/updates/concrete5.5.2.1/concrete/libraries/block_view_template.php on line 41

I am officially desperate and will welcome any suggestions. THANK YOU!


View Replies:
Ekko replied on at Permalink Reply
Go to your sitemap from dashboard and on the right you will see options. Click this and a checkbox for show system pages will drop down. Click this and it will show your full sitemap structure. Scroll down until you find trash. Open that and there should be your deleted pages. Put your pages back to where they belong, clear all caches, site, browser, refresh page and hopefully there will be no more error.
evavra replied on at Permalink Reply
Thank you for replying. Your suggestion sounded promising. I found many pages in the trash folder, but none were the ones I was hoping to retrieve. I've always been able to see the names of the sub-pages within the full site-map listing, but when I try to view or visit those pages, I get this error message:

Fatal error: Call to a member function getBlockTypeHandle() on a non-object in /home6/yogacent/public_html/updates/concrete5.5.2.1/concrete/libraries/block_view_template.php on line 41

I'm not sure exactly what I'm supposed to do with the error message. Contact a member, perhaps? I checked my block_view_template.php file. I have copied lines #40 - #46 here:
public function __construct($obj) {
$this->btHandle = $obj->getBlockTypeHandle();
$this->obj = $obj;
if ($obj instanceof Block) {
$this->bFilename = $obj->getBlockFilename();

Still in need of a solution if anyone has more thoughts. Thanks,

Mnkras replied on at Permalink Reply
Please clear your Site Cache, I believe that will solve the issue.

evavra replied on at Permalink Reply
I cleared the cache several times before your suggestion -- and after as well. Still no change. I did more exploration, and now have a different thought on a possible resolution. I can see a list of the old (deleted) versions for each of the malfunctioning pages when I go to my Full Site-Map and select 'Versions'. (The names of the pages are still listed in the site-map tree.) However, if I select one of those old/deleted versions to view, all I get is a blank page with that fatal error message (copied in my original posting). No content is visible.

I'm wondering if my solution lies with somehow getting those old/deleted versions back onto the list that is viewable in Edit mode. This seems to be where my troubles started -- after I removed old versions to speed up the site. If I can place those old versions back onto the original list, could it be possible that all the necessary info/data/attributes/etc. can be referenced again and bring my sub-pages back to life?

This is my theory for today. Any thoughts?