WPPizza – A Restaurant Plugin for WordPress › Support › General Support › Add Ingredients Plugin Version 5.3 – Error Message Appears
- AuthorPosts
- 11 October, 2024 at 5:23 pm #68850
Dear Olly,
I wanted to inform you that the WPPizza Add Ingredients Plugin version 5.3 appears to be faulty. After installing the plugin, an error message is displayed.
When clicking on an item associated with ingredients, an “Error” appears, but the content of the error message is empty.
I would appreciate it if you could take a look at this issue and correct it.
Thank you very much and best regards
Umut11 October, 2024 at 5:53 pm #68851When comparing the files, I identified the following differences:
Usage of the render_tags Function:
In the old file, the name value is set using $this->render_tags($v[‘item’]), whereas in the new file, it uses $this->render_tags($v[‘item’]) . $this->render_additives($k, $v).
This change could be causing the error, especially if the function $this->render_additives($k, $v) is not properly defined or the parameters are incorrect.Removal of an Additional Line:
In the new file, a line was removed after asort($availableIngredients);. While this may not directly cause an error, it could affect the behavior.The likely source of the error is the newly added render_additives function. Please verify that this function is correctly defined and implemented. Would you like me to investigate further?
11 October, 2024 at 5:54 pm #68852can you go to the (admin) ingredients tab and simply save your ingredients as they are once ?
if you do that , does your error go away ?11 October, 2024 at 5:56 pm #68853also, have you checked your debug.log ?
is there anything i there ?11 October, 2024 at 6:02 pm #68854forget all of that . the render_additives function got lost in the upload somehow.
I’ll fix that asap.thansk for reporting
11 October, 2024 at 6:27 pm #68863I’ve no idea what happened there.
I’ll fix this in the next couple of hours or so with 5.3.1 update .
In the meantime, you could simply change'name'=>$this->render_tags($v['item']) . $this->render_additives($k, $v),
back to
'name'=>$this->render_tags($v['item']) ,
so it stops throwing those errors (or of course downgrade back to 5.2.2 – whatever is easiest)
Apologies for messing this up
11 October, 2024 at 8:38 pm #68879as of 5.3.1 this should be fixed now, but of course , let me know if you still have issues
- AuthorPosts
- You must be logged in to reply to this topic.