Page 1 of 1

Warning: Field required: ID

Posted: 08 Oct 2018, 20:19
by Jastro
In the Daily Menu - Settings, no matter what I do there I get this error on saving:

Warning
Field required: ID


What does this warning try to tell me and how can I solve it?

Re: Warning: Field required: ID

Posted: 09 Oct 2018, 16:49
by Jan
Hi, hmmm, which version of Phoca Restaurant Menu do you run? In which view you get this error? Can you paste a screenshot?

Jan

Re: Warning: Field required: ID

Posted: 09 Oct 2018, 20:08
by Jastro
Hi again,

I have downloaded the "Phoca Restaurant Menu Lite (Joomla!3)" component: com_phocamenu_lite_v3.1.1.zip
Its installed on a Joomla 3.8.12 site (just upgraded to 3.8.13 but still same result).
I get this error inside the Daily Menu Group when saving inside the Settings option

Image

Beside this everything else seems to work great

Re: Warning: Field required: ID

Posted: 11 Oct 2018, 00:17
by Jan
Hi, mostly such message should come in edit view in case some form is missing ID parameter. But this is a screenshot of list view, there is no form :idea: so if this will happen once, this could be some old message displayed now, but if it is display alway, hard to say from where this error message is comming. :idea:

If you enable debug mode in Joomla! Global Configuration, do you get some more info there?

Jan

Re: Warning: Field required: ID

Posted: 11 Oct 2018, 22:34
by Jastro
Just to clearify, this error you see in the screenshot happens when clicking on Save or Save & Close in the "Daily Menu Settings: [New]" section.
Just after my saving attempt it revert back to the Daily Menu list view where the error message is shown.

Manybe this gives you a clue for what ID parameter is missing here?

Re: Warning: Field required: ID

Posted: 12 Oct 2018, 18:39
by Jan
Hi, thank you very much for the info, confirmed, this will be fixed in next version, for now you can do a quick fix, open:

administrator\components\com_phocamenu\controllers\phocamenuconfig.php
line cca 218, ADD:

Code: Select all

if (!isset($data['id'])) { $data['id'] = 0;}
before:
// Test if the data is valid.

Thank you, Jan

Re: Warning: Field required: ID

Posted: 13 Oct 2018, 23:40
by Jastro
Thank you, this solved the problem.

Re: Warning: Field required: ID

Posted: 15 Oct 2018, 12:22
by Jan
Ok, great to hear it.

Jan

Re: Warning: Field required: ID

Posted: 03 Mar 2019, 23:14
by Jan
Hi, should be OK in version 3.1.2
https://www.phoca.cz/news/1018-phoca-re ... 2-released

Jan