Removing a field by error

2 months 3 weeks ago - 2 months 3 weeks ago #74422 by Exphirian
Hello there. 
I've removed the presentation field by error and now when I try to create a new item or edit an existing one, I get a fatal error. 
I copy it to you, can someone help me because I don't find it alone ;) 

Fatal error: Call to a member function get() on null in /administrator/components/com_flexicontent/views/item/tmpl/default.php on line 713

And here's the PHP code who contains the line 713
<?php
$field = $this->fields['text'];
if ($field) {
$field_description = $field->description ? $field->description :
JText::_($this->form->getField('text')->description);
$_desc = flexicontent_html::getToolTip(null, $field_description, 0, 1);
} else {
$_desc = '';
}
if (
!$field->parameters->get('backend_hidden')  && //Line 713
!in_array($field->formhidden, array(2,3))   &&    // check to SKIP (hide) field via field DB table property 'form_hidden'
!$this->tparams->get('hide_'.$field->field_type)  // check to SKIP (hide) field via field parameter 'hidden_<fieldtype>'
) :
?>
Could someone give me some advice? 

Have all a good day. 
Cordialy. 
Eric Orlandini - Exphi-Com. 

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago #74423 by ggppdk
Replied by ggppdk on topic Removing a field by error
Hello

do you mean the "presentation" template of Flexicontent ?

Just go to Joomla installer and re-upload the Flexicontent package
e.g. in this case package with v3.2.1.14

(do not 'uninstall', because if uninstall , all data will be deleted)


-- FLEXIcontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago #74439 by Exphirian
Replied by Exphirian on topic Removing a field by error
Hello, 

No I mean the presentation field. 
I tried to re install Flexicontent but I have the same error. 
Any other idea? 

Have a good day
Cordialy. 
Eric Orlandini - Exphi-Com. 

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago #74440 by ggppdk
Replied by ggppdk on topic Removing a field by error
Hello

I am not sure what you mean,

do you mean that you had a field e.g. of field type 'text' or of field type 'select' ,
that you deleted in the fields manager and then you are getting this error ?

i mean there is no field-type called 'Presentation'

if you think that you can post a picture
that shows what was deleted (e.g. from another website)
then please do

Regards


-- FLEXIcontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago #74441 by Exphirian
Replied by Exphirian on topic Removing a field by error
Hello,

oh sorry it’s maybe the name of the field in french.
yeah it was a text field that was deleted.
unfortunately I don’t have any other example for a picture.

Cordialy 
Eric Orlandini - Exphi-Com

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago #74443 by ggppdk
Replied by ggppdk on topic Removing a field by error
Hello

ok i understand now
so you deleted an instance a "text" field

- and somewhere it has been chosen to be used,
e.g. it is being referenced in the configuration of another field ...

i will need access to the website see where that deleted field is being referenced ...


-- FLEXIcontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago #74445 by Exphirian
Replied by Exphirian on topic Removing a field by error
Hello, 

Alright for this but can I give you this on an email so the informations won't be public? 

Have a good day.
Cordialy.
Eric Orlandini - Exphi-Com. 

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago #74446 by ggppdk
Replied by ggppdk on topic Removing a field by error
Hello

yes , i should have mentioned it

i meant with a private message of course

you can click on my profile picture
and then click "write private message"


-- FLEXIcontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago #74454 by ggppdk
Replied by ggppdk on topic Removing a field by error
Hello

it should be working now
please test frontend / backend

This is a bug on our new version
- the CORE fields are are supposed to be protected from deletion

so did 2 things
- fix the protection of CORE fields from deletiong
- added code to detect the missing CORE fields and re-add them ...

luckily the data of the 'text' are part of description column , so you have no data loss and no need to restore a backup on the website


-- FLEXIcontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.