Jump to content
thirty bees forum

Leaderboard

Popular Content

Showing content with the highest reputation since 10/26/2026 in all areas

  1. Hello, Are you sure that the PHP 8.3 is end of life in one week? That would be scary ! The page «supported-versions» of the PHP website indicate that the critical security support wil continue until 31 Dec 2027 : https://www.php.net/supported-versions.php Furthermore, even if it were December 31, 2027, it would still be possible to safely use PHP 8.3 on web servers running Debian (or its derivatives like Ubuntu) by using the repository https://deb.sury.org/ . The BBC recently interviewed the maintainer of this repository (which provides PHP versions 8.2 through 8.5 that include ports of the official security updates) : https://www.bbc.com/news/articles/cw30ejqljl43o I’m not writing this to suggest that PHP 8.4 compatibility—or better—wouldn’t be useful, but simply to point out that we still have well over a week left. Have a nice evening
    1 point
  2. Hi all, Picking up where I left off in the performance testing thread: the juuri.no demo store that was running thirty bees 1.7.0 on PHP 8.3 on an Orange Pi 5 has now been migrated to PHP 8.6.0 -- the latest PHP stable, released a week ago. The site is running clean (zero deprecations, zero warnings under load), still passing a perfect Lighthouse 100/100/100/100 on desktop, and the full upgrade process plus all patches are documented on GitHub: https://github.com/petter5/orangepi5-config What was needed to get thirty bees 1.7.0 running clean on PHP 8.6 Five small core/module patches (10-30 lines each), plus bumping Smarty and Guzzle to current versions. All patches are backwards compatible to PHP 7.4 -- i.e. safe to apply even if you stay on 8.3. Core (thirtybees/thirtybees) classes/db/Db.php -- PHP 8.5 moved PDO::MYSQL_ATTR_* to the Pdo\Mysql namespace. The old constants trigger a deprecation on every DB connection. Patch uses class_exists('\Pdo\Mysql', false) so PHP 8.3 and older keep working with the old constants. classes/Dispatcher.php -- a $routeId variable could be null when used as an array offset. PHP 8.6 deprecates null array offsets. Fix moves the existing trim($routeId ?? '') line up before the isset check. classes/Customer.php -- same pattern in Customer::getGroupsStatic($idCustomer). Added a one-line $idCustomer = (int) $idCustomer at function entry. Modules thirtybees/blockbestsellers -- three (double) casts replaced with (float). PHP 8.5 deprecated the (double) and (real) syntax. thirtybees/homeslider -- HomeSlide::__construct() had Context $context = null; PHP 8.4 deprecates implicit nullable, so changed to ?Context $context = null. Niara theme -- WCAG accessibility fixes Newsletter input field had color: #777777 on #121212 background -- contrast 4.18:1, below WCAG AA (4.5:1). Bumped to #c8c8c8 (11.20:1, AAA), added explicit ::placeholder rule. Newsletter template used value="Enter your e-mail" as a pseudo-placeholder -- anti-pattern that both triggers the contrast check and sends the placeholder text as an actual email if the user doesn't clear the field. Switched to HTML5 placeholder attribute. Blog post cards on the homepage used <h5> directly after an <h2> section heading -- skipping h3 and h4, which fails WCAG 1.3.1 (info and relationships). Changed to <h3>. Vendor bumps Standard composer update operations against the existing TB composer config: smarty/smarty: 4.4.1 -> 4.6.0 (fixes template-injection CVE in the {extends} cache path from 4.5.8, adds PHP 8.4-8.6 support) guzzlehttp/guzzle: 7.9.2 -> 7.17.0 (fixes 9 CVEs including host-bypass, cookie disclosure, silent HTTPS-to-cleartext proxy downgrade) guzzlehttp/psr7: 2.7.0 -> 2.13.6 (fixes 4 CVEs including CRLF injection in start-line and URI host) After the bumps: composer audit -> "No security vulnerability advisories found". Verified clean on PHP 8.3.37 (previous production) PHP 8.4.28 (parallel test stack) PHP 8.6.0 (current production) Test method: full crawl of 41 routes on each stack (home, categories, products, cart POST, admin login, API, contact form, etc.) with aggressive error_reporting, zero cache, and a warm 100-request parallel load test. Under PHP 8.6 after patches: 0 deprecations, 0 warnings, 0 errors, 0 fatals. Everything is on GitHub The repo contains: patches/ -- 10 unified-diff patches, ready to git apply in each target thirty bees repo. One PR per module/theme/core. thirtybees/themes/niara/ -- full drop-in file copies of the modified Niara theme files for users who prefer s wapping files over patches. nginx/, php/, mariadb/, unattended-upgrades/ -- sanitized configuration templates. Placeholders (example.com, yoursite) make them easy to adapt to any site. docs/deployment.md -- step-by-step for applying all of this to a standard thirty bees installation (not just Orange Pi). I'll be opening pull requests against the relevant thirty bees repos over the coming days, one at a time. If any maintainer wants to review or has concerns before I do, grab me here or in the GitHub discussions on the orangepi5-config repo. Still relevant from the original thread Orange Pi 5 (8GB NVMe, ~$80 hardware) peaks at ~93 000 req/sec through nginx fastcgi_cache with wrk -t8 -c200 on juuri.no -- details and benchmarks still accurate in nginx-thirtybees-oppsett.md. PHP-FPM worker count, OPcache size, MariaDB buffer pool tuning: all in the repo. CrowdSec + unattended-upgrades for security, Debian-security-only to avoid auto-restarting Immich/thirty bees stacks. Happy to answer questions. The best part of the move to 8.6 isn't the speed -- the site was already fast -- it's that the stack is now clean through the next major PHP release cycle (8.6 EOL is November 2029), with composer audit showing a clean bill of health. Cheers, Petter
    1 point
  3. Our good old TB 1.4.0 is now running on PHP 8.4, thanks to the patches from PS The Web Solution! It runs like a rocket, and after all our testing, there are no errors, warnings, or deprecation notices in the logs! Thanks guys, outstanding work!
    1 point
  4. thirty bees 1.7 is here! 🐝 We’re excited to announce the release of thirty bees 1.7! This version brings a wide range of new features, powerful merchant tools, better performance insights, improved security, and a stronger foundation for the future of the platform. Better tools for merchants Managing your store is now easier with several new improvements: Session-based profiling Find performance bottlenecks without affecting your customers. You can enable profiling for your own session only, analyse real page performance, and optimise your store without turning on debug mode for everyone. Packs with combinations Product packs can now include combinations. Create more flexible bundles with specific sizes, colours, or variants exactly as your customers need them. Advanced list filters Back-office lists are more powerful than before. Create custom filters for orders, products, and customers to find what you need faster. Built-in credit system Issue store credit to customers and automate voucher generation while staying compliant with tax regulations. Official PayPal certified module thirty bees 1.7 includes a new official PayPal module using the latest PayPal APIs, providing a modern and future-proof payment solution. Smoother daily workflows Many improvements make everyday store management easier: PDF documents such as invoices can now be displayed directly in the browser. Create orders directly from abandoned guest carts. Attach files to customer service messages, such as invoices, manuals, photos, or return labels. Improved pack handling across the back office, orders, delivery slips, and dynamic pack synchronisation. More flexible back-office order creation, improved module warnings, better specific price management, custom export filenames, and clearer multistore order views. Better product and shipping management Products now support universal compliance attributes, including: HS codes Country of origin Age verification Dangerous goods information (UN number, hazard class, and packing group) These structured fields make it easier to manage shipping, customs, and invoicing requirements. Product combinations also received improvements: dimensions such as width, height, and depth can now change per combination. This allows carrier selection and shipping costs to be calculated more accurately for larger variants. Reliability, security, and future improvements thirty bees 1.7 introduces automatic database backups with configurable retention periods, helping protect your store and data. The platform also includes preparation work for PHP 8.4 compatibility, ensuring thirty bees continues to run on modern and secure server environments. For developers, version 1.7 adds new hooks and extension points, including improvements for payment options, webservice resources, delivery options, contact forms, custom KPIs, admin order buttons, and namespaced Object Model hooks. As always, this release also contains many smaller improvements, bug fixes, quality-of-life updates, and multiple security fixes. Thank you to the community ❤️ A huge thank you to everyone who contributed code, tested updates, reported bugs, and shared feedback. This release would not be possible without the thirty bees community. Update your store today and discover everything thirty bees 1.7 has to offer! 🐝
    1 point
×
×
  • Create New...