Unable to publish items I got used a submission form

More
10 years 8 months ago #49743 by nadav
A user published text using a submission form I've set at edoula.me/index.php/my-pregnancy ... r-story-en .

When I go to the back end and try to publish it, I get the following error message:

Error while validating data: exception 'RuntimeException' with message 'Field required: Primary category' in /home/edoula/public_html/libraries/joomla/form/form.php:1958 Stack trace: #0 /home/edoula/public_html/libraries/joomla/form/form.php(1200): JForm->validateField(Object(SimpleXMLElement), '', NULL, Object(Joomla\Registry\Registry)) #1 /home/edoula/public_html/libraries/legacy/model/form.php(302): JForm->validate(Array, NULL) #2 /home/edoula/public_html/administrator/components/com_flexicontent/controllers/items.php(173): JModelForm->validate(Object(JForm), Array) #3 /home/edoula/public_html/libraries/legacy/controller/legacy.php(730): FlexicontentControllerItems->save() #4 /home/edoula/public_html/administrator/components/com_flexicontent/admin.flexicontent.php(222): JControllerLegacy->execute('apply') #5 /home/edoula/public_html/administrator/components/com_flexicontent/flexicontent.php(22): require_once('/home/edoula/pu...') #6 /home/edoula/public_html/libraries/cms/component/helper.php(352): require_once('/home/edoula/pu...') #7 /home/edoula/public_html/libraries/cms/component/helper.php(332): JComponentHelper::executeComponent('/home/edoula/pu...') #8 /home/edoula/public_html/libraries/cms/application/administrator.php(98): JComponentHelper::renderComponent('com_flexiconten...') #9 /home/edoula/public_html/libraries/cms/application/administrator.php(152): JApplicationAdministrator->dispatch() #10 /home/edoula/public_html/libraries/cms/application/cms.php(251): JApplicationAdministrator->doExecute() #11 /home/edoula/public_html/administrator/index.php(42): JApplicationCms->execute() #12 {main}Please click here to return previous page

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

More
10 years 8 months ago #49744 by micker
joomla and flexicontent version ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
10 years 8 months ago #49747 by nadav
Joomla 3.3.4
Flexicontent 2.2.0 r1967

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

More
10 years 8 months ago #49748 by micker
at first update to r1974
clean all cache and retest
regards

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
10 years 8 months ago #49749 by ggppdk
Hello

the form was submitted without category selected,

e.g. due to some JS error in the page, you were not stopped from submitting the form

the expected behaviour is that user is redirected back to the form with a message that he did not select category


Is this the case : ?

e.g. due to some JS error in the page, you were not stopped from submitting the form

Category was not selected, right ?




-- We need to fix this so that it redirects back to the form when category was not selected (for some reason the form validation did not stop user from submitting the form, e.g. JS error due to 3rd party JS code)


-- 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...

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

More
10 years 8 months ago #49750 by nadav
I updated to the latest version.
Category is selected since I only allowed on category for that form. I don't get any error when submitting the form. Just a message that I can't make any more changes to the form.

This is the error I got on the back end (I think it's the same):

Error while validating data: exception 'RuntimeException' with message 'Field required: Primary category' in /home/edoula/public_html/libraries/joomla/form/form.php:1958 Stack trace: #0 /home/edoula/public_html/libraries/joomla/form/form.php(1200): JForm->validateField(Object(SimpleXMLElement), '', NULL, Object(Joomla\Registry\Registry)) #1 /home/edoula/public_html/libraries/legacy/model/form.php(302): JForm->validate(Array, NULL) #2 /home/edoula/public_html/administrator/components/com_flexicontent/controllers/items.php(173): JModelForm->validate(Object(JForm), Array) #3 /home/edoula/public_html/libraries/legacy/controller/legacy.php(730): FlexicontentControllerItems->save() #4 /home/edoula/public_html/administrator/components/com_flexicontent/admin.flexicontent.php(222): JControllerLegacy->execute('apply') #5 /home/edoula/public_html/administrator/components/com_flexicontent/flexicontent.php(22): require_once('/home/edoula/pu...') #6 /home/edoula/public_html/libraries/cms/component/helper.php(352): require_once('/home/edoula/pu...') #7 /home/edoula/public_html/libraries/cms/component/helper.php(332): JComponentHelper::executeComponent('/home/edoula/pu...') #8 /home/edoula/public_html/libraries/cms/application/administrator.php(98): JComponentHelper::renderComponent('com_flexiconten...') #9 /home/edoula/public_html/libraries/cms/application/administrator.php(152): JApplicationAdministrator->dispatch() #10 /home/edoula/public_html/libraries/cms/application/cms.php(251): JApplicationAdministrator->doExecute() #11 /home/edoula/public_html/administrator/index.php(42): JApplicationCms->execute() #12 {main}Please click here to return previous page

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.346 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save