Page 1 of 1

[SOLVED] Fatal error when editing any page

Posted: Mon Mar 08, 2010 1:00 am
by jmcgin51
Using CMSms 1.6.7, I get the following fatal error after hitting "Submit" when editing any page:
Fatal error: Call to undefined method Content::editedby() in mypath\wwwroot\lib\classes\class.usertagoperations.inc.php(158) : eval()'d code on line 14
Checking the specified file, it contains only a comment on line 14, so I'm not sure where to look next.

I have no problems editing info in any module, or templates, stylesheets, etc.  Only pages.

The frontend appears correctly with no apparent errors, but I am not able to make any edits to pages.  Pressing Submit causes the error above, and pressing Apply does nothing.  Pressing Cancel correctly redirects me back to the main list of pages.

The update from 1.6.6 to 1.6.7 appeared to go ok.  I didn't notice this issue until after I had updated a number of modules as well, so I unfortunately can't say whether the issue was present immediately after the 1.6.7 upgrade, or if it started after a certain mod was updated.  However, the issue occurs even on pages that are not calling any modules.

I reuploaded the 1.6.7 diff files, just in case something got corrupted somehow.  No change in behavior.

Would appreciate any help ASAP.  Thanks!!


System Info:

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

Cms Version: 1.6.7

Installed Modules:

   * CMSMailer: 1.73.14
   * FileManager: 1.0.2
   * MenuManager: 1.6.2
   * News: 2.10.4
   * nuSOAP: 1.0.1
   * Printing: 1.0.4
   * Search: 1.6.1
   * TinyMCE: 2.6.3
   * FormBuilder: 0.6.1
   * FormBuilder: 0.6.1
   * SendEmail: 1.0.0
   * FrontEndUsers: 1.7.1
   * CustomContent: 1.5.3
   * CGExtensions: 1.17.8
   * CGFeedMaker: 1.0.9
   * CGGoogleMaps: 1.4.1
   * CGSimpleSmarty: 1.4.3
   * Statistics: 0.9.9
   * CGUserDirectory: 1.1.5
   * dboptimizer: 1.11
   * CGCalendar: 1.3
   * Uploads: 1.10.4
   * MinistryDirectory: 1.5.2 (adapted version of CompanyDirectory)
   * TemplateExternalizer: 1.2
   * Archiver: 0.2.3
   * Jobs: 1.0
   * ModuleManager: 1.3.2
   * CGFeedback: 1.0.4
   * CodeMirror: 0.1.5
   * LightBox: 1.0.1
   * IE6Warning: 1.01
   * Gallery: 1.2.1
   * PodcastManager: 0.6.2
   * SelfRegistration: 1.2.6
   * CompanyDirectory: 1.5.2


Config Information:

   * php_memory_limit:
   * process_whole_template: false
   * max_upload_size: 100000000
   * default_upload_permission: 664
   * assume_mod_rewrite: false
   * page_extension:
   * internal_pretty_urls: false
   * use_hierarchy: true


Php Information:

   * phpversion: 5.2.9-1
   * md5_function: On (True)
   * gd_version: 2
   * tempnam_function: On (True)
   * magic_quotes_runtime: Off (False)
   * memory_limit: 128M
   * max_execution_time: 600
   * safe_mode: Off (False)
   * session_save_path: D:\PHP\temp\PHP5\sessiondata (0777)
   * session_use_cookies: On (True)


Server Information:

   * Server Api: isapi
   * Server Db Type: MySQL (mysql)
   * Server Db Version: 5.1.30


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

Re: Fatal error when editing any page

Posted: Mon Mar 08, 2010 3:14 am
by replytomk3
Quickest way to find out is to either
a) start uninstalling modules that you installed
or
b) install in a subfolder, connect to the same backed up database (watch out step 5), and see if you get the same error.

Re: Fatal error when editing any page

Posted: Mon Mar 08, 2010 4:01 am
by jmcgin51
yes, but I'm hoping someone can explain what type of problem causes this error.  I searched the forum for "Call to undefined method Content::editedby()", and found nothing.

Re: Fatal error when editing any page

Posted: Mon Mar 08, 2010 4:14 am
by replytomk3
The exact error message might be impossible to troubleshoot. Search for parts like

Call to undefined method Content

and

lib\classes\class.usertagoperations.inc.php

but there are too many things that can cause this. 99% error upload, modules installed, or hack.

Re: Fatal error when editing any page

Posted: Mon Mar 08, 2010 4:17 am
by jmcgin51
Got it.

I was using this user-defined tag, http://wiki.cmsmadesimple.org/index.php ... age_Change, to send an email to an administrator whenever a page is modified.  For some reason, it wasn't populating the editor correctly, so I had made a change to the UDT to try to fix it.  When I undid my "fix", everything is working again.  (Well, the UDT still isn't grabbing the editor name, but I can live with that for now.)  At least I can edit pages.