jsuto / piler

Email archiving application
https://www.mailpiler.org/
Other
62 stars 9 forks source link

[BUG] <Blank GUI environment when mencache is enabled> #79

Closed elarrexo closed 3 months ago

elarrexo commented 3 months ago

Describe the bug When I enabel memcache the GUI environment show blank/empty

To Reproduce Steps to reproduce the behavior:

  1. set $config['MEMCACHED_ENABLED'] = 1; on config-site.php
  2. (nginx) - error.log see error "2024/06/24 13:56:29 [error] 3478#3478: *3 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ArgumentCountError: Memcached::add() expects at most 3 arguments, 4 given in /var/piler/www/model/saas/customer.php:122 Stack trace:

    0 /var/piler/www/model/saas/customer.php(122): Memcached->add()

    #1 /var/piler/www/controller/common/menu.php(20): ModelSaasCustomer->get_customer_settings_by_email() #2 /var/piler/www/system/controller.php(47): ControllerCommonMenu->index() #3 /var/piler/www/controller/common/layout.php(18): Controller->render()"

  3. Edith and change /var/piler/www/model/saas/customer.php "$memcache->add($cache_key, array('data' => serialize($data)), 0, MEMCACHED_TTL); -> $memcache->add($cache_key, array('data' => serialize($data)), MEMCACHED_TTL);"

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Piler version:

Build Date: Mon Jun 24 13:41:51 UTC 2024 ldd version: ldd (Ubuntu GLIBC 2.35-0ubuntu3.8) 2.35 gcc version: gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04) OS: Linux piler.filtanet.tech 5.15.0-112-generic #122-Ubuntu SMP Thu May 23 07:48:21 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux Configure command: ./configure --localstatedir=/var --with-database=mariadb --enable-memcached MySQL client library version: 3.3.10 Extractors: /usr/bin/pdftotext /usr/bin/catdoc /usr/bin/catppt /usr/bin/xls2csv /usr/local/bin/ppthtml /usr/bin/unrtf /usr/bin/tnef libzip

Notes Does changing this setting affect the functionality of piler?

jsuto commented 3 months ago

Install the latest master (soon to be 1.4.6), it fixes this problem.