Jump to content
thirty bees forum

pessoal2004

Members
  • Posts

    44
  • Joined

  • Last visited

Posts posted by pessoal2004

  1. Hi,

     

    I update the TB 1.4 from PHP 7.4 to PHP 8.1

     

    Now I have the error: 

    Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

    in file modules/themeconfigurator/themeconfigurator.php at line 894

     

    890:                    'info' => [
    891:                    'module'    => $this->name,
    892:                    'name'      => $this->displayName,
    893:                    'version'   => $this->version,
    894:                    'context'   => (Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE') == 0) ? 1 : ($this->context->shop->getTotalShops() != 1) ? $this->context->shop->getContext() : 1,

     

    Note: I don’t have multishop.

     

    This is a TB bug with PHP 8.1 or I missed some step on the update?

     

    Cheers

  2. Hi,

    I update the TB 1.4 from PHP 7.4 to 8.1

    Now I have the error:

    “Array and string offset access syntax with curly braces is no longer supported”

    in file /var/www/html/override/classes/Link.php at line 115

     

    110:           $url = $row['url'];

    111:           if ($this->debug)

    112:                   print "url=$url<br />\n";

    113:           $id_product = $row['id_product'];

    114:           $useCopy = $row['int_primary'];

    115:           if (empty($url) || $url{0} == ' ')

    116:                   return false;

     

    This is a TB bug with PHP 8.1 or I missed some step on the update?

    Cheers

  3. Hi,

    I found the solution.

     

    On Customers / Customer Service I found the error "imap is not installed on this server".

    image.png.a8086dd068f36485983476dbdb74373f.png

     

    To solve that I installed php-imap:

    sudo yum install php-imap

    sudo systemctl stop httpd

    sudo systemctl start httpd

     

    Then I found another error “[CLOSED] IMAP connection broken (server response)”

    image.png.fdc0be25f0f7b1eee74226b5474e6013.png

     

    To solve that on “CUSTOMER SERVICE OPTIONS” / “IMAP options (/ssl): YES”

    image.png.9871c6fd7557821d291723772ff60130.png

    And now the IMAP is working.

    image.png.d1e9587d6ad58529445802706e4f26c4.png

    image.png.18f226455778062ed112c6bed1e8b784.png

     

     

     

  4. Hi,

     Customer service replays - STMP

     We have the email configuration on TB Backoffice with STMP with our personal Zimbra Collaboration email server.

     

    1 - A customer by the contact form can send a request.

     2- That request arrives at the Zimbra Collaboration email and also on TB Backoffice customer service.

     3- On TB Backoffice service we can replay to the customer email, and also arrive on Zimbra Collaboration email.

     4- But, if the customer replays again, that email only arrives on the Zimbra Collaboration email but doesn’t arrive at TB Backoffice customer service.

     

    This is a TB configuration, or I’m missing something?

    Thanks in advance

  5. On 11/22/2021 at 2:13 PM, lesley said:

    Its always going to be slow and you are going to always get latency doing what you are wanting to do. But the easiest way to do it, would be to bind mariadb to port 443 on the database server, block all ips from accessing port 443 except your main machine. But like I said, it will be slow because oft the ssl negotiation. 

    "it will be slow because oft the ssl negotiation" Unfortly it's true, and we can't find a way around this.

  6. Thank you very much for your answers.

    We don't want private networks like the digital ocean or similar, because we want to put our data on separate data centers.

    We already tried Stunnel.
    On Stunnel we only need to give the TB the  IP 127.0.0.1:3306,  and make all configurations (IP, port and SSL) on Stunnel,  it works but is too slow.

    Now we are looking for a better solution.

    We also made an SSL tunnel between server #1 and server #2 with  MariaDB_client

    Server #1 with:
    -Httpd
    -MariaDB_client:3306 with SSL

    Server #2 with:
    -MariaDB_server:3306 with SSL

    Right now, the TB  on server #1, goes directly to MariaDB_Server on server #2.

    And mannualy we can go from MariaDB_client on server #1 to MariaDB_server on server #2 ussing the following command: 

    mysql -u tb -h XXX.XXX.XXX.XXX --port=3306 -p databasetest

    The goal is telling to TB to go to MariaDB_client on server #1 and then to go to MariaDB_server on server #2.

    Our question is, how to tell TB to use the MariaDB_client?

    Any help will be appreciated. 
     

  7. Thank you very much for your answer.

    You are right, "Or maybe some server redirection.... who knows. ".

    I'm putting the apache on a Rocky server and the MariaDB on another Rocky server and between them, I put the stunnel with openssl.

    On TB_1.0.5 everything is fine.

    But on TB_1.3.0, TB_1.2.0 and TB_1.1.0 I can't install the TB.

    I can go around this installing the TB on a single server with httpd and mariadb and then pass the TB to these 2 separate servers.

    I have 2 questions:

    1- Why the stunnel work on TB_1.0.5 and don't work on the recent versions? What changed on TB?

    2- I can have problems in the TB_1.3.0 if I use the stunnel?

    My goal is to have 2 separate servers, one for httpd and another for Mariadb.

    Cheers

    image.png

×
×
  • Create New...