Invalid argument supplied for foreach

WPPizza – A Restaurant Plugin for WordPress Support General Support Invalid argument supplied for foreach

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #30356
    Lord Corwin
    Participant

      So I just installed the newest version on a multisite and network activated it, it’s tossing up these errors on each sites dashboard. Once I hit refresh and it takes me to the dashboard and seems to be fine. Havent seen any issues other than the warnings once I get back to the dashboard, the demo data is in there and I can add new items etc so it seems to be working. Just thought you should know. Thanks.

      Warning: Invalid argument supplied for foreach() in /home/templatespolk/public_html/wp-content/plugins/wppizza/classes/class.wppizza.order.php on line 1487

      Warning: mktime() expects parameter 1 to be long, string given in /home/templatespolk/public_html/wp-content/plugins/wppizza/includes/global.formatting.functions.inc.php on line 311

      Warning: mktime() expects parameter 1 to be long, string given in /home/templatespolk/public_html/wp-content/plugins/wppizza/includes/global.formatting.functions.inc.php on line 312

      Warning: mktime() expects parameter 1 to be long, string given in /home/templatespolk/public_html/wp-content/plugins/wppizza/includes/global.formatting.functions.inc.php on line 311

      Warning: mktime() expects parameter 1 to be long, string given in /home/templatespolk/public_html/wp-content/plugins/wppizza/includes/global.formatting.functions.inc.php on line 312

      Warning: Cannot use a scalar value as an array in /home/templatespolk/public_html/wp-content/plugins/wppizza/classes/class.wppizza.helpers.php on line 128

      Warning: Cannot use a scalar value as an array in /home/templatespolk/public_html/wp-content/plugins/wppizza/classes/class.wppizza.helpers.php on line 130

      Warning: Invalid argument supplied for foreach() in /home/templatespolk/public_html/wp-content/plugins/wppizza/classes/class.wppizza.helpers.php on line 134
      A term with the name provided already exists with this parent.A term with the name provided already exists with this parent.A term with the name provided already exists with this parent.
      Warning: Cannot modify header information – headers already sent by (output started at /home/templatespolk/public_html/wp-content/plugins/wppizza/classes/class.wppizza.order.php:1487) in /home/templatespolk/public_html/wp-includes/pluggable.php on line 1210

      #30360
      Olly
      Admin & Mod

        what version of php please

        #30361
        Olly
        Admin & Mod

          i’d also suggest you do not output errors/warnings/notices but log them instead
          http://docs.wp-pizza.com/troubleshooting/
          just generally speaking.

          of course i will see what i can do about those warning but most of these seem to be related to a particular version of php perhaps – hence the question

          #30380
          Lord Corwin
          Participant

            it’s 5.6

            #30382
            Olly
            Admin & Mod

              ok, thanks

            Viewing 5 posts - 1 through 5 (of 5 total)
            • The topic ‘Invalid argument supplied for foreach’ is closed to new replies.