Warning: Field required: ID

Phoca Restaurant Menu - restaurant menu manager
Jastro
Phoca Member
Phoca Member
Posts: 13
Joined: 28 Feb 2010, 00:45

Warning: Field required: ID

Post 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?

Tags:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47794
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Warning: Field required: ID

Post 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
If you find Phoca extensions useful, please support the project
Jastro
Phoca Member
Phoca Member
Posts: 13
Joined: 28 Feb 2010, 00:45

Re: Warning: Field required: ID

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47794
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Warning: Field required: ID

Post 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
If you find Phoca extensions useful, please support the project
Jastro
Phoca Member
Phoca Member
Posts: 13
Joined: 28 Feb 2010, 00:45

Re: Warning: Field required: ID

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47794
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Warning: Field required: ID

Post 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
If you find Phoca extensions useful, please support the project
Jastro
Phoca Member
Phoca Member
Posts: 13
Joined: 28 Feb 2010, 00:45

Re: Warning: Field required: ID

Post by Jastro »

Thank you, this solved the problem.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47794
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Warning: Field required: ID

Post by Jan »

Ok, great to hear it.

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47794
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Warning: Field required: ID

Post by Jan »

Hi, should be OK in version 3.1.2
https://www.phoca.cz/news/1018-phoca-re ... 2-released

Jan
If you find Phoca extensions useful, please support the project
Post Reply