Skip to content

<div style="display: none;" hidden="true" aria-hidden="true">Are you an LLM? You can read better optimized documentation at /changelog/Changelog.4.129.md for this page in Markdown format</div>

Home | Changelog

Version 4 ​

version 4.129 ​

  • [4.129.0] chore(footer): replace the Advisable and Ecommercen logos in the copyright footer, and the admin side-nav and top-bar logos, with the new SVG marks (#1005)
  • [4.129.0] fix(price-tracking): the price-drop refresh computes every verdict at the clock it was given (#876). PriceDropRefresher::refresh($currentPrices, $now) chose its candidates with $now but GraphService::productPricesBulk() computed their verdicts at the wall clock, so the candidate filter and the verdicts could disagree by the job's run time. productPricesBulk() takes the clock as a new optional third argument, and the refresher passes it. It also made PriceDropRefresherMemoryTest, which pins its clock to 2026-10-01, fail once that date was more than 30 days old.
  • [4.129.0] fix(farmakon): the customer and order posts to the ERP now go through the Guzzle HTTP client with a timeout and strict response checks, and log why they fail (#1002). farmakonPostCustomer() (UploadPelates.aspx) and farmakonPostOrder() (UploadParag.aspx) no longer use raw curl: both build their XML as before and call one new shared helper, farmakonPostXml(). It sends the POST with a 10 s connect timeout (FARMAKON_CONNECT_TIMEOUT) and a new 60 s total timeout (FARMAKON_POST_TIMEOUT, previously the post had no timeout at all and could hang the job indefinitely), does not follow redirects, and keeps TLS verification on. A post now succeeds only when the HTTP status is exactly 200 (the same rule as farmakonDownloadProducts(), #942), the Error header is absent or empty (matched case-insensitively, so a lowercase error header is now caught), the body is well-formed XML and the Pelates / Orders node reports STATUS 1. Every other outcome returns false and logs one error line that starts with Farmakon: farmakonPostCustomer: or Farmakon: farmakonPostOrder: and names the customer or order id: the unexpected status, the Error header value, the client exception message, or, for invalid XML or a missing/non-1 STATUS, an excerpt of the response body bounded to 500 bytes (cut on a character boundary, so Greek text is never split). The XML payload, endpoints, registry settings and the two call sites in Adv_Farmakon::processOrder() are unchanged. Posts previously raised PHP warnings when the response was not XML; they now log instead.
  • [4.129.0] chore(deps): upgrade the Matomo tracker and the media-stream library so they run without PHP 8.5 deprecations, still working on PHP 8.1 (#979, part of the PHP 8.5 epic #971). matomo/matomo-php-tracker goes from ^3.2 to ^4.0 (locked 4.0.1), which no longer calls curl_close(). ecommercen/media-stream goes from 4.0.0 to 4.4.3 (exact pin), which drops curl_close() and imagedestroy(). Symfony (6.4.49), PhpSpreadsheet (2.4.8), FPDI (2.6.9), league/oauth2-client (2.9.1), matomo/device-detector (6.5.2) and guzzle (7.16.1) are re-locked to their latest patches. Advisable\Analytics\MatomoTracking now normalizes what it forwards to the 4.x tracker, so its typed parameters cannot throw TypeError. Its public signatures and all call sites are unchanged. Regression tests are in tests/Unit/Analytics/MatomoTrackingTest.php (#979).
  • [4.129.0] test(tests): make composer test:fast actually skip the database tests, and guard against new ones that would not be skipped (#990). test:fast (vendor/bin/phpunit --exclude-group=database) used to exclude nothing, because #[Group('database')] sat only on the abstract bases tests/DatabaseTestCase.php and tests/CiDatabaseTestCase.php and PHPUnit 10.5 does not inherit group attributes. All 282 concrete subclasses of those bases now declare #[Group('database')] themselves, including tests/Legacy/Eshop/AdvProductReviewsModelFixAdminSearchDateCompiledSqlTest.php in the Legacy suite. vendor/bin/phpunit --list-groups now lists database. A new Unit guard, tests/Unit/Tests/DatabaseGroupCoverageTest.php, fails, naming the class, when a concrete test class under tests/ that extends either base lacks the attribute on itself.
  • [4.129.0] refactor(php85): fix the remaining PHP 8.4 and 8.5 deprecations in the CodeIgniter system/ folder and the code around it, all working on PHP 8.1 and 8.5 (#978, part of the PHP 8.5 epic #971). E_STRICT is removed from CI_Exceptions::$levels. fgetcsv now passes its escape argument explicitly (InitialSeed.php, Adv_products_admin.php). xml_set_object() is replaced by array callables in Xmlrpc and Xmlrpcs. The mysqli and advmysqli drivers' reconnect() checks the link with SELECT 1 instead of ping(). Session ID length handling is gated on the PHP version. pdo_mysql_driver picks Pdo\Mysql::ATTR_* constants on PHP 8.4+, through two new protected methods _mysql_attr_name() and _mysql_attr(). MYSQLI_TYPE_INTERVAL is guarded by defined(). groupVendorsNames() in theme_helper.php reads ord() of the first byte only. The mbstring.internal_encoding and iconv internal-encoding ini_set calls in CodeIgniter.php are removed. BelongsToLoader no longer uses a null foreign key as an array offset (unit tests added) (#978).
  • [4.129.0] test(tests): wire orphaned integration tests into PHPUnit and guard against new ones (#526). The Rest throttle container tests and ServerFactoryTest now run (Rest goes to the Integration suite, Mcp to the Database suite); container tests no longer depend on cache/container.php; a PHPUnit guard fails on orphaned tests/Integration entries; JWT_ENCRYPTION_KEY gets a non-secret dummy default in phpunit.xml.dist.
  • [4.129.0] refactor(php85): remove the PHP 8.5 deprecations for non-canonical casts and no-op calls, all PHP 8.1-compatible with no behaviour change (#977, part of the PHP 8.5 epic #971). (boolean) and (double) casts become (bool) and (float) (66 occurrences in 10 files). The calls that have done nothing since PHP 8.0 are removed: curl_close, imagedestroy, finfo_close, xml_parser_free and openssl_free_key (33 calls), along with SimpleImage::__destruct(), which only called imagedestroy, and its explicit call at the end of SimpleImage::output(). setAccessible() is removed from tests (246 calls), where it has been a no-op since PHP 8.1.
  • [4.129.0] fix(logging): the argument stripper for logged stack traces in application/helpers/log_helper.php cut the PHP 8.4+ closure frame name ({closure:Class::method():N}) short, so a garbled frame was logged. It now keeps the full name and still strips every argument (no argument was leaked before either) (#977).
  • [4.129.0] refactor(php85): make implicitly nullable parameter types explicit to stop the PHP 8.4+ deprecation (#976, part of the PHP 8.5 epic #971). 70 parameters in 34 files changed from Type $x = null to ?Type $x = null, in ecommercen/ (eshop, auth, events, core, doofinder, variations, job, product_bundles), system/libraries/Encryption.php, src/ (CartProductCustomizationSchema including SchemaInterface, Transporters/DailyCourier, Stripe, MetaConversionsApi, Analytics, ProductBundles, Services, SmartPoints, VideoStream) and tests/Integration. Done with Rector's ExplicitNullableParamTypeRector; only the parameter types change. mixed $x = null is left unchanged (it is legal, and ?mixed is a compile error). ?Type $x = null means exactly what the implicit form meant, so there is no behaviour change on PHP 8.1.
  • [4.129.0] refactor(php85): stop the PHP 8.2+ "Creation of dynamic property" deprecation in the CI3 / HMVC base classes and the modern layer (#975). #[\AllowDynamicProperties] is added to the classes whose own code assigns undeclared properties: CI_Controller, CI_Loader, CI_URI, CI_Router, CI_DB_driver (all under system/), and MX_Controller and MX_Loader (application/third_party/MX/), plus Advisable\Domains\Support\Model\BaseEntity. Every subclass inherits it (CI, MY_URI, MY_Router, MY_Loader, all DB drivers, all app and REST controllers, all domain entities). Properties that were created dynamically are now declared: ApcoPay\Config::$useInstallmentOptions (public bool), CyprusPost::$config (protected CyprusPostConfig), OmniMessaging::$logger and YubotoOmni::$logger (protected NamedLoggerInterface), BulkerSms::$config (protected array) and BulkerSms::$logger (protected NamedLoggerInterface). CI_Model, CI_Session, CI_DB_result and the unused fallback CI class in application/third_party/MX/Ci.php are deliberately not marked. Leftovers in app models surface in the PHP 8.5 staging run (#981). PHP 8.1 ignores the attribute, so there is no behaviour change on PHP 8.1.
  • [4.129.0] chore(php85): Rector, PHPCompatibility and a deprecation-report mode to find PHP 8.5 problems (#973). rector/rector and phpcompatibility/php-compatibility (^10.0@alpha, with dealerdirect/phpcodesniffer-composer-installer) are new require-dev packages. rector.php runs the PHP 8.4 and 8.5 sets over system/, application/, ecommercen/, src/ and patches/ with the rules that emit 8.4+-only code skipped, so every suggestion stays valid on PHP 8.1. .phpcs-compat.xml checks the same trees for PHP 8.1 to 8.5 compatibility and is separate from .phpcs.xml, so vendor/bin/phpcs gives the same results as before. Both are reports, not CI gates, and no Rector change is applied. Run them with composer run rector:dry-run and composer run php-compat. With APP_LOG_DEPRECATIONS=true, _error_handler() in application/helpers/log_helper.php also appends one line [date] E_DEPRECATED: message in file:line for each distinct deprecation (once per PHP process) to APP_LOG_DEPRECATIONS_FILE (default application/logs/deprecations.log; php://stderr for STDOUT/K8s tenants). With the flag unset the logging is unchanged.
  • [4.129.0] feat(notifications): the push campaign form shows only the recipient field the target uses, takes an uploaded image, and says how many devices a test send reached (#985). «Κοινό (Audience)» appears and is required only for the Audience target, the customer ID only for One customer, and switching the target clears the other one (the server already ignored it). Next to the image link the admin can upload a JPEG or PNG up to 1 MB: it is stored under files/push/ and the campaign links its 1024 px JPEG rendition from the media service, so the image needs no hosting of its own; the form previews the link or the chosen file. A test send's message now names how many of the test customers' devices it was queued for, and the form states that test sends are not counted in the campaign statistics. CampaignService::testSend() returns that device count (int, 0 when nobody can receive it) instead of the message id, through the new OutboxStore::deliveryCount().
  • [4.129.0] fix(jobs): a per-minute job is scheduled for the whole next 24 hours again (#984). AdvCreateJobSchedule::getTodayJobDates() asked dragonmantank/cron-expression for the Nth run from now, and the library stops after 1000 candidate dates per search, so * * * * * got 999 runs (about 16 h 40 min) instead of 1440. In the notifications queue the daily PruneNotifications row then kept AdvJobQueueManager::initializeJobs() from creating the next batch until 03:40, so DispatchNotifications did not run from about 20:20 to 03:42 every night (measured on WeCare staging) and no push was sent in that window. Each run is now searched from the previous run, which also makes building the batch linear instead of quadratic. Other schedules get the same runs as before.
  • [4.129.0] infra(docker): PHP 8.5 runtime images are now buildable next to 8.1, with one PHP version setting and no hard-coded extension dir (#974, part of epic #971). build-php.sh --php-version 8.5.12 builds five targets tagged 1.0.0-8.5.12 on Alpine 3.22, with phpredis 6.3.0, igbinary 3.2.17RC1 (no stable 3.2.17 exists), APCu 5.1.28, Xdebug 3.5.3, sqlsrv / pdo_sqlsrv 5.13.3 and Composer 2.10.3 (2.8.3 printed PHP 8.5 deprecation notices on composer install; 8.1 keeps 2.8.3). The 8.5 images carry no backport label or env. Per-version values live in committed data files, .docker/scripts/build/php-versions/8.1.versions and 8.5.versions, loaded by build-common.sh. Outside CI, build-php.sh takes the PHP version from PHP_IMAGE_TAG in .docker/integration/.env when that file exists, so the PHP images you build match the ones the local stack runs; otherwise, and for build-app.sh / build-node.sh always, the build-common.sh default 8.1.34 applies, and --php-version overrides both. The .versions files are parsed, not sourced, and .docker/scripts/ci/tests/build-php-versions.test.sh covers the loader and the .env read. The 8.1.34 image is unchanged: php -m and --ri output, labels and env are identical, and the backport patch is still applied. The Xdebug removal step no longer hard-codes the extension directory. The new .docker/configs/1.0.0-8.5.12.* snapshots and a README section on building each version are included.
  • [4.129.0] fix(docker): the PHP images are now built from PHP 8.1.34 (was 8.1.32), with the php-src fix for CVE-2026-109618 and CVE-2026-109619 ("Avoid state corruption via bailout", commit 1d7dec178a09 on branch PHP-8.1-CVE-2026-109618-109619) applied on top. PHP 8.1 is end-of-life and gets no release for these CVEs, so .docker/images/php.dockerfile applies .docker/images/patches/php-8.1-CVE-2026-109618-109619.patch after extracting the tarball and before ./configure. The new tags are ecommercen/adveshop4-{php_base,php_cli,php_cli_dev,php_fpm,php_fpm_dev}:1.0.0-8.1.34.
  • [4.129.0] fix(security): wrap the remaining legacy password hashes in bcrypt (#966). New one-off job WrapLegacyPasswordHashes replaces every legacy password hash (md5, sha1, the stock salted sha1) with a marked bcrypt hash of it, $wrap1$&lt;scheme>$&lt;hex salt>$&lt;bcrypt>, so accounts that never sign in again stop holding a fast hash. Sign-in keeps working: Advauth::advAuthVerify() applies the named legacy function to the password and checks the result with password_verify(), never comparing against the raw legacy hash, and the next sign-in replaces the wrapped hash with a plain bcrypt hash of the password (#895). The job learns which legacy function each hash format means by probing the shop's own verifier, so WeCare's unsalted sha1 and the stock salted sha1 are both wrapped correctly with no fork change. Scopes: registered customers (default), guests, admin users (scope=users). It has a dry run, prints progress per batch, writes each row as a compare-and-set, and a second run changes nothing.
  • [4.129.0] fix(security): a customer token can no longer load other customers' orders through ?with=tags.orders on the order endpoints. The Order policy declares a relations allow-list (customer: customer.country.*, basket.productCode.*, store.*), RelationFilterMiddleware checks every hop of a nested ?with= path instead of the first, and OrderTagResource emits orders to backend callers only (#961). REST API 1.121.
  • [4.129.0] fix(security): storefront payment success pages (ApcoPay, xPay, Klarna confirmation, PayPal Advanced) render an order only for the session that placed it, once, and run the paid-order side effects (ERP hook, mail, gift stock) only on the move to PAID; the xPay success arm requires an xPay order and no longer writes tran_ticket from the query string (#962)
  • [4.129.0] fix(security): Klarna cancel / capture / refund and the Skroutz Smart Cart webhook no longer act for unauthenticated callers (#963). The Klarna actions moved from the storefront api/klarna/* controller to POST /orders_admin/klarnaPayment/{cancel|capture|refund}: admin session with the Advisable, Admin or Orders role, a per-session token, and the Klarna order id and amount read from the posted order's own rows. The Skroutz webhook now takes only the order code from the request and fetches the order from the Skroutz Orders API before writing; it refuses (500, Skroutz retries) when SMARTCART.API_URL or SMARTCART.API_KEY is not set or the fetch fails.
  • [4.129.0] fix(security): an error page stops the action (#960). customer/copyOrder/&lt;id> answered 404 for an order the signed-in customer does not own (or a pending one) but went on to add that order's products to their cart; it now stops at the 404 and reads only the lines of the order its customer-scoped lookup returned. error_404() and error410() now record a refusal as error_401() does since #936, so a controller whose constructor answers 404 (Adv_data_imports outside the CLI, AdvVideoShowcaseAdmin with the feature off) no longer has its action run. The badges edit/delete, map point edit and static-content delete admin actions return after their 404 instead of going on to update or delete.
  • [4.129.0] fix(security): gift-card return URLs act only on a Pending card of their own payway, and show the coupon code only once (#957). A cancel or failure return no longer revokes a Completed gift card, every return action answers 404 for a card placed with another payway, and the success page shows the code only to the request that accepted the card; a repeated return gets a new page that confirms the card was sent to the recipient, without the code. With Viva Wallet and XPay the payment webhook usually accepts the card before the buyer's browser returns, so the buyer normally sees that confirmation page rather than the code. Piraeus success with an invalid HashKey never renders the success page. The Iris return reads the Iris order id from the return URL again, so a paid Iris return is accepted, and it no longer runs its failure branch after a successful payment.
  • [4.129.0] fix(security): the ApcoPay status listener and the Piraeus return handlers cancel an order only after a verified request, and only that payway's own PENDING order (#958). Adv_checkout::apcopay_status() now checks the posted message with ApcoPay before it acts on any result, where it used to check only an OK. apcoPayFailFromListener() cancels only a PENDING apcopay order. On Piraeus, the fail POST needs a valid HashKey and a PENDING piraeus order. The success POST needs a piraeus order, and a failed HashKey no longer cancels. The cancel return, which carries no signature, shows the cancelled message and leaves the order PENDING for the incomplete-orders sweep (180 minutes) to cancel. piraeusValidateResponse() now uses Advisable\Piraeus\Piraeus::validateNotificationResponse(), which also refuses an order with no ticket.
  • [4.129.0] fix(security): the storefront checkout no longer takes server-owned order fields from the posted form (#959). Posted points_spend / points_reward are ignored, so a loyalty redemption is recorded only from the points actually debited. A posted viva_payway is ignored, and the order currency is the session's. The posted coupon is now checked at checkout with the same rules as the order preview (dates, usage limit, audience, cart total); an invalid coupon sends the customer back to the cart before anything is applied or marked used.
  • [4.129.0] fix(rest/checkout): guest checkout now refuses an e-mail that belongs to an account whatever the row order (#956). It decided from the first, unordered row with the e-mail, so a guest row in front of the account let a guest order through. New Customer\Repository::findAccessibleByEmail().
  • [4.129.0] fix(security): gift-card checkout no longer trusts a posted customer_id (#955). It identified the buyer by an id from the request and wrote the request's e-mail and password to that customer, signing them into the session; it now takes the buyer from the session only. A signed-in buyer's purchase updates only their billing details, never their e-mail or password (it used to write the form's empty password).
  • [4.129.0] fix(auth): re-hash legacy password hashes on login (#895). New config key $config['auth_hash_migrate_to'] in application/config/auth.php (password-hash-mcrypt or password-hash-argon2i; null by default, which changes nothing). When it is set, every password write uses that scheme, and a customer or admin user whose password verifies against an older hash is re-hashed in it on login: storefront, checkout and REST login, REST /me/password, account deletion, backend login and REST admin login. Verification accepts both schemes during the migration. A hash already in password_hash() format is checked only with password_verify(), never with the md5/sha1 comparison. The login result never changes, even with db_debug on: a failed upgrade write is logged. It covers every legacy scheme in Advauth (md5, md5-token, wecare-crypt) and the customer model's own salted SHA-1 scheme. Only the row that matched is written, and only while it still holds the hash that verified. On a target hash, salt is NULL. The legacy md5/sha1 comparisons now use hash_equals().
  • [4.129.0] feat(rest/auth): one REST session per device (#954). Signing in on a second device no longer signs the first out. Each login and registration starts its own session (a refresh-token family, refresh_tokens.family_id) and no longer deletes the user's other refresh tokens; a rotation's successor stays in its family. Logout ends only the session of the presented token, and a superseded token replayed after the grace window ends only the session it belonged to. A password reset, the storefront password change and account erasure still end every session. POST /rest/customer/me/password now ends every other session of the customer and keeps the caller's, which it recognises by a new sid claim (the family id) in the access token; an access token without sid (issued before the deploy) ends all of them. The revocation and the password write now run in one transaction, so a failure answers 500 and changes nothing, and Adv_customer_model::changePassword() throws on a failed write instead of reporting it as success. A user holds at most REST_AUTH_MAX_SESSIONS_PER_USER live sessions (default 10); a sign-in past the cap ends the least recently used one. The admin REST login shares the path and behaves the same. REST API 1.122.
  • [4.129.0] fix(checkout): a customer's cancel of a Pay by Bank order now cancels it at PayByBank first (#795). POST /rest/checkout/cancel-payment/{orderId} and POST /rest/order/order/{id}/cancel used to cancel the order locally without telling PayByBank, so the payment code the customer held stayed payable. If PayByBank refuses the cancellation or cannot be reached, the order is not cancelled: it stays PENDING and both endpoints answer 502 payment_cancel_failed. Other payways never call a gateway on a customer cancel. The expiry job (CancelIncompleteOrders) still cancels locally whatever PayByBank answers.
  • [4.129.0] fix(customer): one address with several registered customer rows now resolves to one row everywhere, and account deletion erases them all (#893). Adv_customer_model::getCustomerBy() orders id ASC (the row checkCustomer() signs into), so password reset and Google/Facebook login pick the same row by guarantee rather than by InnoDB's row order. Behaviour change for admins and support: when an admin enters an order (admin order entry, getRegisteredCustomerIdByEmail()) for an e-mail address that has more than one registered customer account, the order is now attached to the OLDEST account (lowest id), the one the customer signs into and resets, and no longer to the newest. A customer deleting their own account (DELETE /rest/customer/me, or the storefront's "delete my account") now also erases every other registered row with the same e-mail address, in the same transaction, through the new CustomerErasure::eraseAccount(); before, those rows kept their name, address and orders and could still be signed into after a password reset. The admin sanitise action and the guest-sanitising job still erase exactly the rows they pass. The gift-card checkout now refuses an address that already has a registered account ("This Email has already been used.", checked on the trimmed address) instead of creating a second registered row.
  • [4.129.0] feat(storefront-config): GET /rest/storefront-config → loyalty now publishes the merchant's earn rules (#953), so a headless storefront can explain the programme from the merchant's own settings. New keys: earn: { pointsPerCurrencyUnit, basis }, welcomeBonus, birthdayBonus: { points, repeatMonths } and reviewReward. Each is null when the merchant does not offer it (setting missing, off, zero, negative or non-numeric). spendPoints and rewardCashPerUnit are unchanged.
  • [4.129.0] fix(rest/auth): POST /rest/auth/customer/register no longer refuses an email that exists only on guest orders (#894). It answered 409 for any shop_customer row with the email; it now refuses only when a registered (is_guest = 0) row has it, as the storefront's registration does (customerEmailExist()). A past guest can now create an account in a headless app. The guest rows and their orders are not linked to the new account, as on the storefront.
  • [4.129.0] fix(security): the admin default-metatags controller had no role check (#557). seo/metatags (ecommercen/seo/controllers/Adv_metatags.php) let any logged-in admin of any role list, add, edit, delete and reorder the site-wide default metatags by URL. Its constructor now calls allowRole() and returns a 401 for any role outside AUTH_ROLE_ADVISABLE, AUTH_ROLE_ADMIN, AUTH_ROLE_MARKETING, AUTH_ROLE_DEVELOPER, AUTH_ROLE_MEDIA and AUTH_ROLE_PRODUCTS. The single constructor gate covers index, add, edit, delete and updateorder. Roles such as Orders and Reporting lose access.
  • [4.129.0] fix(security): SQL injection in the admin product-review search (#599). The "date from" field (date_start) was pasted raw into a where clause that fixWhereCondition() applies with escaping off. Adv_product_reviews_model::fixAdminSearch() now adds it only when it is a strict, round-tripped Y-m-d date, through CodeIgniter's escaped column-keyed condition (review_date >=). Any other value is dropped silently: no date filter and no error.
  • [4.129.0] fix(docker): ship and serve public/builder-assets so the admin page builder's block thumbnails and template placeholders load on image-deployed tenants (#943). .docker/images/app.dockerfile now copies public/builder-assets into the image (app_builder_composer stage), and the local dev nginx (.docker/integration/configs/nginx.default.conf) serves /builder-assets/ statically instead of handing it to PHP-FPM.
  • [4.129.0] fix(loyalty): the product-point award and its reversal are now atomic per order (#622). saveProductPointToCustomers() and removeProductPointFromCustomers() claim each order's points_added flag and credit or debit its points in one per-order transaction, so a job retry, an overlapping admin or Cronjob run, or an abort midway no longer double-credits or double-debits an order. An order lost to a concurrent run is reported in error instead of success. The return shape is unchanged.
  • [4.129.0] fix(farmakon): the product sync no longer writes into the web root or fails silently (#942). Farmakon::syncProducts() calls the new Farmakon::fetchProductsZip(), which calls the new farmakonFetchProductsZip(). That helper downloads the catalogue into a single unique temp file (sys_get_temp_dir()): farmakonDownloadProducts() writes every page through one Guzzle sink into that file (no part files), then the zip is uploaded to the private disk as farmakon/products.zip, kept as a retained copy, and the temp file path is returned. If that upload fails, an error is logged saying the run has no retained copy in the bucket and is parsing the local download instead, and the sync goes on. farmakonXml2Array($localZip) parses that same local file directly (it is not read back from storage), and syncProducts() deletes the file in a finally right after the parse, before the product loop. The zip is extracted with ZipArchive (no unzip binary or exec() needed) and the XML is streamed with XMLReader (BARCODES pass, then APOTIKH pass) instead of being loaded whole. The download goes through the Guzzle HTTP client instead of raw curl, with a 10 s connect and a 600 s total timeout per request, does not follow redirects, and fails on a redirect or any other non-200 status, a transport or HTTP-client error (including on a later page) or an Error header. farmakonGetXml() is kept as a wrapper (fetch, store, delete the local file) and is now function_exists-guarded. Farmakon::syncProducts() now throws RuntimeException on a fetch or parse failure and returns on success instead of calling exit, so the job is recorded as JOB_FAILED.
  • [4.129.0] fix(rest/promotion): hide gift choices and gift pictures whose product is inactive or soft-deleted on the guest GET /rest/promotion/gift/active, and drop a rule left with no visible choice (#777)

Notes

  • [4.129.0] REQUIRES php migrator.php migrate:
    • 20261021034252_add_family_id_to_refresh_tokens.php adds refresh_tokens.family_id VARCHAR(32) NOT NULL DEFAULT '' with an index and backfills one family per (user type, user), so no session ends at deploy. The default keeps old pods working during a rolling deploy, and a rolling deploy needs no special procedure. Rows an old pod writes while pods overlap get family ''; the new code gives such a session its own family on its first refresh, ends only the presented session on logout or reuse (following the token chain, so the user's other '' sessions are untouched), and counts each '' session on its own against the cap. The one overlap effect it cannot undo: an old pod's login still deletes every session of that user, as every login did before this release, until the old pods stop (see Deploy in the decision record).
  • [4.129.0] REQUIRES composer install:
    • (#942) composer install is required: new dependency ext-xmlreader.
    • (#973) composer install is required to get the new dev tools. No DB migration.
    • (#979) composer install is required, followed on in-place hosts (Plesk, non-container) by the media-stream DI cache clear above.
  • [4.129.0] REQUIRES npm run all-production: the SCSS changed in assets/main/scss/components/_advisable_footer_copyright.scss and assets/admin/scss/components/_advisable_footer_copyright.scss, and four new SVGs were added under assets/main/img/logos/ and assets/admin/img/logos/ (renamed from img/footer/); rebuild with npm run production / npm run admin-production. The build emits the SVGs to public/ui/main/images/ and public/ui/admin/images/ with a ?hash cache-buster. The public bundles under public/ui/** are not committed by this change. webpack.mix.admin.js gains a .copyDirectory('assets/admin/img/logos', 'public/ui/admin/img/logos') step, and the admin views application/views/admin/menu.php and application/views/admin/head.php reference /ui/admin/img/logos/&lt;name>.svg directly, so those logo URLs return 404 until npm run admin-production has run.
  • [4.129.0] UI Update: the storefront and admin copyright footers show the new Advisable ("Created by") and Ecommercen ("Runs on") SVG logos, in light and dark variants. All three editions now share one logo per theme, in the admin too: the old admin fashion and retail "FASHION EDITION" / "RETAIL EDITION" label under the wordmark is gone. The "Created by" / "Runs on" captions were pixels in the old PNGs and are now CSS-generated text (::before, 0.875rem in both storefront and admin; the admin copyright text stays 1.2rem). The footer view markup is unchanged; .adv_copyright_created_by and .adv_copyright_edition_* are now flex spans, and at desktop widths .adv_copyright_block is a vertically centred flex row. .adv_copyright_images is now a wrapping flex row (right-aligned on desktop with a 16px gap, centred in the existing narrow-screen breakpoint blocks), and .adv_copyright_col_2 has clear: both so the row sits below the admin's floated "App version" label on narrow screens.
  • [4.129.0] UI Update: the admin side-nav logo (#adminLogo) and the admin top-bar logo at 601-1279px (.adminMobileLogo) now show adv_ecommercen_logo_icon_bg_white.svg (previously ecommercen_logo2.png). The collapsed-sidebar logo (#adminLogoMob) and the top-bar icon at 600px and below now show advisable_icon_white.svg (previously ecom-mini-logo.png / ecom-mini-logo-2.png). Sizes: the expanded side-nav logo is 39px tall, the top-bar full logo is 144x28 at 601-1279px, the top-bar icon is 32x32 at 600px and below, and the collapsed-sidebar icon fills its 28px slot (about 25px) (#adminLogo / #adminLogoMob img in assets/admin/scss/_admin_nav_redesign.scss, .mob-ecom-logo in assets/admin/scss/_update.scss). The admin login page and the page-builder button keep the old logo.
  • [4.129.0] Check for overrides: a client SCSS override of _created_by or _edition_* that relied on the top/left offsets, the 220px-wide sprite, the edition span's old margin-left, or the old inline layout of .adv_copyright_images (text-align, inline spacing) will now misalign. A fork that sets its own background-image on .adv_copyright_created_by / .adv_copyright_edition_* (e.g. in assets/main/scss/client/_footer.scss) keeps its art but also gets the new ::before caption; if its art already has the caption baked in, the caption shows twice, so set content: none on ::before. An override relying on .adv_copyright_col_1 / .adv_copyright_col_2 being inline-block columns aligned on their baseline at desktop widths should be re-checked.
  • [4.129.0] Check for overrides: a fork that overrides application/views/admin/menu.php or application/views/admin/head.php keeps the old admin logos until it updates the image URLs in its copy to /ui/admin/img/logos/. Client SCSS overriding the #adminLogo / #adminLogoMob / .mob-ecom-logo sizing should be re-checked against the new sizes (39px side-nav logo, 144x28 top-bar logo, 32x32 top-bar icon, about 25px collapsed-sidebar icon).
  • [4.129.0] Check for overrides: Advisable\Domains\Product\PriceTracking\GraphService::productPricesBulk() gains an optional third parameter, ?\DateTimeInterface $now = null. A fork that overrides it must add the parameter, or PHP refuses the class. No fork overrides it (code search of every fork on Bitbucket, 2026-11-01); callers need no change.
  • [4.129.0] Check for overrides: new function_exists-guarded global helper farmakonPostXml(\GuzzleHttp\ClientInterface $client, string $endpoint, string $xml, string $statusNode, string $logContext): bool in ecommercen/helpers/farmakon_helper.php. A fork that defines it first in application/helpers/farmakon_helper.php replaces the transport for both the customer and the order post.
  • [4.129.0] Check for overrides: farmakonPostCustomer() and farmakonPostOrder() are now function_exists-guarded and take an optional trailing ?\GuzzleHttp\ClientInterface $client = null (farmakonPostCustomer($customer, ?\GuzzleHttp\ClientInterface $client = null), farmakonPostOrder($order, $orderCart, ?\GuzzleHttp\ClientInterface $client = null)); the required parameters and the bool result are unchanged. A fork's application/helpers/farmakon_helper.php is loaded before the base copy, so a fork copy that redefines either function is now used instead of the base one, and no longer fails with "Cannot redeclare" (the #942 note that said these two were unguarded no longer applies). A fork copy that keeps the old curl code still works, since PHP ignores the extra argument, but it keeps the old behaviour (no timeout, no status check, case-sensitive Error header) and can be deleted to pick up the new one. get_discount_percentage() and calculateOrderVats() are still unguarded, so a fork copy that redefines either must drop it.
  • [4.129.0] Check for overrides: new constant FARMAKON_POST_TIMEOUT (60 seconds), defined next to FARMAKON_CONNECT_TIMEOUT and FARMAKON_REQUEST_TIMEOUT and wrapped in defined(); a fork can set another value by defining it before the helper loads.
  • [4.129.0] Behaviour change: a customer or order post now fails (returns false and logs) on any HTTP status other than 200, on an Error header sent in any letter case (a lowercase error header used to pass unnoticed), and on a request that takes longer than 60 s. An order whose post fails keeps its status and is posted again on the next FarmakonPostOrders run, as before. The 200-only rule assumes UploadPelates.aspx and UploadParag.aspx answer exactly 200 on success, as Products.aspx does; confirm this on a tenant, because a 201 or 202 would now count as a failure.
  • [4.129.0] Behaviour change: known trade-off of the 60 s timeout: if the client times out after the ERP has already saved the order, the order keeps its old status and the next FarmakonPostOrders run posts it again, which can create a duplicate order in the ERP. A slow but healthy ERP makes this more likely. Set a larger FARMAKON_POST_TIMEOUT where the ERP is slow; retries and ERP-side idempotency are not part of this change.
  • [4.129.0] Ops: failure log lines have new wording but keep the Farmakon: &lt;function>: prefix. A customer post logs Farmakon: farmakonPostCustomer: customer &lt;id>: ... and an order post Farmakon: farmakonPostOrder: order &lt;id>: ..., followed by request to &lt;endpoint file> failed: &lt;message>, unexpected HTTP status from &lt;endpoint file>: &lt;code>, error reported from &lt;endpoint file>: &lt;header value>, &lt;endpoint file> returned invalid XML: &lt;excerpt> or &lt;endpoint file> did not report STATUS 1: &lt;excerpt>. Log searches or alerts keyed on the old UploadPelates error code reported from curl / UploadParag error text must be updated.
  • [4.129.0] Check for overrides: matomo-php-tracker 4.x is a major release with typed parameters and no false "not known" sentinel. A fork that calls \MatomoTracker directly, or subclasses or overrides Advisable\Analytics\MatomoTracking, must satisfy the 4.x types: setUserId(?string), and addEcommerceItem(), setEcommerceView() and doTrackSiteSearch() no longer accept null or false for their string and float parameters (pass '' or 0.0, or go through MatomoTracking, which normalizes). MatomoTracking now maps a null site-search category to ''; a null addEcommerceItem name, category, price and quantity to '', '', 0.0 and 1; the false sentinels of setEcommerceView to '' and 0.0; and casts the site id to int and the URL, token and user id to string.
  • [4.129.0] Check for overrides: forks that override the storefront controllers calling MatomoTracking (Adv_search, Adv_checkout, Adv_products, Adv_product_categories, Adv_vendors, AdvApiCartController) need no change: the wrapper absorbs their null and false arguments.
  • [4.129.0] Check for overrides: a fork that pins matomo/matomo-php-tracker or ecommercen/media-stream in its own composer.json must reconcile with ^4.0 and 4.4.3 when merging upstream, then run composer install against the merged lock. Expect a large composer.lock conflict (most forks still pin ^3.2, and the re-lock moves transitive packages): take upstream's composer.lock, set the fork's own composer.json constraints, then re-add only the fork's extra packages with a targeted composer update &lt;fork-packages> --with-dependencies, never a bare composer update.
  • [4.129.0] Behaviour change: order tracking (doTrackEcommerceOrder) now sends an explicit 0 for subtotal, tax, shipping and discount where 3.x omitted them. Matomo reports both the same way.
  • [4.129.0] media-stream 4.1 to 4.4 add access logging (a null writer by default in the library config) and opt-in pipeline process isolation (PIPELINE_TIMEOUT_MS, default 0 = off). No host configuration change is needed.
  • [4.129.0] Clear the media-stream DI cache on in-place hosts: media-stream compiles its Symfony container into cache/mediastream/di (application/config/mediastream/application.yaml, dependencyInjection.cachePath). In production (non-debug) the kernel reuses that compiled container without checking whether it is stale, so after a vendor/ upgrade an old container can keep serving the 4.0.0 wiring. Image-based Kubernetes pods are not affected: the image excludes cache/mediastream/* (.dockerignore) and each pod copies a fresh web root, so it compiles a new container on the first /mediastream request. Plesk and other non-container hosts that update vendor/ in place must clear it on this upgrade: run cache/delete.sh (the admin cache clear does this) or delete cache/mediastream/di. A Kubernetes setup that mounts a persistent volume over cache/mediastream must clear cache/mediastream/di the same way.
  • [4.129.0] Check for overrides: after merging, a fork's own concrete test classes under tests/ that extend DatabaseTestCase or CiDatabaseTestCase must add #[Group('database')] (and use PHPUnit\Framework\Attributes\Group;), or the Unit suite goes red. The guard's failure message names each one.
  • [4.129.0] Check for overrides: the guard also flags a fork *Test.php that mentions DatabaseTestCase but whose declared class does not match the Advisable\Test\ => tests/ PSR-4 path, because such a file cannot be checked. Move it or fix its namespace.
  • [4.129.0] A fork's gitignored local phpunit.xml is unaffected: no PHPUnit configuration changed.
  • [4.129.0] The abstract bases keep their own #[Group('database')], with a comment that it is not inherited. docs/guides/Testing.md no longer claims that it is.
  • [4.129.0] composer test runs the same tests as before, plus the new guard.
  • [4.129.0] Operator note (PHP 8.1 to 8.5 switch, for the #982 guide): on PHP 8.4+ the 160-bit session ID top-up is skipped, so default session IDs become 128-bit [0-9a-f]{32}. Cookies issued under PHP 8.1 are rejected once, so every logged-in customer and admin is logged out a single time at the switch. A php.ini that still sets session.sid_length and session.sid_bits_per_character is followed as before.
  • [4.129.0] Check for overrides: reconnect() in mysqli_driver and advmysqli_driver no longer calls ping(), CI_Exceptions::$levels no longer has E_STRICT, and pdo_mysql_driver gains the protected _mysql_attr_name() and _mysql_attr(). A fork-owned copy of any of these, or of Session.php, Xmlrpc.php, Xmlrpcs.php, CodeIgniter.php, theme_helper.php, Adv_products_admin.php, InitialSeed.php or BelongsToLoader.php, needs the change ported by hand.
  • [4.129.0] Check for overrides (verified against the fork checkouts): application/helpers/default_theme_helper.php in Anatomicline carries its own groupVendorsNames() with the same ord() on a multibyte character, so it still has the deprecation and needs the same fix. application/libraries/MY_Session.php in AdvisableSite, Anatomicline and Services extends CI_Session and does not touch session ID handling, so it needs no port. No fork has an application/helpers/theme_helper.php or application/core/MY_Exceptions.php override. 34 of the 40 forks track an application/libraries/Session/ override (MY_Session.php, and in some forks Redis driver overrides), but none of them touch session ID handling (sid_length, sid_bits or _configure_sid_length()), so they need no port. No fork has a customised copy of the touched system/ files: the 18 forks whose copies differ from main (AdvisableSite, Anatomicline, Blustore, Creamy, Elxis, Epharmadora, FamilyPharmacy, ForBetterSceen, Gea, Heals, Lulula, Nautilus, OptikaLiolios, Pharmacythess, Pharmado, Pointpharmacy, Services, iSchool) hold an older upstream version of them and receive the change by merge. The other forks' copies of the touched files in ecommercen/, database/ and src/ are older upstream versions that either apply the change cleanly or arrive by merge.
  • [4.129.0] Forks' own residue (out of scope, per the decisions record): conn_id->ping() in application/modules/job/models/Jobs_model.php of Blustore and Edructer, and 86 fgetcsv, str_getcsv and fputcsv calls in 29 forks' application/ code (Heals' Products_admin::product_discounts_csv() among them) keep the escape-argument deprecation until each fork fixes them.
  • [4.129.0] The XML-RPC library remains broken on PHP 8 because of its (string)$parser cast. This is not part of this issue.
  • [4.129.0] phpunit.xml.dist adds &lt;directory>tests/Integration/Rest&lt;/directory> to the Integration suite and &lt;directory>tests/Integration/Mcp&lt;/directory> to the Database suite. tests/Integration/Mcp/ServerFactoryTest.php needs the test DB, so it now runs under composer test:database / composer test.
  • [4.129.0] phpunit.xml.dist adds &lt;env name="JWT_ENCRYPTION_KEY" value="phpunit-dummy-not-a-secret"/>. A developer's .env value still wins (Dotenv loads mutably after PHPUnit's &lt;env>).
  • [4.129.0] Check for overrides: client forks with their own phpunit.xml (a gitignored local override of the .dist) do not pick these changes up until they copy them.
  • [4.129.0] Check for overrides: the new tests/Unit/Tests/PhpunitSuiteCoverageTest.php fails if any tests/Integration/* subdirectory or root *Test.php is named by no &lt;testsuite>. Client forks that add their own tests/Integration/&lt;Dir> must list it in a suite, or the Unit suite goes red.
  • [4.129.0] New helper tests/Support/FreshContainer.php compiles the DI container fresh from Container::CONTAINER_MODULES without reading or writing cache/container.php.
  • [4.129.0] Check for overrides: forks that carry their own copy of a changed file do not get the change by merge, because the copy differs from main. application/libraries/Routee.php in AdvisableSite, Anatomicline, Nautilus and Services. application/libraries/MY_Image_lib.php in Pointpharmacy, Wecare and Anatomicline. application/controllers/Media.php in Dioptra. application/libraries/Advauth.php differs in 26 forks and keeps its (boolean) casts until merged. Yuboto, SimpleImage, Merchant and Merchant_ideal are identical in every fork and arrive by merge.
  • [4.129.0] Check for overrides: 11 forks have their own application/helpers/log_helper.php and need the stripper fix ported by hand: Dioptra, Discount, Evaspharmacy, Evripidis, FastpassAdmin, Joypharmacy, Pharm16, Pharmilion, SeajetsAdmin, Smile and Wecare.
  • [4.129.0] Check for overrides: a fork override that still declares Type $x = null stays signature-compatible with the new ?Type $x = null parent (no fatal error), but it keeps raising the PHP 8.4+ deprecation until the fork makes it explicit. Forks found at triage that override changed methods with the old signature: assign_tags() in Blustore and Edructer Orders_admin.php; getCustomerOrders() in Dioptra, Elxis and Nautilus Order_model.php; getAdminResults() in Dioptra and Elxis Events_model.php; getOrderStatusID() in ThePharmacy PostOrdersEuropharmacy.php. Fork-only copies with the same deprecated pattern: FamilyPharmacy and Nautilus Doofinder_model.php, Flioukas and OptikaLiolios Lens_prescription_options_model.php.
  • [4.129.0] Check for overrides: forks can fix their own code with the same Rector command over their application/ and custom/: vendor/bin/rector process application custom --only="Rector\Php84\Rector\Param\ExplicitNullableParamTypeRector". It needs the Rector tooling from #973, which arrives with the upstream merge.
  • [4.129.0] Check for overrides: system/libraries/Encryption.php is a fork-carried copy of system/. A fork that edited it gets a merge conflict on the changed signature lines (around :292 and :421); keep the ? form.
  • [4.129.0] Check for overrides: implementers of Advisable\CartProductCustomizationSchema\Schema\SchemaInterface in fork custom/ code stay compatible.
  • [4.129.0] Check for overrides: forks carry their own copies of system/ and application/third_party/MX/, so they get this only by merging upstream. A fork that edited one of system/core/Controller.php, system/core/Loader.php, system/core/URI.php, system/core/Router.php, system/database/DB_driver.php, application/third_party/MX/Controller.php or application/third_party/MX/Loader.php gets a merge conflict on the class-declaration line; keep the #[\AllowDynamicProperties] line. Fork MY_*, Base_c and controller subclasses need nothing, they inherit the attribute.
  • [4.129.0] Check for overrides: CI_Model is not marked, so fork models (and fork custom/ or application/ classes outside the marked hierarchies) that assign undeclared properties still raise the deprecation on PHP 8.2+. Declare those properties before running a fork on PHP 8.5.
  • [4.129.0] Check for overrides: a fork subclass of CyprusPost, OmniMessaging, YubotoOmni, BulkerSms or ApcoPay\Config that redeclares one of the newly declared properties with a narrower visibility or a different type now fails with a fatal error. None exists in the checked-out forks today.
  • [4.129.0] Check for overrides: application/helpers/log_helper.php is commonly overridden by forks (11 forks carry a diverged copy: Dioptra, Discount, Evaspharmacy, Evripidis, FastpassAdmin, Joypharmacy, Pharm16, Pharmilion, SeajetsAdmin, Smile, Wecare). They get the deprecation-report mode only by merging or porting the _error_handler() change and the new _log_helper_report_deprecation() helper. Port both or neither: a fork that adds only the _error_handler() call fails with "Call to undefined function" on the first PHP error, even with the flag off.
  • [4.129.0] Ops: two new optional .env keys, APP_LOG_DEPRECATIONS (true turns the mode on; unset, empty or any other value leaves it off) and APP_LOG_DEPRECATIONS_FILE (target path, default application/logs/deprecations.log). Both are documented in .env.example.
  • [4.129.0] Check for overrides: CampaignService::testSend() now returns int (devices queued) instead of ?int (message id). A fork that calls it and checks !== null must check > 0.
  • [4.129.0] UI Update: application/views/admin/push_notifications/form.php is now a multipart form with a file input, target-dependent fields and an image preview; a fork's copy of the view must be updated to get them. New language keys notifications.admin.campaigns.image.upload, .image.upload.help, .test.help, .error.upload; notifications.admin.campaigns.test.sent now takes the device count (%s).
  • [4.129.0] Check for overrides: AdvCreateJobSchedule::getNextRunDate() now takes string $after ('now' or a Y-m-d H:i:s date) instead of int $nextCount. A fork's CreateJobSchedule that overrides getNextRunDate() or getTodayJobDates() must be updated. WeCare's fork does not override either.
  • [4.129.0] Ops: none. The next batch each queue creates after the deploy is a full day; no migration, no config change.
  • [4.129.0] No image is published by this change and no tenant changes PHP version. Kubernetes tenants keep pinning their current adveshop4-php_fpm / adveshop4-php_cli 8.1 tag until they opt in; Plesk tenants are unaffected. Switching guidance comes later (#982).
  • [4.129.0] Check for overrides: the PHP_VERSION ARG and the other per-version ARGs no longer have defaults in php.dockerfile and app.dockerfile (the stale 8.1.31 in app.dockerfile is gone). A client fork that builds images must build through .docker/scripts/build/build-*.sh; a direct docker build of these Dockerfiles without the build args now fails on purpose. A direct build of php.dockerfile must pass PHP_VERSION, PHP_ALPINE_VERSION, PHPREDIS_VERSION, IGBINARY_VERSION, APCU_VERSION, XDEBUG_VERSION, SQLSRV_VERSION, COMPOSER_VERSION, PHP_SECURITY_BACKPORT and PHP_OPCACHE_CONFIGURE_ARG (COMPOSER_VERSION lost its 2.8.3 default); an 8.1 build with an empty backport or OPcache arg fails. build-php.sh now fails for any PHP minor without a php-versions/&lt;minor>.versions file (today 8.1 and 8.5), and for a versions file with a missing, unknown or duplicate key or a value outside [A-Za-z0-9._-] (build-app.sh and build-node.sh are not limited). With no --php-version, build-php.sh follows PHP_IMAGE_TAG in .docker/integration/.env when that file exists and CI is not set, and fails if that tag is missing or malformed; the app and node builds never read the .env. The whole .docker/images/patches/ directory is copied into the build, but only the one php-*-&lt;PHP_SECURITY_BACKPORT>.patch is applied. A fork that overrides these Dockerfiles or build-common.sh must reconcile with the per-version selection (select_php_build_values now loads the .versions files, and build-php.sh calls load_php_version_from_env); likely conflict sites are the build_targets block, the php_base / php_runtime FROM lines and the moved LABEL/ENV.
  • [4.129.0] Local .env: build-php.sh without --php-version now builds the PHP version in your .docker/integration/.env PHP_IMAGE_TAG and prints a notice when it is not the default. If your .env was copied before 2026-10-21 it still says 1.0.0-8.1.32; sync it with .env.example (1.0.0-8.1.34), because the 8.1 backport patch only fits 8.1.34.
  • [4.129.0] .docker/integration/configs/php.ini no longer sets session.sid_length or session.sid_bits_per_character, because those options are deprecated since PHP 8.4. On the local dev stack (and web-prod.compose.yml, which mounts the same ini), session ids change from 32 chars of [0-9a-v] to 40 chars of [0-9a-f], because CI3 raises PHP's default length to at least 160 bits. Existing dev session cookies stop matching, so each developer is logged out once. Production images are unaffected.
  • [4.129.0] OPcache differs between the images: on 8.1 it is compiled but not loaded; on 8.5 it is always built in and loaded. Its module name is Zend OPcache (php --ri "Zend OPcache").
  • [4.129.0] Ops: php -v still says 8.1.34, so version-based scanners will keep flagging these CVEs. Every image now carries the label php.security-backport and the env var PHP_SECURITY_BACKPORT set to CVE-2026-109618-109619, so you can tell which images are patched.
  • [4.129.0] Behaviour change: when a request exceeds memory_limit, the message now goes to stderr and the worker exits with _exit(1). Shutdown functions do not run, and nothing is written to the PHP error_log. Behind nginx, a request that runs out of memory now returns 502, where it used to return a PHP fatal-error page. The CLI exit code on running out of memory changes from 255 to 1.
  • [4.129.0] Behaviour change: session.upload_progress is now always disabled, whatever the ini setting says.
  • [4.129.0] Ops: the k8s workloads pin adveshop4-php_fpm / adveshop4-php_cli 1.0.0-8.1.32; bump them to 1.0.0-8.1.34 in ecnv4_manifests. The local integration stack's PHP_IMAGE_TAG default (.docker/integration/.env.example) is now 1.0.0-8.1.34.
  • [4.129.0] Order: deploy this release (with #895) to every pod, set $config['auth_hash_migrate_to'] = 'password-hash-mcrypt'; in the fork's application/config/auth.php, then run the job. It refuses to run without that key (null or any empty value). Back up the password column of shop_customer and users first: the job keeps no copy, and a live run prints that reminder before it writes. Dry run first: php cli.php "job/WrapLegacyPasswordHashes/dryRun=1", then php cli.php "job/WrapLegacyPasswordHashes/scope=customers"; repeat with scope=guests and scope=users. Other options: batchSize, fromId, toId. Runtime, progress SQL and details: docs/decisions/966-wrap-legacy-password-hashes.md.
  • [4.129.0] Rollback: once the job has run, do not deploy a release older than this one. Wrapped hashes do not verify on older code, so every wrapped account would be locked out until it resets its password. Removing auth_hash_migrate_to is safe.
  • [4.129.0] Check for overrides: Adv_customer_model::checkPassword() now sends a wrapped hash to Advauth::advAuthVerify(). A fork whose checkPassword() override does not route through advAuthVerify() cannot verify wrapped hashes; the job's probe finds no scheme for such a verifier and wraps nothing, so no account is locked out, but nothing is protected either.
  • [4.129.0] Check for overrides: every fork that carries application/libraries/Advauth.php must take this file's change in the upstream merge, on top of #895's. Its copy must have the public methods advAuthIsWrappedHash(), advAuthWrapLegacyHash(), advAuthIsLegacyHashOf() and advAuthAcceptedLegacySchemes() (plus #895's advAuthHasMigrationTarget(), advAuthIsPasswordHash() and advAuthNeedsRehash()), the private verifyWrappedHash() / legacyHash() and the new first branch of advAuthVerify(). The base Adv_customer_model::checkPassword() calls advAuthIsWrappedHash() on every sign-in with a legacy hash, so a copy without it fails every such sign-in with an undefined-method error. The job stops on the same error before it writes anything. Fork custom code that reads shop_customer.password or users.password directly, without advAuthVerify(), cannot verify a wrapped hash: each fork's owner checks for it before running the job.
  • [4.129.0] Check for overrides: new public Adv_customer_model::legacyPasswordSchemes() and Adv_customer_model::replacePasswordHash(). Adv_users_model::replacePasswordHash() now returns bool. Both replacePasswordHash() methods write through #895's Adv_base_model::updateWithoutHalting(), so a failed write is logged and returns false, and never halts the job, whatever db_debug says.
  • [4.129.0] Check for overrides: Advisable\Domains\Support\Request\WithParser::topLevelName() is removed, replaced by WithParser::pathNames() (one name per hop, leaf params stripped). Advisable\Rest\Order\Resources\OrderTag\Resource::addRelationToData() now emits orders for a backend context only.
  • [4.129.0] Check for overrides: a client fork with its own relations entries in application/config/rest_policies.php gets the per-hop rule too: a bare entry (vendor) now allows that hop only. Write the nested path (vendor.translations) or the subtree (vendor.*) for every nested ?with= the fork's clients send.
  • [4.129.0] Storefront clients lose nested ?with= paths that nothing rendered (Slider slides.audience, Line vendor.supplier and similar; see REST API 1.121). The WeCare order, slider and customer chains stay allowed.
  • [4.129.0] New: Adv_order_model::claimPaid(), Adv_checkout::reportPurchase(), applyOrderGifts(), rememberPlacedOrder(), isPlacedOrder(), forgetPlacedOrder(), xPayGateway(), paypalAdvancedApi(). afterSuccess() keeps its behaviour for every other success arm.
  • [4.129.0] A request to these pages for an order the session did not just place now gets the generic paymentsInactive page. A REST-placed Klarna order returning through the confirmation URL is redirected to its stored client return URL (as the other gateway arms do since #915) and no longer gets a second gift-stock decrement.
  • [4.129.0] Check for overrides: Adv_checkout::run(), apcoPaySuccess(), apcoPaySuccessFromListener(), xPaySuccess(), xPayHook(), processXPayPaymentResult(), klarnaPaymentsConfirmation(), klarnaCreateOrderSuccess(), paypalAdvancedSuccess(), afterSuccess() (the four guarded arms no longer call it; a fork extending afterSuccess() for them should extend reportPurchase() or applyOrderGifts() instead).
  • [4.129.0] Merchant config: Smart Cart orders now need SMARTCART.API_URL and SMARTCART.API_KEY (the Smart Cart section of the admin settings) to be filled in. They were already needed to accept or reject an order; a shop that left them empty now gets no webhook orders until they are set. No new key.
  • [4.129.0] Operations (optional): Skroutz publishes the webhook source IP ranges (https://developer.skroutz.gr/smart_cart/orders_webhook/, /ip_ranges.json) for a firewall allowlist at the ingress or CDN. The application does not check them.
  • [4.129.0] UI Update: application/views/admin/footer_js.php (Klarna buttons post to orders_admin/klarnaPayment/&lt;action> with klarnaCsrf; a Klarna error is now 502, not 403) and application/views/admin/orders/list.php (the buttons lose data-klarna_payments_order_id). A fork with its own copy of either view must make the same change.
  • [4.129.0] Check for overrides: Adv_orders_admin::index() now renders klarnaCsrf. A fork that overrides index() (Dioptra's Orders_admin does) must add 'klarnaCsrf' => $this->adminCsrfToken(static::KLARNA_CSRF_SESSION_KEY) to its render data, or the Klarna buttons answer 403.
  • [4.129.0] Check for overrides: removed AdvApiKlarna::cancelOrder(), captureOrder(), refundOrder(); new Adv_orders_admin::klarnaPayment() (its helpers are private). AdvSmartCart::handle() changed; new AdvSmartCart::fetchSkroutzOrder() and skroutzOrdersClient(). Adv_auth::taskCsrfToken() / verifyTaskRequest() now delegate to the new AdminCsrfTokenTrait, and a session that was never issued a task token now refuses a task POST. Adv_skroutz_orders_admin::__construct() builds its API settings through the new skroutzSmartCartApiSettings() helper.
  • [4.129.0] Check for overrides: Adv_customer::copyOrder(), Adv_badges::edit() / delete(), Adv_maps_admin::edit_point(), Adv_subcontent_admin::delete(), and the error-page helpers Adv_base_controller::error_404() / error410() and Adv_admin_controller::error_404(). A fork override of one of these helpers that does not call the parent should call $this->refuseRequest() first, or a constructor that answers 404 through it still has its action run. The WeCare fork overrides none of them.
  • [4.129.0] A fork action that calls error_404() and means to stop must return after it: the helpers still render and return. The upstream call sites are listed in docs/decisions/960-non-halting-errors.md.
  • [4.129.0] Check for overrides: AdvGiftCardOrdersModel::cancelGiftCard() is now Pending-only and returns bool (was void); the old behaviour (also delete a Completed card's coupon) moved to the new revokeGiftCard(), which the admin grid and the XPay webhook use. A fork overriding cancelGiftCard() must return bool, and a fork calling it to revoke a paid card must call revokeGiftCard().
  • [4.129.0] Check for overrides: AdvGiftCardPage::cancelGiftCard() returns bool (was void) and errorView() runs cancelPostActions() only when it returns true. Also changed: successView(), renderSuccess() (now only after a won accept), piraeusSuccessAction() (render_success replaced by render_completed, and Completed + invalid HMAC now answers render_error), paypalSuccess(), paypalCancel(), piraeusSuccess(), piraeusFail(), eurobankSuccess(), eurobankFail(), alphaSuccess(), alphaFail(), ethnikiResponse(), ethnikiEEResponse(), irisResponse() (Iris order id from the request's orderId; status through the new irisOrderStatus()), vivaWalletSuccess(), vivaWalletFail(), paypalAdvancedSuccess(), paypalAdvancedFail(), xPaySuccess(), xPayCancel(), xPayHook(). New protected: giftCardForPayway(), revokeGiftCard(), renderResolved(), renderCompleted(), irisOrderStatus().
  • [4.129.0] Check for overrides: a fork override must not call AdvGiftCardPage::renderSuccess() directly: it prints the coupon code, and only successView() may call it, after its own accept succeeded. To show a card the request did not accept, call renderResolved($orderId) (Completed → confirmation page, anything else → error page) or renderCompleted($order).
  • [4.129.0] Check for overrides: AdvGiftCardAdminListing::cancelGiftCard() now calls the model's revokeGiftCard().
  • [4.129.0] UI Update: new view layouts/gift_cards/completed (template key giftCardCompleted in application/config/mainTemplate.json) prints the new language key giftCard.message.completed (all eight locales) and never the code. It is what a buyer sees on a repeated return and, commonly, on a Viva Wallet or XPay return after the webhook has already accepted the card. layouts/gift_cards/success is unchanged. A fork that customises mainTemplate.json must keep the new giftCardCompleted key; a fork may restyle completed.php to match its success.php.
  • [4.129.0] New protected Adv_checkout methods: isPendingOrderOfPayway($orderObj, string $payway): bool, piraeusRenderFailure(string $view): void and apcoPayGateway(): ApcoPay (returns Factories::apcoPay()). New public Adv_order_model::claimCanceled($orderSerial, string $fromStatus, string $methodCalled = ''): bool, which moves an order to CANCELED only from the given status in one statement; the ApcoPay and Piraeus cancels run their side effects only when they win it, so overlapping verified requests cancel once. Regression tests: tests/Legacy/Checkout/AdvCheckoutApcoPayPiraeusCancelTest.php, tests/Integration/Legacy/Eshop/AdvOrderModelClaimCanceledTest.php.
  • [4.129.0] Check for overrides: Adv_checkout::apcopay_status(), apcoPayFailFromListener(), piraeusResponse(), piraeusCancelOrder() and piraeusValidateResponse() changed behaviour, and their signatures are unchanged. A fork that overrides any of them, or that cancels from its own ApcoPay listener method, keeps the old behaviour until it ports the same checks: the validation before the result switch, and the PENDING-order-of-this-payway guard plus claimCanceled() before it cancels.
  • [4.129.0] Before release, smoke-test a real failed payment against the Piraeus sandbox: a fail POST that lacks HashKey or a signed field is now refused, and the order waits for the sweep.
  • [4.129.0] Behaviour change for customers and support: after a customer presses Cancel on the Piraeus payment page, the order stays PENDING for up to 180 minutes, until the sweep, not CANCELED at once. Until then its coupon stays used and its stock and points stay reserved.
  • [4.129.0] New protected Adv_order::checkoutPostedOrderData(): array, new public form-validation callback Adv_order::checkCheckoutCoupon(string $couponCode = ''): bool, new protected Adv_order::isCouponValidForCart(string $couponCode): bool. Regression test: tests/Legacy/Eshop/AdvOrderCheckoutPostedFieldsTest.php.
  • [4.129.0] Check for overrides: Adv_order::checkout() (now reads the post through checkoutPostedOrderData()), Adv_order::checkoutValidationRules() (adds the coupon_code rule) and Adv_order::checkCoupon() (body moved into isCouponValidForCart(), behaviour unchanged). A fork that overrides checkout() or checkoutValidationRules() keeps the old behaviour until it applies the same change.
  • [4.129.0] Check for overrides: a fork that overrides PlaceOrderService::resolveGuestCustomer() keeps the order-dependent check until it uses findAccessibleByEmail().
  • [4.129.0] New protected AdvGiftCardPage::signedInCustomerId(): ?int and filterCustomerProfileFromPostData(array): array. Regression test: tests/Legacy/GiftCards/AdvGiftCardPageCustomerTest.php.
  • [4.129.0] Check for overrides: a fork that overrides AdvGiftCardPage::getOrCreateCustomerId() keeps the flaw until it applies the same change; one that overrides filterCustomerFromPostData() is still safe, because a signed-in update drops mail and password after it.
  • [4.129.0] Check for overrides: every fork that carries its own application/libraries/Advauth.php must take this file's new public methods in the upstream merge: advAuthHasMigrationTarget(), advAuthIsPasswordHash() and advAuthNeedsRehash(), plus the migrateToAlgo property, the constructor line that sets it, migrationTargetAlgo(), argon2iSupported(), logError(), upgradeAdminPasswordHash() and the new first branch of advAuthHash() / advAuthVerify(). This is a hard dependency, accepted deliberately: the base Adv_customer_model::generateEncryptedValues() and checkPassword() call advAuthHasMigrationTarget() / advAuthIsPasswordHash() on every customer login, registration and password change, whether or not the key is set, so a fork that resolves an Advauth.php conflict with "ours" fails on every stock-model login. Most forks carry an older, unedited upstream Advauth.php and take this one without a conflict. Three carry their own edits and need care: Dioptra and Elxis add a guest-role IP block in login(), next to the changed hunk, and Phancy adds a debug log line and productsSearch to logout's unset_userdata. A 3-way merge of this file into each of the three is clean and keeps the three new methods. When merging upstream into Dioptra, Elxis or Phancy, take upstream's Advauth.php and keep the fork's own lines on top of it. A fork whose auth.php lacks the new key reads it as null, which means no migration.
  • [4.129.0] Check for overrides: Adv_customer_model::checkCustomer() now calls the new protected upgradePasswordHash() after a row matches. A fork that overrides checkCustomer() gets no upgrade until it does the same. The base generateEncryptedValues() and checkPassword() now honour the target. A fork that overrides them gets the migration only if its overrides route through Advauth::advAuthHash() / advAuthVerify(), as WeCare's do. New Adv_users_model::replacePasswordHash(), and new protected Adv_base_model::updateWithoutHalting() (an UPDATE that turns db_debug off for that one statement, used by both upgrade writes).
  • [4.129.0] Client action: a fork on a legacy scheme enables the migration in its own application/config/auth.php after the merge: $config['auth_hash_migrate_to'] = 'password-hash-mcrypt';. For WeCare (auth_hash = 'wecare-crypt') this is the only change needed: its Customer_model hooks already route through Advauth. Pharm16 should not set the key: its hooks already write bcrypt with password_hash(), so it gains nothing.
  • [4.129.0] Rollout: with the key set, each first login on a legacy hash, and every password write (guest-order customers included), costs one password_hash(), and every later login one password_verify(): tens of milliseconds for bcrypt, more for Argon2i, instead of microseconds.
  • [4.129.0] Rollback: once the key is enabled, do not deploy a release older than this one. Upgraded rows hold bcrypt hashes, which the older code cannot verify, so those customers would be locked out until they reset their password. To stop a migration, remove the key and keep the code: upgraded hashes still verify.
  • [4.129.0] Any empty auth_hash_migrate_to value (null, false, 0, '0', '') means no migration. Any other value that is not one of the two schemes, or password-hash-argon2i on a PHP build without Argon2, also means no migration and writes an error log entry naming the value (… password migration is off) each time Advauth is constructed. It never stops a request: logins keep the auth_hash scheme until the value is fixed, so check the error log after setting the key.
  • [4.129.0] To measure progress, count the registered shop_customer rows whose password is still 40-hex. The query, and the open question about accounts that never log in again, are in docs/decisions/895-rehash-legacy-passwords.md.
  • [4.129.0] New config: REST_AUTH_MAX_SESSIONS_PER_USER (default 10, minimum 1), documented in .env.example; container parameter rest.auth.max_sessions_per_user.
  • [4.129.0] BEHAVIOR CHANGE for REST clients: a login no longer ends other sessions, logout and reuse end one session, and POST /rest/customer/me/password now ends the customer's other sessions (a client on another device gets 401 at its next refresh and must sign in again). No request or response shape changes; the access JWT data gains sid. This supersedes the "a login still replaces the whole session" sentence of 1.115.
  • [4.129.0] Check for overrides: signatures changed in Advisable\Rest\Auth. A fork that overrides or calls these must reconcile:
    • RefreshTokenModel::save(): $userType is now required (it had a default) and a required string $familyId follows it.
    • RefreshTokenModel::delete($userId, $userType) is removed (its only caller was Tokens::generateRefreshToken()). To end every session of a user, delete by user_id/user_type as Adv_customer_model::revokeRestSessions() does.
    • RefreshTokenModel::rotate() takes a required sixth string $newFamilyId (the family a '' row is moved into) and now returns {user_id, token, family_id}; revoke() ends the presented token's session only. New: revokeFamiliesExcept(), evictLeastRecentlyUsedFamilies().
    • Tokens::generateRefreshToken() now returns array{refresh_token, family_id} instead of a string; Tokens::rotateRefreshToken() also returns family_id; Tokens::generateAccessToken() takes an optional fourth ?string $sessionId (the sid claim).
    • Config has a new last constructor argument int $maxSessionsPerUser (after refreshGraceSeconds), wired from the new container parameter. A fork that builds Config by hand or re-registers the service without that argument gets the default of 10.
    • Advisable\Rest\Customer\Controllers\Customer takes a RefreshTokenModel as a new last constructor argument, and ResourceContext has a new optional last constructor argument and getSessionId(). A fork that extends the controller or constructs these must pass them. Customer::changePassword() now wraps the revocation and the write in a transaction on the shared connection.
    • Adv_customer_model::changePassword() (legacy, ecommercen/eshop/models/) now throws RuntimeException when the UPDATE reports a driver error and returns false only when no row was updated. A fork that overrides it must keep both, or the REST password change can report a failed write as success.
  • [4.129.0] UI Update: the WeCare app (and any client) should treat a 401 on refresh as "signed out on this device" and may rely on its refresh token surviving a sign-in elsewhere; it may ignore sid.
  • [4.129.0] Hashing refresh tokens at rest stays a separate follow-up. Decision record: docs/decisions/954-per-device-sessions.md.
  • [4.129.0] REST version 1.120 (BEHAVIOR CHANGE, both endpoints, new 502 {success:false, message, error:{code:'payment_cancel_failed', payway&#125;&#125;). Client action: show "could not cancel right now" and offer a retry; the order is unchanged, so retrying is safe.
  • [4.129.0] New PaymentConfirmationService::cancelByCustomer() (the two customer endpoints call it; cancelPayment() is unchanged and still used by the PayByBank poll). The constructor takes a new PayByBankGatewayCanceller argument.
  • [4.129.0] New Domains\Checkout\Payment\PayByBankGatewayCanceller is the one place that cancels a Pay by Bank order at the gateway and writes the pbb_logging row (best-effort: a failed log write is logged as an error and does not change the outcome). After a 200 cancel answer it reads the order's status at PayByBank and reports a refusal when the gateway has it PAID or COMPLETED, so a paid order is never cancelled and restocked through a customer cancel; an unreadable status keeps the 200. AdvCancelIncompleteOrders::cancelPendingPayByBank() and the admin batch cancel Adv_order_model::setBatchCanceled() use it; the admin batch cancel still cancels locally whatever PayByBank answers, and now logs a successful gateway cancel as called_for='cancel' (it wrote 'order'). PayByBank\PayByBank now sets timeout 10 s and connect_timeout 5 s (new optional PayByBank\Config arguments), takes an optional Guzzle client, and answers error code 10002 (no response) instead of 10001 for a network failure; 10001 now means PayByBank answered 4xx/5xx. Every PayByBank client is now built by PayByBankClientFactory (directly, or through Factories::payByBank()); the six places that built it by hand no longer do.
  • [4.129.0] Check for overrides: a fork that constructs PaymentConfirmationService or PayByBankGatewayCanceller itself, overrides AdvCancelIncompleteOrders::cancelPendingPayByBank(), Adv_order_model::setBatchCanceled(), Adv_orders_admin::createAdminPayByBankOrder() or AdvPayByBankGetStatus::payByBankFactory(), or builds PayByBank\PayByBank / PayByBank\Config directly should reconcile with the new constructor arguments, the canceller and the timeouts. Adv_order_model::handlePayByBankCancelError() / handlePayByBankCancelSuccess() are removed; an override that calls them should call PayByBankGatewayCanceller::cancel() instead.
  • [4.129.0] Check for overrides (port in the same upstream merge, or the admin batch cancel fatals): nine forks call the two removed methods from their own application/modules/eshop/models/Order_model.php. After the merge, cancelling a Pay by Bank order from the admin orders list throws Call to undefined method, and no compile-time check catches it. The forks, with the lines of the two calls on each fork's branch tip as of 2026-11-01: Bluestore (:2066,2068), Edructer (:2103,2105), Flioukas Vision (:458,460), Heals (:374,376), i-natural (:48,50, in its own setTempBatchCanceled()), Nautilus (:62,64), Optika Liolios (:496,498), Pharm16 (:119,121) and Pronomio (:56,58); the others in setBatchCanceled(). Found by searching every fork's code on Bitbucket for both method names; no other fork-owned file calls them. The port: in the if ($orderObject->payway === 'paybybank') block of the override, replace the hand-built new PayByBank(new Config(...)) (fully qualified in i-natural), the cancelOrder() call and both handlePayByBankCancel*() calls with $this->payByBankGatewayCanceller()->cancel((string) $orderObject->order_serial);, as upstream's setBatchCanceled() now does. Keep the fork's own local-cancel lines after it unchanged. A fork that calls cancelPayment() from its own customer-facing cancel path should call cancelByCustomer() instead.
  • [4.129.0] Check for overrides: Adv_customer_model::getCustomerBy() and Adv_customer_model::getRegisteredCustomerIdByEmail() (bodies changed; a fork override keeps its own row order), Adv_customer::deleteUser() (now calls the new Adv_sanitize_model::sanitizeAccount(); a fork override that still calls sanitizeAll() erases only the signed-in row), AdvGiftCardPage::validationRules() (new mail rule; a fork override must add it to get the check) and the new protected AdvGiftCardPage::createsRegisteredCustomer(), Advisable\Domains\Customer\Customer\AccountDeletion\AccountDeletionService::deleteWithPassword() (now calls eraseAccount()).
  • [4.129.0] CustomerErasure now reads the rows and addresses it erases inside its own transaction, locking the same-address rows, so a self-deletion holds row locks on that address until it commits.
  • [4.129.0] No merge of existing duplicate rows and no unique index: which row survives a merge is a support decision.
  • [4.129.0] DELETE /rest/customer/me answers exactly as before (it erases more). No DB migration, config or view change.
  • [4.129.0] Additive REST change, version 1.119. Sources: ESHOP.DEFAULT_POINT_FACTOR, ESHOP.REWARD_NEW_CUSTOMER + POINTS_TO_NEW_CUSTOMER, EMAIL_FOR_BIRTHDAY.IS_ENABLED + POINTS_TO_ADD + REPEAT (months; 12 when never saved, 0 = once), ECOMMERCEN_PLUS.CUSTOMER_REVIEW_REWARD_ENABLE + CUSTOMER_REVIEW_REWARD.
  • [4.129.0] earn.basis is discountedNet: what REST checkout applies (round(netUnitPrice × pointFactor)), regardless of ESHOP.POINT_FACTOR_TYPE (#576). A product's multiplier is pointFactor / earn.pointsPerCurrencyUnit.
  • [4.129.0] The ProductResource.pointFactor OpenAPI description no longer says round(price × pointFactor) (text only).
  • [4.129.0] A null here never means the point system is off; that gate is loyalty on GET /rest/features.
  • [4.129.0] Check for overrides: Advisable\Domains\StorefrontConfig\Loyalty\LoyaltyConfigResolver::resolve() returns four more keys, and gains private helpers. A fork that aliases or extends it (Custom\...) must return the new keys, or the contract loses them; a fork that does not override it receives the change on upstream merge. public/openapi.json is regenerated at release.
  • [4.129.0] REST 1.118 (behaviour change, no shape change). Regression test: tests/Integration/Legacy/Rest/Auth/CustomerRegisterGuestEmailTest.php.
  • [4.129.0] Check for overrides: a fork that overrides CustomerAuth::register() keeps the old guest-row refusal until it applies the same one-line change.
  • [4.129.0] The seo/metatags entry in application/config/admin_menu.php widens from Advisable-only to the same six roles, so Admin, Marketing, Developer, Media and Products now see the menu link. They could already reach the page by URL; now they are explicitly allowed.
  • [4.129.0] Check for overrides: a fork that overrides application/config/admin_menu.php does not get the menu change. Update the seo/metatags child roles by hand. A fork menu that grants seo/metatags to a role outside the six keeps showing the link, but the page now returns a 401. Either add that role to the controller's allow-list or narrow the fork's menu.
  • [4.129.0] Check core files: a fork still on a pre-#936 system/core/CodeIgniter.php / system/core/Common.php renders the 401 page but still runs the action. The gate only halts once the fork has the #936 core files (dispatch_controller_method() and requestRefused).
  • [4.129.0] New protected Adv_product_reviews_model::isValidYmdDate($value): bool. Regression test: tests/Legacy/Eshop/AdvProductReviewsModelFixAdminSearchDateTest.php.
  • [4.129.0] Check for overrides: no local fork overrides fixAdminSearch() on the product-review model, so every fork receives the fix on upstream merge. A fork that overrides fixAdminSearch() in its own review model should apply the same change.
  • [4.129.0] Check for overrides (not fixed by the merge): the Dioptra and Elxis forks carry their own fork-owned application/modules/persons/models/Persons_review_model.php (around lines 121-123) with the identical raw review_date >= '{$conditions['date_start']}' pattern. An upstream merge does not fix it; those forks need their own fix.
  • [4.129.0] REQUIRES an image rebuild for image-deployed (Docker/K8s) tenants. Until the image is rebuilt, /builder-assets/menu-icons/*.png and /builder-assets/content/* do not exist in the docroot.
  • [4.129.0] Infra step, per shop: after the rebuilt image is deployed, each image-deployed shop's production nginx K8s ConfigMap must serve /builder-assets/ statically, the same way ui|files|favicon|media|sitemap are. Verify with curl -I https://&lt;shop>/builder-assets/menu-icons/landing-page-1-thumb.png (expect 200 and content-type: image/png).
  • [4.129.0] Plesk/Apache tenants are unaffected: public/.htaccess rewrites to index.php only when the request is !-f, so existing files are served directly.
  • [4.129.0] Client forks: edructer carries a client hotfix (4b146beb9) with the same COPY public/builder-assets line at the same spot (right after public/robots.txt), plus two # CLIENT HOTFIX comment lines. The next upstream merge into edructer will conflict on that hunk. Resolve it by taking upstream's version (drop the comment lines), leaving a single COPY public/builder-assets line in app.dockerfile.
  • [4.129.0] New protected extension point Adv_loyalty::claimOrderPointsMark(string $orderSerial, bool $state): bool. It flips points_added only when the row holds the opposite value and returns true for the single caller that won the claim. setOrdersMark() stays public and unchanged.
  • [4.129.0] Check for overrides: a fork that overrides saveProductPointToCustomers() or removeProductPointFromCustomers() does not inherit the fix. Heals does this without parent::; its application/libraries/Loyalty.php calls setOrdersMark() at :64 and :116.
  • [4.129.0] Both methods must run outside an open transaction. CI3 nests transactions by depth counter only, so inside a caller's transaction the per-order rollbacks do not apply and the outer transaction decides. None of the current award or reversal call sites opens one.
  • [4.129.0] Check for overrides: farmakonXml2Array() now takes an optional ?string $localZipPath and parses that file; called with no argument it reads farmakon/{zip_file_name} from private storage. A fork's no-argument replacement still runs (PHP ignores the extra argument) but must read the path it is given to parse the run's file; one that reads {folder}/Products.xml will log "file not found" and fail the sync.
  • [4.129.0] Check for overrides: Farmakon::syncProducts() now throws RuntimeException on fetch or parse failure and returns on success, so the job is recorded as JOB_FAILED. A fork's copy that still ends with exit or calls Farmakon::logAndExit() keeps the old behaviour.
  • [4.129.0] Check for overrides: new Farmakon::fetchProductsZip(): ?string, which Farmakon::syncProducts() now calls. Farmakon::fetchFarmakonXml() is deprecated and no longer called by Farmakon::syncProducts(), so a fork that overrides fetchFarmakonXml() must move that logic to fetchProductsZip(). The download no longer follows redirects, so a 3xx response fails the fetch.
  • [4.129.0] Check for overrides: new Farmakon::failSync(); Farmakon::logAndExit() is deprecated. The folder key is dropped from application/config/farmakon.php; a fork's copy that keeps it is harmless.
  • [4.129.0] Check for overrides: four new function_exists-guarded global helpers, farmakonParseProductsZip(string $zipPath, string $xmlEntryName, callable $resolveVat): ?array, farmakonReadXmlNodes(), farmakonDownloadProducts() and farmakonFetchProductsZip(): ?string, are now defined in ecommercen/helpers/farmakon_helper.php. A fork that already defines a function with any of these names will have its version used instead.
  • [4.129.0] Check for overrides: a fork's application/helpers/farmakon_helper.php is loaded alongside ecommercen/helpers/farmakon_helper.php, not instead of it (MY_Loader::ecomnHelper() includes the application copy first, then the base copy). A function the fork copy defines is only safe if the base copy guards the same name with function_exists; otherwise PHP fails with "Cannot redeclare". farmakonGetXml() is now guarded, and farmakonPostCustomer() and farmakonPostOrder() became guarded in #1002, but get_discount_percentage() and calculateOrderVats() are still not, so a fork copy that redefines either of them must drop it. A fork copy that only carries an old farmakonGetXml() (the folder path and exec(unzip)) is no longer called by Farmakon::syncProducts() and can be deleted.
  • [4.129.0] Behaviour change: a failed upload of the zip to the private disk no longer stops the sync: it logs an error (Farmakon: farmakonFetchProductsZip: could not store the zip in private storage …) and the run parses the local download. Only a failed download, a temp-file error or a parse failure fail the job.
  • [4.129.0] Behaviour change: the download now fails on any HTTP status other than 200 (previously the status was ignored), and each request has a 10 s connect / 600 s total (per request) timeout.
  • [4.129.0] Ops: /tmp must be writable, which on K8s may need an emptyDir. The stored zip farmakon/products.zip on the private disk is new. Earlier runs left files in public/farmakon/, which sits inside the web docroot and may hold the full ERP catalogue (Products.xml, products.zip); delete the public/farmakon/ directory on every server that ran the sync before this release. Nothing deletes it automatically.
  • [4.129.0] Ops: the Adv_Farmakon constructor, shared by the product sync and the order post, now logs why Farmakon will not run before its unchanged exit: a warning "Farmakon: the integration is disabled (registry FARMAKON IS_ENABLED); nothing to do." when IS_ENABLED is off, and an error "...enabled but the registry FARMAKON ADDRESS is empty; nothing was synced or posted." when it is enabled without an address. The warning is only visible where APP_LOG_THRESHOLD is WARNING or lower, while the error shows at the usual ERROR threshold. The exit itself is unchanged.
  • [4.129.0] Ops: every Farmakon log line now starts with Farmakon: &lt;function>: (log levels are unchanged). For example, farmakon UploadPelates error code reported from curl: … is now Farmakon: farmakonPostCustomer: UploadPelates error code reported from curl: …, and cron farmakonPostOrders customer with id: … not found is now Farmakon: processOrder: cron farmakonPostOrders customer with id: … not found. Log searches or alerts keyed on the old message text must be updated; searching for Farmakon: now finds every line the integration writes.
  • [4.129.0] UI Update: GET /rest/promotion/gift/active is unauthenticated (auth => guest), and two of its queries reached the product catalogue with no visibility predicate: the choices relation, whose ChoiceResource publishes gift_choices.option_type_id raw, and the gift-picture lookup behind giftImage / giftName / giftSlug. Both now apply the storefront rule (shop_product.active = 1 AND shop_product.soft_delete = 0) from the single ProductVisibilityScope definition, so an anonymous caller can no longer enumerate the ids of hidden gift products, nor retrieve their picture, name or slug. On a rule that is still returned, choices carries only its visible product choices (plus any vendor choices), and giftImage / giftName / giftSlug describe one of those visible products — or are null where that product has no main image or no translation for the request language. A rule whose gift products are ALL hidden is not returned with empty choices and three nulls; it is dropped outright, per the paragraph below. Either way this removes ROWS and never KEYS: every returned rule still carries exactly the same twenty keys. A vendor choice ROW (option_type != 1) is deliberately untouched by the visibility rule, since it has no product row that rule could apply to — but read that as a statement about the ROW, not the RULE: giftImagesFor() looks only at option_type = 1, so a rule whose ONLY choices are vendor choices yields no key and is dropped by the new filter below. In production such a rule was already being dropped before this change, by the in-stock filter — legacy's own post-filter and LegacyGiftChoiceStock::inStockChoicesFor() both inspect only the PRODUCT bucket (Adv_gifts_model.php:1749; LegacyGiftChoiceStock.php:36-47, which omits the gift id entirely when that bucket is empty) — so on a stock upstream install this is not a new outcome. A rule left with no visible gift choice at all is now dropped from the response entirely — it is not an offer, and returning it would announce a gift the endpoint cannot name. Rule type 13 (cheapest-free) is exempt, as it already is from the in-stock filter: its pool comes from the cart, so it keeps no gift_choices rows of its own. Note what this does not claim: the legacy availability chain does not ignore product visibility (Adv_gift_choices_model::getOptionsWithActiveStockForGiftIds():44 drops a pool member whose availabilityStock &lt;= 0, and Adv_product_parser_model::setAvailabilityStock():556-563 zeroes that for !active / soft_delete), so a hidden-but-stocked product was already dropping its rule. The case this closes is the isset() on that same line: a choice pointing at a hard-deleted product is absent from the availability result, skips the guard, and keeps its rule alive. pagination.total still counts the SQL window, now before both post-filters, so a page can be empty while has_next is true. THIS IS A DELIBERATE DIVERGENCE FROM LEGACY, NOT A PARITY FIX.Adv_gifts_model::getActiveGiftRules() applies no active / soft_delete predicate anywhere on this chain — its only WHERE constrains the gifts table itself (date window, active, remaining) — so the legacy homepage gift slider still renders rows this endpoint now withholds, and the two surfaces will disagree until legacy is scoped separately. Legacy also never published the raw choice id at all; that is new to the REST endpoint, which is what made the disclosure an enumeration handle rather than a cosmetic one. One surface is deliberately left unscoped: requirementDisplayFor()'s requirementName / requirementImage / requirementSlug. It publishes no raw id (only a 1/2 discriminator), so it is not an enumeration handle, and legacy publishes the same requirement fields to anyone. Scoping it was considered and ruled out of scope for this change. A backend (admin) caller is the exception: the platform grants it Relation::VISIBILITY_EXEMPT_ALL on every route, so an admin JWT on this guest endpoint still receives UNSCOPED choices, while the gift picture, name and slug and the drop-a-rule step stay scoped. This is deliberate and documented rather than exempted further, and it is not a disclosure: backend callers are authenticated. Known narrow gap: the in-stock filter and the visible-choice filter test different choices (some in-stock choice vs some visible product choice), so a rule kept alive only by a dangling (hard-deleted) choice plus a visible but out-of-stock product still passes both and names a gift it cannot give. It sits next to the legacy isset() dangling-reference case above and is not closed here.
  • [4.129.0] Check for overrides: FIVE seams changed — two constructors that gained a required Advisable\Domains\Product\Product\ProductVisibilityScope dependency (both autowired upstream), two Service methods and one Repository method. They are listed together and in order of how LOUDLY each fails, because the last two are silent until a request arrives:
    • Advisable\Domains\Promotion\ActiveGift\Repository\RepositoryConfigurator::__construct() — was (), now (ProductVisibilityScope $productVisibilityScope).
    • Advisable\Domains\Promotion\ActiveGift\Repository\Repository::__construct() — was (RepositoryConfigurator $configurator, ?CI_DB_query_builder $db = null), now (RepositoryConfigurator $configurator, ProductVisibilityScope $productVisibilityScope, ?CI_DB_query_builder $db = null). The optional $db moved from position 2 to position 3, so an existing positional new Repository($configurator, $db) does not merely under-supply an argument — it passes the builder where the scope is expected and dies with a TypeError.
    • Advisable\Domains\Promotion\ActiveGift\Service::decorate() — was (array $entities), now (array $entities, array $giftDisplay). Unlike a constructor, an ordinary method is subject to LSP, so a fork subclass overriding the one-argument form fatals at class-declaration time with "Declaration … must be compatible". That is the intended failure: a fork silently keeping the old body would silently keep serving the rules the UI Update above now drops. project() fetches the gift-side lookup once and passes it down, so the class still issues three batched queries per page.
    • Advisable\Domains\Promotion\ActiveGift\Service::project() — signature unchanged, body contract changed, which makes it one of the two quietest. It now issues the gift-side lookup itself and passes the map into decorate(). A fork subclass overriding it declares cleanly — there is no LSP fatal to warn anyone — and then dies at request time with ArgumentCountError: Too few arguments to function … decorate(), because the old one-line body (return $this->decorate(array_values($this->withInStockChoice($entities)));) calls the two-argument method with one argument. Take the upstream body, or call decorate($entities, $this->repository->giftImagesFor($ids, $lang)) from your own.
    • Advisable\Domains\Promotion\ActiveGift\Repository\Repository::giftImagesFor() — signature unchanged, body contract changed, the same way project()'s was. It is now both a scope site (it applies ProductVisibilityScope::relationScope() to the query) and the membership oracle for the visible-choice filter: Service::project() reads the KEY SET of its result to decide which rules to drop. A fork that overrides it and keeps the old unscoped body declares cleanly, reopens the name / slug / image disclosure for hidden products, and changes which rules are dropped (a rule whose only choices are hidden gets a key again and is returned). Take the upstream body, or apply the scope and keep the rule that a rule with no visible product choice yields no key at all, while a visible product with nothing to show yields a key with null values. PHP does not apply LSP to constructors (verified, not assumed: a subclass may declare an incompatible __construct() with no error at class-declaration time), so an extends-based override does not fatal on merge. It fails later, in one of three ways, and a fork should know which one it is looking at:
    • a subclass that calls parent::__construct() with the old argument list — and which error that is differs between the two classes, measured rather than assumed. For RepositoryConfigurator the old list is the no-arg call, so it is ArgumentCountError: Too few arguments, at construction. For Repository the old list is parent::__construct($configurator, $db), which is not an arity error at all: the new third parameter is optional, so two arguments satisfy the count and $db — a builder or null, both alike — lands in the ProductVisibilityScope slot. That is a TypeError on argument #2, the same failure as the positional call site above. ArgumentCountError reaches Repository only from a parent call that passed $configurator alone;
    • a subclass that never calls the parent → Error: Typed property … must not be accessed before initialization, later, when the relation or the gift lookup is first used;
    • any direct new RepositoryConfigurator() / new Repository($configurator, $db) call site → ArgumentCountError / TypeError at that call site. A fork that copies the configurator wholesale (rather than extending it) and aliases its copy over the upstream class gets the quietest outcome and the one to watch for: it constructs fine, the container compiles, and the relation simply comes back unscoped — the guest disclosure stays open with a green suite. Promotion\GiftChoice\Repository\Repository is not a registered target in RelationConfigurationTest::scopeBearingTargetRepositories(), so the positive-coverage invariant does not catch that copy. Take the upstream constructor and the visibilityScope: argument, or restate both in the fork's own copy. Advisable\Domains\Product\Product\ProductVisibilityScope is not purely additive on its override surface, because the one seam that used to be sufficient no longer is. Before this change relationScope() was the only override point, so a fork that subclasses (or DI-aliases) the class and overrides relationScope() retargeted every consumer. Now relationScope() is itself built from the new visibilityRule(), and the new foreignKeyScope() builds from visibilityRule() directly: it never calls relationScope(). Such a fork's rule therefore still reaches giftImagesFor() and the ten existing relations (all of which consume relationScope()), but not the new choices relation, which silently keeps the upstream rule (active = 1 AND soft_delete = 0) while the rest of the fork's rule is applied elsewhere. Remedy: override visibilityRule() (protected, returns column => required value), which both shapes follow; override foreignKeyScope() too only if the fork's rule is not a set of column equalities. Beyond that the class is additive: it gained two new methods (plus a private const PRIMARY_KEY) and removed nothing: foreignKeyScope(string $foreignTable, string $foreignKeyColumn): \Closure (public — the same rule as a correlated EXISTS, for a query that holds only a foreign key to shop_product and cannot join it) and visibilityRule(): array (protected — the one place the two columns and their values are written, late-bound so a fork subclass can retarget the rule and have both shapes follow). relationScope()'s body was rewritten to build from visibilityRule(), but its signature and the two clauses it emits are unchanged, in the same order, so the ten relations already consuming it and its two direct-read consumers (Cms\Reel\Repository\Repository::productIdsFor() and the gift lookup above) are unaffected. foreignKeyScope() validates both identifier arguments against /\A\w+\z/ and throws InvalidArgumentException otherwise, because it interpolates them into raw, UNESCAPED SQL. Note what that does and does not buy a fork: the throw fires where the method is CALLED, which for the one upstream caller is inside a configurator's getRelations() and therefore when the owning repository is first instantiated — under a compiled container, the first request that resolves it. It is not a build-time gate: composer run check-container only compiles the container and instantiates nothing, and reports Container OK with a deliberately mis-wired caller in place (measured). So a fork passing a computed table or column name gets a named exception at first use instead of malformed SQL, and should not expect CI to catch it. Advisable\Domains\Promotion\ActiveGift\GiftChoiceStock is a sixth seam of a different kind — an aliased container interface, so a fork may bind its own implementation, and one particular implementation changes behaviour here. Upstream's LegacyGiftChoiceStock reports only the PRODUCT bucket, so a rule whose choices are all VENDOR rows never reaches the new filter — it was already dropped by the in-stock filter. A fork whose implementation ALSO reports the vendor bucket kept such rules before this change and loses them now, because the new filter asks giftImagesFor(), which is product-only. If that is your fork, the rules to look for are vendor-only gift pools; there is no flag to turn this off, so raise it rather than working around it locally.