[solved] Can't edit pages after upgrade process

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
rnurminen
New Member
New Member
Posts: 4
Joined: Fri Sep 12, 2014 2:29 pm

[solved] Can't edit pages after upgrade process

Post by rnurminen »

Hi there,

I just did the following upgrade procedure:

1.9.4.3 -> 1.10.3

and then

1.10.3 -> 1.11.11

everything went well, except when I try to edit pages from the admin interface, the top of the page loads (with cmsms logo and admin interface menus) but then stops to:

Fatal error: Call to a member function getContent() on null in /var/www/fs1/5/originat/www.originator.fi/lib/classes/class.use ... c.php(265) : eval()'d code on line 10

EDIT: also trying to add a new page produces the same error.

any help appreciated :)

- Rick

P.S. here is my system info from CMSMS:

Code: Select all

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

Cms Version: [b]1.11.11[/b]

Installed Modules:

CMSMailer: [b]5.2.2[/b]
FileManager: [b]1.4.5[/b]
MenuManager: [b]1.8.6[/b]
ModuleManager: [b]1.5.8[/b]
News: [b]2.14.4[/b]
Printing: [b]1.1.2[/b]
Search: [b]1.7.11[/b]
ThemeManager: [b]1.1.8[/b]
TinyMCE: [b]2.9.12[/b]
RSS2HTML: [b]1.2.5.2[/b]
CMSPrinting: [b]1.0.5[/b]

Config Information:

php_memory_limit: 
process_whole_template: 
max_upload_size: [b]20000000[/b]
url_rewriting: [b]mod_rewrite[/b]
page_extension: 
query_var: [b]page[/b]
image_manipulation_prog: [b]GD[/b]
auto_alias_content: [b]true[/b]
locale: 
default_encoding: [b]utf-8[/b]
admin_encoding: [b]utf-8[/b]
set_names: [b]true[/b]

Php Information:

phpversion: [b]5.6.0[/b]
md5_function: [b]Päällä[/b] (Tosi)
gd_version: [b]2[/b]
tempnam_function: [b]Päällä[/b] (Tosi)
magic_quotes_runtime: [b]Pois päältä[/b] (Epätosi)
E_STRICT: [b]2048[/b]
E_DEPRECATED: [b]8192[/b]
memory_limit: [b]256M[/b]
max_execution_time: [b]60[/b]
output_buffering: [b]Päällä[/b]
safe_mode: [b]Pois päältä[/b] (Epätosi)
file_uploads: [b]Päällä[/b] (Tosi)
post_max_size: [b]21M[/b]
upload_max_filesize: [b]20M[/b]
session_save_path: [b]/var/www/fs3/etc/sessions[/b] (0773)
session_use_cookies: [b]Päällä[/b] (Tosi)
xml_function: [b]Päällä[/b] (Tosi)
xmlreader_class: [b]Päällä[/b] (Tosi)

Server Information:

Server Api: [b]cgi-fcgi[/b]
Server Db Type: [b]MySQL (mysql)[/b]
Server Db Version: [b]5.5.39[/b]
Server Db Grants: [b]Found a "GRANT ALL" statement that appears to be suitable[/b]
Server Time Diff: [b]No filesystem time difference found[/b]

----------------------------------------------
Last edited by rnurminen on Mon Sep 15, 2014 10:08 am, edited 1 time in total.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Can't edit pages after upgrade process

Post by velden »

Your probably using an UDT (User Defined Tag) with code that is invalid in later versions of cmsms.

try to remove/comment the call to the UDT (could be in page template or Global Content Block) and if you found it, post the contents of UDT here.
rnurminen
New Member
New Member
Posts: 4
Joined: Fri Sep 12, 2014 2:29 pm

Re: Can't edit pages after upgrade process

Post by rnurminen »

thank you! it was indeed an old UDT tag in my page template that was causing the problem (code below, this wasn't even used anymore so instead of updating the code I just removed the usage of it)

now I can add new pages, however there seems to be still a problem when I try to EDIT pages; the edit page is completely empty, no input fields, no TinyMCE, no errors (see attached screenshot, the warnings are obviously because I have php error reporting on for now)

I even tried adding a basic default template (when you just click on add page template); again I can add a new page using this template, but the edit page screen looks like the attached screenshot

any ideas where to look for problem?

(code for old/unused UDT tag, I'm sure it would need some updating..)

Code: Select all

global $gCms;
global $smarty;

$manager =& $gCms->GetHierarchyManager();

$result = "";
$thisPage = $gCms->variables['content_id'];
$currentNode = &$manager->sureGetNodeById($thisPage);

$currentContent =& $currentNode->getContent();
$currentAlias = $currentContent->Alias();
$depth = $currentNode->getLevel();
while( isset($currentNode) && $currentNode->getLevel() >= 0 ) {
    $currentContent =& $currentNode->getContent();
    $result = $currentContent->Hierarchy();
    $alias = $currentContent->Alias();
    if ($currentNode->getLevel() == 2) {
       $smarty->assign('third_alias',$alias);
       $smarty->assign('third_hierarchy',$result);
    } else if ($currentNode->getLevel() == 1) {
       $smarty->assign('second_alias',$alias);
       $smarty->assign('second_hierarchy',$result);
    }
    $currentNode =& $currentNode->getParentNode();
}

$smarty->assign('first_hierarchy',$result);
$smarty->assign('first_alias',$alias);
$smarty->assign('depth',$depth);
$smarty->assign('alias',$currentAlias);
Attachments
EDIT PAGE
EDIT PAGE
rnurminen
New Member
New Member
Posts: 4
Joined: Fri Sep 12, 2014 2:29 pm

Re: Can't edit pages after upgrade process

Post by rnurminen »

or is it because of the warnings that the page content doesn't show up? I can see the content of my pages in the source code for the edit page

"cannot modify header information" prevents the TinyMCE and other fields from showing up?
rnurminen
New Member
New Member
Posts: 4
Joined: Fri Sep 12, 2014 2:29 pm

Re: Can't edit pages after upgrade process

Post by rnurminen »

okay got my hosting company to disable error reporting and all is good now!

thank you for the help, problem solved.

- Rick
Locked

Return to “[locked] Installation, Setup and Upgrade”