• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

HAProxy php errors 2.4.5

Scheduled Pinned Locked Moved Cache/Proxy
6 Posts 3 Posters 795 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H
    hexine
    last edited by Oct 8, 2018, 2:31 PM

    Hey, I get this in the "Fronted" tab of HAProxy

         Warning: Illegal string offset 'ipport' in /usr/local/www/haproxy/haproxy_listeners.php on line 262 Warning: Illegal string offset 'type' in /usr/local/www/haproxy/haproxy_listeners.php on line 263 Warning: Cannot assign an empty string to a string offset in /usr/local/www/haproxy/haproxy_listeners.php on line 263     
    

    https://i.imgur.com/4zOyngw.png

    I tested with both the normal package and the devel one and I get the same issue.

    Anything I can do to make it work on 2.4.5?

    P 1 Reply Last reply Oct 8, 2018, 2:53 PM Reply Quote 0
    • P
      PiBa @hexine
      last edited by Oct 8, 2018, 2:53 PM

      @hexine
      Me wonders, how did you end up in that state.? Did you only install haproxy on a clean pfSense installation? Or was it an upgrade from a previous configuration? Did you add a new frontend and if so in what order?

      Both haproxy packages are (nearly) identical at the moment.. I havn't seen that error myself though recently. As these string offset issues (most?) of them were fixed for 2.4.4 as it already checks more strictly than before..

      1 Reply Last reply Reply Quote 0
      • H
        hexine
        last edited by Oct 8, 2018, 3:14 PM

        @piba
        It's" an upgrade from a previous configuration" and obviously this badly "patched-up" (not the one responsible for it..) installation is the issue but I can't really afford to make a clean install since this router is in a remote location.

        If someone has any pointers that would help me fix the PHP installation or whatever is causing the issue, I would be very grateful.

        P 1 Reply Last reply Oct 8, 2018, 4:32 PM Reply Quote 0
        • G
          Grimson Banned
          last edited by Oct 8, 2018, 3:22 PM

          https://www.netgate.com/docs/pfsense/install/upgrade-troubleshooting.html#forced-pkg-reinstall but be prepared for a bit of traveling.

          1 Reply Last reply Reply Quote 0
          • P
            PiBa @hexine
            last edited by PiBa Oct 8, 2018, 4:46 PM Oct 8, 2018, 4:32 PM

            @hexine
            The issue is likely caused by a somewhat messed up configuration somewhere. Do you have a configuration backup from before the upgrade when haproxy was still working? I wonder what the <haproxy> part of that configuration looks like..
            As currently it looks like the frontend with name A and description A and without address is kinda 'broken', you could perhaps delete it and configured it fresh.?

            p.s. i can make the PHP 'not' throw an error on it with a few minor changes, but still it wouldn't 'properly' work..

            diff --git a/net/pfSense-pkg-haproxy-devel/files/usr/local/www/haproxy/haproxy_listeners.php b/net/pfSense-pkg-haproxy-devel/files/usr/local/www/haproxy/haproxy_listeners.php
            index 859ba65697cb..275b318ce75d 100644
            --- a/net/pfSense-pkg-haproxy-devel/files/usr/local/www/haproxy/haproxy_listeners.php
            +++ b/net/pfSense-pkg-haproxy-devel/files/usr/local/www/haproxy/haproxy_listeners.php
            @@ -256,6 +256,7 @@ function js_callback(req) {
             
             	$a_frontend_grouped = array();
             	foreach($a_frontend as &$frontend2) {
            +		getarraybyref($frontend2);
             		$mainfrontend = get_primaryfrontend($frontend2);
             		$mainname = $mainfrontend['name'];
             		$ipport = get_frontend_ipport($frontend2, true);
            
            1 Reply Last reply Reply Quote 1
            • H
              hexine
              last edited by Oct 10, 2018, 8:39 AM

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              6 out of 6
              • First post
                6/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received