Warning: Field required: ID

Jastro
Phoca Member
Phoca Member
Posts: 13
Joined: 28 Feb 2010, 00:45

Warning: Field required: ID

Post by Jastro » 08 Oct 2018, 20:19

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: 40439
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Warning: Field required: ID

Post by Jan » 09 Oct 2018, 16:49

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 » 09 Oct 2018, 20:08

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: 40439
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Warning: Field required: ID

Post by Jan » 11 Oct 2018, 00:17

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 » 11 Oct 2018, 22:34

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: 40439
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Warning: Field required: ID

Post by Jan » 12 Oct 2018, 18:39

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 » 13 Oct 2018, 23:40

Thank you, this solved the problem.

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

Re: Warning: Field required: ID

Post by Jan » 15 Oct 2018, 12:22

Ok, great to hear it.

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

Post Reply