PHP Error

My Nginx error log is showing the following error:

PHP Notice:  Array to string conversion in UNA/template/scripts/BxBaseFormView.php on line 1552PHP

  • 489
  • More
Replies (8)
    • Hello Scholar !

      May you please specify what fields have been added / changed in your site recently? Via what way did you complete these procedures?

      • LeonidS I added profile search form on the Homepage using Developer module. I went to profile search block, made it copyable, then added it to the Homepage and that triggered the error.

        • I've got this error too:  In fact I came to post about it.
          PHP Notice: Array to string conversion in /home/foouser/foosite/public/inc/classes/BxDolTemplate.php on line 2361
          PHP Notice: Array to string conversion in /home/foouser/foosite/public/inc/classes/BxDolTemplate.php on line 2361
          but I am not running nginx, this error occurs on Apache as well.

          • May you provide your UNA studio and Control Panel accesses to me via Messenger? But note that all changes from Developer app are made on your own fear and risk :-)

            • LeonidS, my website is not in production yet. I'm also self-hosting on Google Compute Instance running on Debian 10, and Nginix server. Nginix error log file show the following:
              [error] 7509#7509: *3762 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: i in /var/www/html/main/template/scripts/BxBaseSearchExtended.php on line 189

              PHP message: PHP Notice:  Array to string conversion in /var/www/html/main/template/scripts/BxBaseFormView.php on line 1552
              ---Note: my root folder is /var/www/html   and I'm installing UNA in the subdirectory /main/

              • The first error looks like something goes wrong with this procedure:

                list($sPageLink, $aPageParams) = bx_get_base_url_inline();

                I may suggest that your have not so standard REQUEST_URI argument in $_SERVER array.

                About second trouble is hard to suggest without tracking.

                • LeonidS how can I correct this "I may suggest that your have not so standard REQUEST_URI argument in $_SERVER array". And for the second problem, how to troubleshoot it? what do you need to track the error? I've already examined Nginx error logs. Where else should I look at?

                  • First of all, you need to print this variable $_SERVER['REQUEST_URI']

                    Login or Join to comment.