Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When trying to create a variant in foodmenu's the below error occurs, as a consequence no prices can be attached:
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /restaurant7/system/ajax
StatusText: OK
ResponseText:
Fatal error: Call to undefined function node_form_submit() in /home/deboezer/public_html/restaurant7/profiles/restaurant/modules/contrib/save_draft/save_draft.module on line 90
Comments
Comment #2
shadcn CreditAttribution: shadcn at Chapter Three commentedMoving this to the main issue queue.
Comment #3
shadcn CreditAttribution: shadcn at Chapter Three commentedConfirmed. I can reproduce the error. Working on a fix.
Comment #4
shadcn CreditAttribution: shadcn at Chapter Three commentedFound a fix. @eljay can you please test if the fix below works?
1. Edit /profile/restaurant/modules/restaurant/restaurant_menu.module.
2. Find the restaurant_menu_form_menu_node_form_alter function.
3. Add the following lines to the top of the function.
Your function should look like this:
4. Reload the menu form and try adding a variant.
Comment #5
eljay CreditAttribution: eljay as a volunteer commented@arshadcn,
I confirm that the fix works
thanks
Comment #6
shadcn CreditAttribution: shadcn at Chapter Three commentedOk I'll commit and push. Thanks.
Comment #8
shadcn CreditAttribution: shadcn at Chapter Three commentedComment #10
shadcn CreditAttribution: shadcn at Chapter Three commented