Add Ingredients Plugin Version 5.3 – Error Message Appears

WPPizza – A Restaurant Plugin for WordPress Support General Support Add Ingredients Plugin Version 5.3 – Error Message Appears

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #68850
    Umut
    Participant

      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
      Umut

      #68851
      Umut
      Participant

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

        #68852
        Olly
        Admin & Mod

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

          #68853
          Olly
          Admin & Mod

            also, have you checked your debug.log ?
            is there anything i there ?

            #68854
            Olly
            Admin & Mod

              forget all of that . the render_additives function got lost in the upload somehow.
              I’ll fix that asap.

              thansk for reporting

              #68863
              Olly
              Admin & Mod

                I’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

                #68879
                Olly
                Admin & Mod

                  as of 5.3.1 this should be fixed now, but of course , let me know if you still have issues

                Viewing 7 posts - 1 through 7 (of 7 total)
                • You must be logged in to reply to this topic.