Page 1 of 1

[Solved] Lost content pages from website

Posted: Tue Jun 03, 2014 12:12 am
by schmackster
Long time user but first time poster as I have never really had a problem I couldn't solve but this one has me beat as I am really only a power user not a coder.

Anyway problem is that I have lost all my content pages from the admin console and get the following error when trying to access the site.
Fatal error: Call to a member function getContent() on a non-object in /home/pho23534/public_html/plugins/function.cms_selflink.php on line 283
The rest of the admin console works fine and the mySQL database checks out fine using the hosting companies cPanelX check facility.

The problem first appeared after one of the users was using the Administer page in the Form Browser module and altered a record using the edit function. When she finished she got some sort of error message which she didn't save for me. When I try to replicate her actions I don't have a problem though.

Am at a loss as I do not know any php so can't go digging and of course I haven't backed up the site so can't just restore an working version.

Any help would be appreciated.

System info
----------------------------------------------

Cms Version: 1.9.4.2

Installed Modules:

CMSMailer: 2.0.1
MenuManager: 1.7.6
ModuleManager: 1.4.2
News: 2.11.3
nuSOAP: 1.0.2
Printing: 1.1.2
Search: 1.6.10
ThemeManager: 1.1.4
TinyMCE: 2.8.4
CGExtensions: 1.28.2
FormBuilder: 0.7
Captcha: 0.4.3
FormBrowser: 0.4
TreeManager: 0.6.0
Gallery: 1.4.4
FrontEndUsers: 1.16.2
FileManager: 1.1.0

Config Information:

php_memory_limit:
process_whole_template: false
output_compression: false
max_upload_size: 4000000
default_upload_permission: 664
url_rewriting: none
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true

Php Information:

phpversion: 5.2.17
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
memory_limit: 64M
max_execution_time: 30
output_buffering: On
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 20M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)

Server Information:

Server Api: cgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.0.96

----------------------------------------------

Re: Lost content pages from website

Posted: Tue Jun 03, 2014 10:05 am
by velden
Hard to tell what the problem is this case.

I hope you didn't really loose the content from database as that would be a big problem considering you don't have a backup.

There are some general troubleshooting tips to be found here: http://docs.cmsmadesimple.org/troubleshooting/tips

You could also consider creating a backup now and then ask for some Commercial help. So someone can have a look if things are really lost or recoverable.

That said; you're version of cmsms is too old and not supported anymore. However, your version of php is too low to support all new versions of the installed modules and I'm not sure if all modules will work on latest CMSMS.

Re: Lost content pages from website

Posted: Wed Jun 04, 2014 1:41 am
by schmackster
OK then with no quick fix available (pretty much as I expected) I tried creating the pages again from scratch. I selected "Create Content" and filled in all the relevant fields and added some text then hit "Submit". The result was an error message in red across the top.
You must select a parent page (contact your administrator if you do not see this option)
The problem is that the "Select Parent" box is not there under the "Menu Text" box as per usual. Any idea how I can fix this as all the template info is still there but just the pages are missing which are easy enough to re-create.

I am logged in as the main admin user and even logged in using my secondary admin user to see if that made a difference but it was the same.

Also it might be me but there seems to be something wrong with the layout of the "Pages" page, see image below. Usually the table is between the 2 lines of links but in this case the table is below the 2 lines of links. Not sure if this is a sign of some other problem in the code.
Screenshot of "Pages" page
Screenshot of "Pages" page

Re: Lost content pages from website

Posted: Wed Jun 04, 2014 6:27 am
by velden

[Solved] Re: Lost content pages from website

Posted: Wed Jun 04, 2014 12:24 pm
by schmackster
........and the long shot pays off!! ;D

For future reference I followed the steps in the post referenced above:

Site Admin -> Global Settings -> Clicked Clear under Cache
Clicked Submit at the bottom

All the missing pages the re-appeared and all is good in my world again.

Thanks very much velden.

Re: [Solved] Lost content pages from website

Posted: Wed Jun 04, 2014 12:49 pm
by velden
Hint: make backup now.

Re: [Solved] Lost content pages from website

Posted: Thu Jun 05, 2014 11:08 pm
by paulbaker
velden wrote:Hint: make backup now.
...and then upgrade ;D