Edit Bar Not Viewable After Making the Upgrade to 5.4.2
Permalinkif (isset($cp)) {
if ($cp->canWrite() || $cp->canAddSubContent() || $cp->canAdminPage() || $cp->canApproveCollection()) { ?>
Fatal error: Call to undefined method AttributeTypeView::field() in /home/sites/[sitename]/public_html/updates/concrete5.4.2/concrete/models/attribute/types/select/form.php on line 113
So many problems with the much anticipated new release of C5.
There are a few similar problems, but not one common fault, at least not from what the forums are saying.
But on the plus side, In the past there were only three things that happened to me that Concrete didn't like.
My server, my style sheets and my Javascript.
My server played up when it moved to a new location or cPanel got upgraded, server support sorted it out.
My style sheets were not always prepared properly so things went weird.
I applied a bit of fancy javascript and all things went completely haywire.
My errors have caused the 'Edit bar' to disappear, the page layout to rearrange itself and the dashboard to hang on me.
My javascript also gave me some sort of weird error message I've never seen before, so I quickly backtracked.
For my part I changed my javascript slightly and coded my style sheet accordingly, problems solved.
So perhaps when using things concerning fancy CSS and javascript you might want to test and compromise a bit.
So possibly we need to check or someone does, the conflicts between the way we did things with C5 and the way we should now!
The only thing I can't do is use the Add Functionality section!
Update - Andrew has just fixed it for me.
concrete/models/attribute/types/select/form.php
newRow.innerHTML='<input name="<?php echo $this->field('atSelectNewOption')?>[]" type="hidden" value="'+value+'" />';
Since the error says:
Call to undefined method AttributeTypeView::field()
I'm trying to fix this but it's taking some time to understand the context.
Can we get some help from Concrete5 team?
I have created a bug report for this, please can you all confirm it?
http://www.concrete5.org/developers/bugs/5-4-2/edit-bar-not-viewabl...
Thanks, Steve
Wanted to add this. Admin page will pop up and I enter password and username, but it takes me back to my site without it being in edit mode. I checked all my pages at the bottome and it doesn't show me logged in.