Fatal Error on Edit Mode Click
PermalinkHowever, when I click "Edit" on any page the dashboard disappears, the main content disappears (except the header), and I see the following fatal error on the index.php:
<div id="container"> <div id="content"> <div id="a1100" cID="173" handle="Main" class="ccm-<br /> <b>Fatal error</b>: Call to undefined method Area::isGlobalArea() in <b>public_html/updates/concrete5.5.2.1/concrete/elements/block_area_header.php</b> on line <b>11</b><br />
I went to line 11 of that block_area_header file and compared it to a fresh copy of concrete5.5.2.1. The line 11 on both is the same and there were no major changes:
Next, I looked into the default.php to see this line of code when it's not live and this is what it shows:
<div id="container"> <div id="content"> <?php $a = new Area('Main'); $a->display($c); ?> </div>
Not sure how else to narrow down the problem..
Please help.
Thanks,
Keith

<div id="container"> <div id="content"> <!--<div id="a1100" cID="173" handle="Main" class="ccm-<br /> <b>Fatal error</b>: Call to undefined method Area::isGlobalArea() in <b>/public_html/updates/concrete5.5.2.1/concrete/elements/block_area_header.php</b> on line <b>11</b><br />
Am I missing something?
If you pasted the entire code block into line 11, I would have expected the error to be shown on line 12?
Even with this, the error on line 11 came up again..
does the problem persist?
Did you recently upgrade to 5.5.2.1 and if so did you use the auto update facility or did you update manually?
Yes, I upgraded from 5.4.2.2 using the update feature in c5's dashboard.
Now because of this editing problem where the dashboard disappears, I need to manually downgrade to 5.4.2.2 to edit pages.
Now, I'm trying to narrow down the causes of this issue...
download the latest package from this website (currently 5.5.2.1),
unzip the package and ftp it into the root/updates/ folder,
then run this file from your browser,
http://www.yoursite.com/index.php/tools/required/upgrade?force=1...
make sure you backup your database before updating just in case..
Same error on line 11.
I'm thinking it's a theme problem at this point, but the only thing in the theme that's in that place of the error is:
<div id="container"> <div id="content"> <?php $a = new Area('Main'); $a->display($c); ?> </div>
I built this website on the 5.4 core.
So what I found was that Fatal Error was caused because of a Global Area. The theme innovation does not have Global Areas (the 5.4 version) therefore in order to get the theme to work hand-in-hand with the new 5.5 core. I did the following:
1) Download the 5.4.2.2 package
2) rename original 5.5 concrete/elements "block_area_header", "block_area_footer", and "block_controls" so i keep the original copy
3) upload the 5.4.2.2 versions of "block_area_header", "block_area_footer", and "block_controls"
Of course, any new updates to c5, I'd have to keep doing this but in the meantime, I can now edit pages on the c5 5.5 core.
:)
weyboat, I really appreciate the help nonetheless!
Thanks,
Keith
After many changes and alterations I found that the actual problem was a legacy file left by an old version of Concrete5 in the models directory named area.php
Once deleted all was fine.