Appearance
<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>
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$nowbutGraphService::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 madePriceDropRefresherMemoryTest, 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) andfarmakonPostOrder()(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 asfarmakonDownloadProducts(), #942), theErrorheader is absent or empty (matched case-insensitively, so a lowercaseerrorheader is now caught), the body is well-formed XML and thePelates/Ordersnode reportsSTATUS1. Every other outcome returnsfalseand logs oneerrorline that starts withFarmakon: farmakonPostCustomer:orFarmakon: farmakonPostOrder:and names the customer or order id: the unexpected status, theErrorheader value, the client exception message, or, for invalid XML or a missing/non-1STATUS, 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 inAdv_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-trackergoes from ^3.2 to ^4.0 (locked 4.0.1), which no longer callscurl_close().ecommercen/media-streamgoes from 4.0.0 to 4.4.3 (exact pin), which dropscurl_close()andimagedestroy(). 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\MatomoTrackingnow normalizes what it forwards to the 4.x tracker, so its typed parameters cannot throwTypeError. Its public signatures and all call sites are unchanged. Regression tests are intests/Unit/Analytics/MatomoTrackingTest.php(#979). - [4.129.0] test(tests): make
composer test:fastactually 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 basestests/DatabaseTestCase.phpandtests/CiDatabaseTestCase.phpand PHPUnit 10.5 does not inherit group attributes. All 282 concrete subclasses of those bases now declare#[Group('database')]themselves, includingtests/Legacy/Eshop/AdvProductReviewsModelFixAdminSearchDateCompiledSqlTest.phpin the Legacy suite.vendor/bin/phpunit --list-groupsnow listsdatabase. A new Unit guard,tests/Unit/Tests/DatabaseGroupCoverageTest.php, fails, naming the class, when a concrete test class undertests/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_STRICTis removed fromCI_Exceptions::$levels.fgetcsvnow passes its escape argument explicitly (InitialSeed.php,Adv_products_admin.php).xml_set_object()is replaced by array callables inXmlrpcandXmlrpcs. Themysqliandadvmysqlidrivers'reconnect()checks the link withSELECT 1instead ofping(). Session ID length handling is gated on the PHP version.pdo_mysql_driverpicksPdo\Mysql::ATTR_*constants on PHP 8.4+, through two new protected methods_mysql_attr_name()and_mysql_attr().MYSQLI_TYPE_INTERVALis guarded bydefined().groupVendorsNames()intheme_helper.phpreadsord()of the first byte only. Thembstring.internal_encodingandiconvinternal-encodingini_setcalls inCodeIgniter.phpare removed.BelongsToLoaderno 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
ServerFactoryTestnow run (Rest goes to the Integration suite, Mcp to the Database suite); container tests no longer depend oncache/container.php; a PHPUnit guard fails on orphanedtests/Integrationentries;JWT_ENCRYPTION_KEYgets a non-secret dummy default inphpunit.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_freeandopenssl_free_key(33 calls), along withSimpleImage::__destruct(), which only calledimagedestroy, and its explicit call at the end ofSimpleImage::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.phpcut 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 = nullto?Type $x = null, inecommercen/(eshop, auth, events, core, doofinder, variations, job, product_bundles),system/libraries/Encryption.php,src/(CartProductCustomizationSchema includingSchemaInterface, Transporters/DailyCourier, Stripe, MetaConversionsApi, Analytics, ProductBundles, Services, SmartPoints, VideoStream) andtests/Integration. Done with Rector'sExplicitNullableParamTypeRector; only the parameter types change.mixed $x = nullis left unchanged (it is legal, and?mixedis a compile error).?Type $x = nullmeans 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 undersystem/), andMX_ControllerandMX_Loader(application/third_party/MX/), plusAdvisable\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::$loggerandYubotoOmni::$logger(protected NamedLoggerInterface),BulkerSms::$config(protected array) andBulkerSms::$logger(protected NamedLoggerInterface).CI_Model,CI_Session,CI_DB_resultand the unused fallbackCIclass inapplication/third_party/MX/Ci.phpare 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/rectorandphpcompatibility/php-compatibility(^10.0@alpha, withdealerdirect/phpcodesniffer-composer-installer) are newrequire-devpackages.rector.phpruns the PHP 8.4 and 8.5 sets oversystem/,application/,ecommercen/,src/andpatches/with the rules that emit 8.4+-only code skipped, so every suggestion stays valid on PHP 8.1..phpcs-compat.xmlchecks the same trees for PHP 8.1 to 8.5 compatibility and is separate from.phpcs.xml, sovendor/bin/phpcsgives the same results as before. Both are reports, not CI gates, and no Rector change is applied. Run them withcomposer run rector:dry-runandcomposer run php-compat. WithAPP_LOG_DEPRECATIONS=true,_error_handler()inapplication/helpers/log_helper.phpalso appends one line[date] E_DEPRECATED: message in file:linefor each distinct deprecation (once per PHP process) toAPP_LOG_DEPRECATIONS_FILE(defaultapplication/logs/deprecations.log;php://stderrfor 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 newOutboxStore::deliveryCount(). - [4.129.0] fix(jobs): a per-minute job is scheduled for the whole next 24 hours again (#984).
AdvCreateJobSchedule::getTodayJobDates()askeddragonmantank/cron-expressionfor 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 thenotificationsqueue the dailyPruneNotificationsrow then keptAdvJobQueueManager::initializeJobs()from creating the next batch until 03:40, soDispatchNotificationsdid 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.12builds five targets tagged1.0.0-8.5.12on 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 oncomposer 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.versionsand8.5.versions, loaded bybuild-common.sh. Outside CI,build-php.shtakes the PHP version fromPHP_IMAGE_TAGin.docker/integration/.envwhen that file exists, so the PHP images you build match the ones the local stack runs; otherwise, and forbuild-app.sh/build-node.shalways, thebuild-common.shdefault8.1.34applies, and--php-versionoverrides both. The.versionsfiles are parsed, not sourced, and.docker/scripts/ci/tests/build-php-versions.test.shcovers the loader and the.envread. The 8.1.34 image is unchanged:php -mand--rioutput, 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
1d7dec178a09on branchPHP-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.dockerfileapplies.docker/images/patches/php-8.1-CVE-2026-109618-109619.patchafter extracting the tarball and before./configure. The new tags areecommercen/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
WrapLegacyPasswordHashesreplaces every legacy password hash (md5, sha1, the stock salted sha1) with a marked bcrypt hash of it,$wrap1$<scheme>$<hex salt>$<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 withpassword_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.orderson the order endpoints. The Order policy declares arelationsallow-list (customer:customer.country.*,basket.productCode.*,store.*),RelationFilterMiddlewarechecks every hop of a nested?with=path instead of the first, andOrderTagResourceemitsordersto 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_ticketfrom 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 toPOST /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) whenSMARTCART.API_URLorSMARTCART.API_KEYis not set or the fetch fails. - [4.129.0] fix(security): an error page stops the action (#960).
customer/copyOrder/<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()anderror410()now record a refusal aserror_401()does since #936, so a controller whose constructor answers 404 (Adv_data_importsoutside the CLI,AdvVideoShowcaseAdminwith 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
PENDINGorder (#958).Adv_checkout::apcopay_status()now checks the posted message with ApcoPay before it acts on any result, where it used to check only anOK.apcoPayFailFromListener()cancels only aPENDINGapcopayorder. On Piraeus, the fail POST needs a valid HashKey and aPENDINGpiraeusorder. The success POST needs apiraeusorder, and a failed HashKey no longer cancels. The cancel return, which carries no signature, shows the cancelled message and leaves the orderPENDINGfor the incomplete-orders sweep (180 minutes) to cancel.piraeusValidateResponse()now usesAdvisable\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_rewardare ignored, so a loyalty redemption is recorded only from the points actually debited. A postedviva_paywayis 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']inapplication/config/auth.php(password-hash-mcryptorpassword-hash-argon2i;nullby 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 inpassword_hash()format is checked only withpassword_verify(), never with the md5/sha1 comparison. The login result never changes, even withdb_debugon: a failed upgrade write is logged. It covers every legacy scheme inAdvauth(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,saltisNULL. The legacy md5/sha1 comparisons now usehash_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/passwordnow ends every other session of the customer and keeps the caller's, which it recognises by a newsidclaim (the family id) in the access token; an access token withoutsid(issued before the deploy) ends all of them. The revocation and the password write now run in one transaction, so a failure answers500and changes nothing, andAdv_customer_model::changePassword()throws on a failed write instead of reporting it as success. A user holds at mostREST_AUTH_MAX_SESSIONS_PER_USERlive 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}andPOST /rest/order/order/{id}/cancelused 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 502payment_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()ordersid ASC(the rowcheckCustomer()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 newCustomerErasure::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→loyaltynow 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 }andreviewReward. Each isnullwhen the merchant does not offer it (setting missing, off, zero, negative or non-numeric).spendPointsandrewardCashPerUnitare unchanged. - [4.129.0] fix(rest/auth):
POST /rest/auth/customer/registerno longer refuses an email that exists only on guest orders (#894). It answered 409 for anyshop_customerrow 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 callsallowRole()and returns a 401 for any role outsideAUTH_ROLE_ADVISABLE,AUTH_ROLE_ADMIN,AUTH_ROLE_MARKETING,AUTH_ROLE_DEVELOPER,AUTH_ROLE_MEDIAandAUTH_ROLE_PRODUCTS. The single constructor gate coversindex,add,edit,deleteandupdateorder. 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 thatfixWhereCondition()applies with escaping off.Adv_product_reviews_model::fixAdminSearch()now adds it only when it is a strict, round-trippedY-m-ddate, 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-assetsso the admin page builder's block thumbnails and template placeholders load on image-deployed tenants (#943)..docker/images/app.dockerfilenow copiespublic/builder-assetsinto the image (app_builder_composerstage), 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()andremoveProductPointFromCustomers()claim each order'spoints_addedflag 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 inerrorinstead ofsuccess. 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 newFarmakon::fetchProductsZip(), which calls the newfarmakonFetchProductsZip(). That helper downloads the catalogue into a single unique temp file (sys_get_temp_dir()):farmakonDownloadProducts()writes every page through one Guzzlesinkinto that file (no part files), then the zip is uploaded to the private disk asfarmakon/products.zip, kept as a retained copy, and the temp file path is returned. If that upload fails, anerroris 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), andsyncProducts()deletes the file in afinallyright after the parse, before the product loop. The zip is extracted withZipArchive(nounzipbinary orexec()needed) and the XML is streamed withXMLReader(BARCODESpass, thenAPOTIKHpass) 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 anErrorheader.farmakonGetXml()is kept as a wrapper (fetch, store, delete the local file) and is nowfunction_exists-guarded.Farmakon::syncProducts()now throwsRuntimeExceptionon a fetch or parse failure and returns on success instead of callingexit, so the job is recorded asJOB_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.phpaddsrefresh_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.
- (#942) composer install is required: new dependency
- [4.129.0] REQUIRES
npm run all-production: the SCSS changed inassets/main/scss/components/_advisable_footer_copyright.scssandassets/admin/scss/components/_advisable_footer_copyright.scss, and four new SVGs were added underassets/main/img/logos/andassets/admin/img/logos/(renamed fromimg/footer/); rebuild withnpm run production/npm run admin-production. The build emits the SVGs topublic/ui/main/images/andpublic/ui/admin/images/with a?hashcache-buster. The public bundles underpublic/ui/**are not committed by this change.webpack.mix.admin.jsgains a.copyDirectory('assets/admin/img/logos', 'public/ui/admin/img/logos')step, and the admin viewsapplication/views/admin/menu.phpandapplication/views/admin/head.phpreference/ui/admin/img/logos/<name>.svgdirectly, so those logo URLs return 404 untilnpm run admin-productionhas 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
fashionandretail"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.875remin both storefront and admin; the admin copyright text stays1.2rem). The footer view markup is unchanged;.adv_copyright_created_byand.adv_copyright_edition_*are nowflexspans, and at desktop widths.adv_copyright_blockis a vertically centred flex row..adv_copyright_imagesis 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_2hasclear: bothso 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 showadv_ecommercen_logo_icon_bg_white.svg(previouslyecommercen_logo2.png). The collapsed-sidebar logo (#adminLogoMob) and the top-bar icon at 600px and below now showadvisable_icon_white.svg(previouslyecom-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/#adminLogoMobimg inassets/admin/scss/_admin_nav_redesign.scss,.mob-ecom-logoinassets/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_byor_edition_*that relied on thetop/leftoffsets, the220px-wide sprite, the edition span's oldmargin-left, or the old inline layout of.adv_copyright_images(text-align, inline spacing) will now misalign. A fork that sets its ownbackground-imageon.adv_copyright_created_by/.adv_copyright_edition_*(e.g. inassets/main/scss/client/_footer.scss) keeps its art but also gets the new::beforecaption; if its art already has the caption baked in, the caption shows twice, so setcontent: noneon::before. An override relying on.adv_copyright_col_1/.adv_copyright_col_2being 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.phporapplication/views/admin/head.phpkeeps 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-logosizing 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 helperfarmakonPostXml(\GuzzleHttp\ClientInterface $client, string $endpoint, string $xml, string $statusNode, string $logContext): boolinecommercen/helpers/farmakon_helper.php. A fork that defines it first inapplication/helpers/farmakon_helper.phpreplaces the transport for both the customer and the order post. - [4.129.0] Check for overrides:
farmakonPostCustomer()andfarmakonPostOrder()are nowfunction_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 theboolresult are unchanged. A fork'sapplication/helpers/farmakon_helper.phpis 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-sensitiveErrorheader) and can be deleted to pick up the new one.get_discount_percentage()andcalculateOrderVats()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 toFARMAKON_CONNECT_TIMEOUTandFARMAKON_REQUEST_TIMEOUTand wrapped indefined(); 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
falseand logs) on any HTTP status other than 200, on anErrorheader sent in any letter case (a lowercaseerrorheader 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 nextFarmakonPostOrdersrun, as before. The 200-only rule assumesUploadPelates.aspxandUploadParag.aspxanswer exactly 200 on success, asProducts.aspxdoes; 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
FarmakonPostOrdersrun posts it again, which can create a duplicate order in the ERP. A slow but healthy ERP makes this more likely. Set a largerFARMAKON_POST_TIMEOUTwhere 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: <function>:prefix. A customer post logsFarmakon: farmakonPostCustomer: customer <id>: ...and an order postFarmakon: farmakonPostOrder: order <id>: ..., followed byrequest to <endpoint file> failed: <message>,unexpected HTTP status from <endpoint file>: <code>,error reported from <endpoint file>: <header value>,<endpoint file> returned invalid XML: <excerpt>or<endpoint file> did not report STATUS 1: <excerpt>. Log searches or alerts keyed on the oldUploadPelates error code reported from curl/UploadParag errortext must be updated. - [4.129.0] Check for overrides:
matomo-php-tracker4.x is a major release with typed parameters and nofalse"not known" sentinel. A fork that calls\MatomoTrackerdirectly, or subclasses or overridesAdvisable\Analytics\MatomoTracking, must satisfy the 4.x types:setUserId(?string), andaddEcommerceItem(),setEcommerceView()anddoTrackSiteSearch()no longer accept null or false for their string and float parameters (pass''or0.0, or go throughMatomoTracking, which normalizes).MatomoTrackingnow maps a null site-search category to''; a nulladdEcommerceItemname, category, price and quantity to'','',0.0and1; thefalsesentinels ofsetEcommerceViewto''and0.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-trackerorecommercen/media-streamin its owncomposer.jsonmust reconcile with ^4.0 and 4.4.3 when merging upstream, then runcomposer installagainst the merged lock. Expect a largecomposer.lockconflict (most forks still pin^3.2, and the re-lock moves transitive packages): take upstream'scomposer.lock, set the fork's owncomposer.jsonconstraints, then re-add only the fork's extra packages with a targetedcomposer update <fork-packages> --with-dependencies, never a barecomposer 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 avendor/upgrade an old container can keep serving the 4.0.0 wiring. Image-based Kubernetes pods are not affected: the image excludescache/mediastream/*(.dockerignore) and each pod copies a fresh web root, so it compiles a new container on the first/mediastreamrequest. Plesk and other non-container hosts that updatevendor/in place must clear it on this upgrade: runcache/delete.sh(the admin cache clear does this) or deletecache/mediastream/di. A Kubernetes setup that mounts a persistent volume overcache/mediastreammust clearcache/mediastream/dithe same way. - [4.129.0] Check for overrides: after merging, a fork's own concrete test classes under
tests/that extendDatabaseTestCaseorCiDatabaseTestCasemust add#[Group('database')](anduse 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.phpthat mentionsDatabaseTestCasebut whose declared class does not match theAdvisable\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.xmlis 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.mdno longer claims that it is. - [4.129.0]
composer testruns 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. Aphp.inithat still setssession.sid_lengthandsession.sid_bits_per_characteris followed as before. - [4.129.0] Check for overrides:
reconnect()inmysqli_driverandadvmysqli_driverno longer callsping(),CI_Exceptions::$levelsno longer hasE_STRICT, andpdo_mysql_drivergains the protected_mysql_attr_name()and_mysql_attr(). A fork-owned copy of any of these, or ofSession.php,Xmlrpc.php,Xmlrpcs.php,CodeIgniter.php,theme_helper.php,Adv_products_admin.php,InitialSeed.phporBelongsToLoader.php, needs the change ported by hand. - [4.129.0] Check for overrides (verified against the fork checkouts):
application/helpers/default_theme_helper.phpin Anatomicline carries its owngroupVendorsNames()with the sameord()on a multibyte character, so it still has the deprecation and needs the same fix.application/libraries/MY_Session.phpin AdvisableSite, Anatomicline and Services extendsCI_Sessionand does not touch session ID handling, so it needs no port. No fork has anapplication/helpers/theme_helper.phporapplication/core/MY_Exceptions.phpoverride. 34 of the 40 forks track anapplication/libraries/Session/override (MY_Session.php, and in some forks Redis driver overrides), but none of them touch session ID handling (sid_length,sid_bitsor_configure_sid_length()), so they need no port. No fork has a customised copy of the touchedsystem/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 inecommercen/,database/andsrc/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()inapplication/modules/job/models/Jobs_model.phpof Blustore and Edructer, and 86fgetcsv,str_getcsvandfputcsvcalls 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)$parsercast. This is not part of this issue. - [4.129.0]
phpunit.xml.distadds<directory>tests/Integration/Rest</directory>to the Integration suite and<directory>tests/Integration/Mcp</directory>to the Database suite.tests/Integration/Mcp/ServerFactoryTest.phpneeds the test DB, so it now runs undercomposer test:database/composer test. - [4.129.0]
phpunit.xml.distadds<env name="JWT_ENCRYPTION_KEY" value="phpunit-dummy-not-a-secret"/>. A developer's.envvalue still wins (Dotenv loads mutably after PHPUnit's<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.phpfails if anytests/Integration/*subdirectory or root*Test.phpis named by no<testsuite>. Client forks that add their owntests/Integration/<Dir>must list it in a suite, or the Unit suite goes red. - [4.129.0] New helper
tests/Support/FreshContainer.phpcompiles the DI container fresh fromContainer::CONTAINER_MODULESwithout reading or writingcache/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.phpin AdvisableSite, Anatomicline, Nautilus and Services.application/libraries/MY_Image_lib.phpin Pointpharmacy, Wecare and Anatomicline.application/controllers/Media.phpin Dioptra.application/libraries/Advauth.phpdiffers 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.phpand 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 = nullstays signature-compatible with the new?Type $x = nullparent (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 EdructerOrders_admin.php;getCustomerOrders()in Dioptra, Elxis and NautilusOrder_model.php;getAdminResults()in Dioptra and ElxisEvents_model.php;getOrderStatusID()in ThePharmacyPostOrdersEuropharmacy.php. Fork-only copies with the same deprecated pattern: FamilyPharmacy and NautilusDoofinder_model.php, Flioukas and OptikaLioliosLens_prescription_options_model.php. - [4.129.0] Check for overrides: forks can fix their own code with the same Rector command over their
application/andcustom/: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.phpis a fork-carried copy ofsystem/. A fork that edited it gets a merge conflict on the changed signature lines (around:292and:421); keep the?form. - [4.129.0] Check for overrides: implementers of
Advisable\CartProductCustomizationSchema\Schema\SchemaInterfacein forkcustom/code stay compatible. - [4.129.0] Check for overrides: forks carry their own copies of
system/andapplication/third_party/MX/, so they get this only by merging upstream. A fork that edited one ofsystem/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.phporapplication/third_party/MX/Loader.phpgets a merge conflict on the class-declaration line; keep the#[\AllowDynamicProperties]line. ForkMY_*,Base_cand controller subclasses need nothing, they inherit the attribute. - [4.129.0] Check for overrides:
CI_Modelis not marked, so fork models (and forkcustom/orapplication/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,BulkerSmsorApcoPay\Configthat 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.phpis 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
.envkeys,APP_LOG_DEPRECATIONS(trueturns the mode on; unset, empty or any other value leaves it off) andAPP_LOG_DEPRECATIONS_FILE(target path, defaultapplication/logs/deprecations.log). Both are documented in.env.example. - [4.129.0] Check for overrides:
CampaignService::testSend()now returnsint(devices queued) instead of?int(message id). A fork that calls it and checks!== nullmust check> 0. - [4.129.0] UI Update:
application/views/admin/push_notifications/form.phpis 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 keysnotifications.admin.campaigns.image.upload,.image.upload.help,.test.help,.error.upload;notifications.admin.campaigns.test.sentnow takes the device count (%s). - [4.129.0] Check for overrides:
AdvCreateJobSchedule::getNextRunDate()now takesstring $after('now'or aY-m-d H:i:sdate) instead ofint $nextCount. A fork'sCreateJobSchedulethat overridesgetNextRunDate()orgetTodayJobDates()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_cli8.1 tag until they opt in; Plesk tenants are unaffected. Switching guidance comes later (#982). - [4.129.0] Check for overrides: the
PHP_VERSIONARG and the other per-version ARGs no longer have defaults inphp.dockerfileandapp.dockerfile(the stale8.1.31inapp.dockerfileis gone). A client fork that builds images must build through.docker/scripts/build/build-*.sh; a directdocker buildof these Dockerfiles without the build args now fails on purpose. A direct build ofphp.dockerfilemust passPHP_VERSION,PHP_ALPINE_VERSION,PHPREDIS_VERSION,IGBINARY_VERSION,APCU_VERSION,XDEBUG_VERSION,SQLSRV_VERSION,COMPOSER_VERSION,PHP_SECURITY_BACKPORTandPHP_OPCACHE_CONFIGURE_ARG(COMPOSER_VERSIONlost its2.8.3default); an 8.1 build with an empty backport or OPcache arg fails.build-php.shnow fails for any PHP minor without aphp-versions/<minor>.versionsfile (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.shandbuild-node.share not limited). With no--php-version,build-php.shfollowsPHP_IMAGE_TAGin.docker/integration/.envwhen that file exists andCIis 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 onephp-*-<PHP_SECURITY_BACKPORT>.patchis applied. A fork that overrides these Dockerfiles orbuild-common.shmust reconcile with the per-version selection (select_php_build_valuesnow loads the.versionsfiles, andbuild-php.shcallsload_php_version_from_env); likely conflict sites are thebuild_targetsblock, thephp_base/php_runtimeFROMlines and the moved LABEL/ENV. - [4.129.0] Local
.env:build-php.shwithout--php-versionnow builds the PHP version in your.docker/integration/.envPHP_IMAGE_TAGand prints a notice when it is not the default. If your.envwas copied before 2026-10-21 it still says1.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.inino longer setssession.sid_lengthorsession.sid_bits_per_character, because those options are deprecated since PHP 8.4. On the local dev stack (andweb-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 -vstill says8.1.34, so version-based scanners will keep flagging these CVEs. Every image now carries the labelphp.security-backportand the env varPHP_SECURITY_BACKPORTset toCVE-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 PHPerror_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_progressis now always disabled, whatever the ini setting says. - [4.129.0] Ops: the k8s workloads pin
adveshop4-php_fpm/adveshop4-php_cli1.0.0-8.1.32; bump them to1.0.0-8.1.34inecnv4_manifests. The local integration stack'sPHP_IMAGE_TAGdefault (.docker/integration/.env.example) is now1.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'sapplication/config/auth.php, then run the job. It refuses to run without that key (null or any empty value). Back up thepasswordcolumn ofshop_customerandusersfirst: 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", thenphp cli.php "job/WrapLegacyPasswordHashes/scope=customers"; repeat withscope=guestsandscope=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_tois safe. - [4.129.0] Check for overrides:
Adv_customer_model::checkPassword()now sends a wrapped hash toAdvauth::advAuthVerify(). A fork whosecheckPassword()override does not route throughadvAuthVerify()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.phpmust take this file's change in the upstream merge, on top of #895's. Its copy must have the public methodsadvAuthIsWrappedHash(),advAuthWrapLegacyHash(),advAuthIsLegacyHashOf()andadvAuthAcceptedLegacySchemes()(plus #895'sadvAuthHasMigrationTarget(),advAuthIsPasswordHash()andadvAuthNeedsRehash()), the privateverifyWrappedHash()/legacyHash()and the new first branch ofadvAuthVerify(). The baseAdv_customer_model::checkPassword()callsadvAuthIsWrappedHash()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 readsshop_customer.passwordorusers.passworddirectly, withoutadvAuthVerify(), 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()andAdv_customer_model::replacePasswordHash().Adv_users_model::replacePasswordHash()now returnsbool. BothreplacePasswordHash()methods write through #895'sAdv_base_model::updateWithoutHalting(), so a failed write is logged and returnsfalse, and never halts the job, whateverdb_debugsays. - [4.129.0] Check for overrides:
Advisable\Domains\Support\Request\WithParser::topLevelName()is removed, replaced byWithParser::pathNames()(one name per hop, leaf params stripped).Advisable\Rest\Order\Resources\OrderTag\Resource::addRelationToData()now emitsordersfor a backend context only. - [4.129.0] Check for overrides: a client fork with its own
relationsentries inapplication/config/rest_policies.phpgets 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 (Sliderslides.audience, Linevendor.supplierand 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
paymentsInactivepage. 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 extendingafterSuccess()for them should extendreportPurchase()orapplyOrderGifts()instead). - [4.129.0] Merchant config: Smart Cart orders now need
SMARTCART.API_URLandSMARTCART.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 toorders_admin/klarnaPayment/<action>withklarnaCsrf; a Klarna error is now 502, not 403) andapplication/views/admin/orders/list.php(the buttons losedata-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 rendersklarnaCsrf. A fork that overridesindex()(Dioptra'sOrders_admindoes) 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(); newAdv_orders_admin::klarnaPayment()(its helpers are private).AdvSmartCart::handle()changed; newAdvSmartCart::fetchSkroutzOrder()andskroutzOrdersClient().Adv_auth::taskCsrfToken()/verifyTaskRequest()now delegate to the newAdminCsrfTokenTrait, 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 newskroutzSmartCartApiSettings()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 helpersAdv_base_controller::error_404()/error410()andAdv_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 mustreturnafter it: the helpers still render and return. The upstream call sites are listed indocs/decisions/960-non-halting-errors.md. - [4.129.0] Check for overrides:
AdvGiftCardOrdersModel::cancelGiftCard()is now Pending-only and returnsbool(wasvoid); the old behaviour (also delete a Completed card's coupon) moved to the newrevokeGiftCard(), which the admin grid and the XPay webhook use. A fork overridingcancelGiftCard()must returnbool, and a fork calling it to revoke a paid card must callrevokeGiftCard(). - [4.129.0] Check for overrides:
AdvGiftCardPage::cancelGiftCard()returnsbool(wasvoid) anderrorView()runscancelPostActions()only when it returnstrue. Also changed:successView(),renderSuccess()(now only after a won accept),piraeusSuccessAction()(render_successreplaced byrender_completed, and Completed + invalid HMAC now answersrender_error),paypalSuccess(),paypalCancel(),piraeusSuccess(),piraeusFail(),eurobankSuccess(),eurobankFail(),alphaSuccess(),alphaFail(),ethnikiResponse(),ethnikiEEResponse(),irisResponse()(Iris order id from the request'sorderId; status through the newirisOrderStatus()),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 onlysuccessView()may call it, after its own accept succeeded. To show a card the request did not accept, callrenderResolved($orderId)(Completed → confirmation page, anything else → error page) orrenderCompleted($order). - [4.129.0] Check for overrides:
AdvGiftCardAdminListing::cancelGiftCard()now calls the model'srevokeGiftCard(). - [4.129.0] UI Update: new view
layouts/gift_cards/completed(template keygiftCardCompletedinapplication/config/mainTemplate.json) prints the new language keygiftCard.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/successis unchanged. A fork that customisesmainTemplate.jsonmust keep the newgiftCardCompletedkey; a fork may restylecompleted.phpto match itssuccess.php. - [4.129.0] New protected
Adv_checkoutmethods:isPendingOrderOfPayway($orderObj, string $payway): bool,piraeusRenderFailure(string $view): voidandapcoPayGateway(): ApcoPay(returnsFactories::apcoPay()). New publicAdv_order_model::claimCanceled($orderSerial, string $fromStatus, string $methodCalled = ''): bool, which moves an order toCANCELEDonly 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()andpiraeusValidateResponse()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 thePENDING-order-of-this-payway guard plusclaimCanceled()before it cancels. - [4.129.0] Before release, smoke-test a real failed payment against the Piraeus sandbox: a fail POST that lacks
HashKeyor 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
PENDINGfor up to 180 minutes, until the sweep, notCANCELEDat 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 callbackAdv_order::checkCheckoutCoupon(string $couponCode = ''): bool, new protectedAdv_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 throughcheckoutPostedOrderData()),Adv_order::checkoutValidationRules()(adds thecoupon_coderule) andAdv_order::checkCoupon()(body moved intoisCouponValidForCart(), behaviour unchanged). A fork that overridescheckout()orcheckoutValidationRules()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 usesfindAccessibleByEmail(). - [4.129.0] New protected
AdvGiftCardPage::signedInCustomerId(): ?intandfilterCustomerProfileFromPostData(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 overridesfilterCustomerFromPostData()is still safe, because a signed-in update dropsmailandpasswordafter it. - [4.129.0] Check for overrides: every fork that carries its own
application/libraries/Advauth.phpmust take this file's new public methods in the upstream merge:advAuthHasMigrationTarget(),advAuthIsPasswordHash()andadvAuthNeedsRehash(), plus themigrateToAlgoproperty, the constructor line that sets it,migrationTargetAlgo(),argon2iSupported(),logError(),upgradeAdminPasswordHash()and the new first branch ofadvAuthHash()/advAuthVerify(). This is a hard dependency, accepted deliberately: the baseAdv_customer_model::generateEncryptedValues()andcheckPassword()calladvAuthHasMigrationTarget()/advAuthIsPasswordHash()on every customer login, registration and password change, whether or not the key is set, so a fork that resolves anAdvauth.phpconflict with "ours" fails on every stock-model login. Most forks carry an older, unedited upstreamAdvauth.phpand take this one without a conflict. Three carry their own edits and need care: Dioptra and Elxis add a guest-role IP block inlogin(), next to the changed hunk, and Phancy adds a debug log line andproductsSearchto logout'sunset_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'sAdvauth.phpand keep the fork's own lines on top of it. A fork whoseauth.phplacks the new key reads it asnull, which means no migration. - [4.129.0] Check for overrides:
Adv_customer_model::checkCustomer()now calls the new protectedupgradePasswordHash()after a row matches. A fork that overridescheckCustomer()gets no upgrade until it does the same. The basegenerateEncryptedValues()andcheckPassword()now honour the target. A fork that overrides them gets the migration only if its overrides route throughAdvauth::advAuthHash()/advAuthVerify(), as WeCare's do. NewAdv_users_model::replacePasswordHash(), and new protectedAdv_base_model::updateWithoutHalting()(an UPDATE that turnsdb_debugoff 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.phpafter the merge:$config['auth_hash_migrate_to'] = 'password-hash-mcrypt';. For WeCare (auth_hash = 'wecare-crypt') this is the only change needed: itsCustomer_modelhooks already route throughAdvauth. Pharm16 should not set the key: its hooks already write bcrypt withpassword_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 onepassword_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_tovalue (null,false,0,'0','') means no migration. Any other value that is not one of the two schemes, orpassword-hash-argon2ion a PHP build without Argon2, also means no migration and writes anerrorlog entry naming the value (… password migration is off) each timeAdvauthis constructed. It never stops a request: logins keep theauth_hashscheme until the value is fixed, so check the error log after setting the key. - [4.129.0] To measure progress, count the registered
shop_customerrows whosepasswordis still 40-hex. The query, and the open question about accounts that never log in again, are indocs/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 parameterrest.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/passwordnow ends the customer's other sessions (a client on another device gets401at its next refresh and must sign in again). No request or response shape changes; the access JWTdatagainssid. 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():$userTypeis now required (it had a default) and a requiredstring $familyIdfollows it.RefreshTokenModel::delete($userId, $userType)is removed (its only caller wasTokens::generateRefreshToken()). To end every session of a user, delete byuser_id/user_typeasAdv_customer_model::revokeRestSessions()does.RefreshTokenModel::rotate()takes a required sixthstring $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 returnsarray{refresh_token, family_id}instead of a string;Tokens::rotateRefreshToken()also returnsfamily_id;Tokens::generateAccessToken()takes an optional fourth?string $sessionId(thesidclaim).Confighas a new last constructor argumentint $maxSessionsPerUser(afterrefreshGraceSeconds), wired from the new container parameter. A fork that buildsConfigby hand or re-registers the service without that argument gets the default of 10.Advisable\Rest\Customer\Controllers\Customertakes aRefreshTokenModelas a new last constructor argument, andResourceContexthas a new optional last constructor argument andgetSessionId(). 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 throwsRuntimeExceptionwhen the UPDATE reports a driver error and returnsfalseonly 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
401on refresh as "signed out on this device" and may rely on its refresh token surviving a sign-in elsewhere; it may ignoresid. - [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}}). 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 newPayByBankGatewayCancellerargument. - [4.129.0] New
Domains\Checkout\Payment\PayByBankGatewayCancelleris the one place that cancels a Pay by Bank order at the gateway and writes thepbb_loggingrow (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 itPAIDorCOMPLETED, 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 cancelAdv_order_model::setBatchCanceled()use it; the admin batch cancel still cancels locally whatever PayByBank answers, and now logs a successful gateway cancel ascalled_for='cancel'(it wrote'order').PayByBank\PayByBanknow setstimeout10 s andconnect_timeout5 s (new optionalPayByBank\Configarguments), 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 byPayByBankClientFactory(directly, or throughFactories::payByBank()); the six places that built it by hand no longer do. - [4.129.0] Check for overrides: a fork that constructs
PaymentConfirmationServiceorPayByBankGatewayCancelleritself, overridesAdvCancelIncompleteOrders::cancelPendingPayByBank(),Adv_order_model::setBatchCanceled(),Adv_orders_admin::createAdminPayByBankOrder()orAdvPayByBankGetStatus::payByBankFactory(), or buildsPayByBank\PayByBank/PayByBank\Configdirectly 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 callPayByBankGatewayCanceller::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 throwsCall 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 ownsetTempBatchCanceled()), Nautilus (:62,64), Optika Liolios (:496,498), Pharm16 (:119,121) and Pronomio (:56,58); the others insetBatchCanceled(). Found by searching every fork's code on Bitbucket for both method names; no other fork-owned file calls them. The port: in theif ($orderObject->payway === 'paybybank')block of the override, replace the hand-builtnew PayByBank(new Config(...))(fully qualified in i-natural), thecancelOrder()call and bothhandlePayByBankCancel*()calls with$this->payByBankGatewayCanceller()->cancel((string) $orderObject->order_serial);, as upstream'ssetBatchCanceled()now does. Keep the fork's own local-cancel lines after it unchanged. A fork that callscancelPayment()from its own customer-facing cancel path should callcancelByCustomer()instead. - [4.129.0] Check for overrides:
Adv_customer_model::getCustomerBy()andAdv_customer_model::getRegisteredCustomerIdByEmail()(bodies changed; a fork override keeps its own row order),Adv_customer::deleteUser()(now calls the newAdv_sanitize_model::sanitizeAccount(); a fork override that still callssanitizeAll()erases only the signed-in row),AdvGiftCardPage::validationRules()(newmailrule; a fork override must add it to get the check) and the new protectedAdvGiftCardPage::createsRegisteredCustomer(),Advisable\Domains\Customer\Customer\AccountDeletion\AccountDeletionService::deleteWithPassword()(now callseraseAccount()). - [4.129.0]
CustomerErasurenow 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.basisisdiscountedNet: what REST checkout applies (round(netUnitPrice × pointFactor)), regardless ofESHOP.POINT_FACTOR_TYPE(#576). A product's multiplier ispointFactor / earn.pointsPerCurrencyUnit. - [4.129.0] The
ProductResource.pointFactorOpenAPI description no longer saysround(price × pointFactor)(text only). - [4.129.0] A null here never means the point system is off; that gate is
loyaltyonGET /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.jsonis 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/metatagsentry inapplication/config/admin_menu.phpwidens 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.phpdoes not get the menu change. Update theseo/metatagschild roles by hand. A fork menu that grantsseo/metatagsto 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.phprenders the 401 page but still runs the action. The gate only halts once the fork has the #936 core files (dispatch_controller_method()andrequestRefused). - [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 overridesfixAdminSearch()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 rawreview_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/*.pngand/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 wayui|files|favicon|media|sitemapare. Verify withcurl -I https://<shop>/builder-assets/menu-icons/landing-page-1-thumb.png(expect200andcontent-type: image/png). - [4.129.0] Plesk/Apache tenants are unaffected:
public/.htaccessrewrites toindex.phponly when the request is!-f, so existing files are served directly. - [4.129.0] Client forks: edructer carries a client hotfix (
4b146beb9) with the sameCOPY public/builder-assetsline at the same spot (right afterpublic/robots.txt), plus two# CLIENT HOTFIXcomment 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 singleCOPY public/builder-assetsline inapp.dockerfile. - [4.129.0] New protected extension point
Adv_loyalty::claimOrderPointsMark(string $orderSerial, bool $state): bool. It flipspoints_addedonly when the row holds the opposite value and returnstruefor the single caller that won the claim.setOrdersMark()stays public and unchanged. - [4.129.0] Check for overrides: a fork that overrides
saveProductPointToCustomers()orremoveProductPointFromCustomers()does not inherit the fix. Heals does this withoutparent::; itsapplication/libraries/Loyalty.phpcallssetOrdersMark()at:64and: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 $localZipPathand parses that file; called with no argument it readsfarmakon/{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.xmlwill log "file not found" and fail the sync. - [4.129.0] Check for overrides:
Farmakon::syncProducts()now throwsRuntimeExceptionon fetch or parse failure and returns on success, so the job is recorded asJOB_FAILED. A fork's copy that still ends withexitor callsFarmakon::logAndExit()keeps the old behaviour. - [4.129.0] Check for overrides: new
Farmakon::fetchProductsZip(): ?string, whichFarmakon::syncProducts()now calls.Farmakon::fetchFarmakonXml()is deprecated and no longer called byFarmakon::syncProducts(), so a fork that overridesfetchFarmakonXml()must move that logic tofetchProductsZip(). 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. Thefolderkey is dropped fromapplication/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()andfarmakonFetchProductsZip(): ?string, are now defined inecommercen/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.phpis loaded alongsideecommercen/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 withfunction_exists; otherwise PHP fails with "Cannot redeclare".farmakonGetXml()is now guarded, andfarmakonPostCustomer()andfarmakonPostOrder()became guarded in #1002, butget_discount_percentage()andcalculateOrderVats()are still not, so a fork copy that redefines either of them must drop it. A fork copy that only carries an oldfarmakonGetXml()(thefolderpath andexec(unzip)) is no longer called byFarmakon::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:
/tmpmust be writable, which on K8s may need anemptyDir. The stored zipfarmakon/products.zipon the private disk is new. Earlier runs left files inpublic/farmakon/, which sits inside the web docroot and may hold the full ERP catalogue (Products.xml,products.zip); delete thepublic/farmakon/directory on every server that ran the sync before this release. Nothing deletes it automatically. - [4.129.0] Ops: the
Adv_Farmakonconstructor, shared by the product sync and the order post, now logs why Farmakon will not run before its unchangedexit: awarning"Farmakon: the integration is disabled (registry FARMAKON IS_ENABLED); nothing to do." whenIS_ENABLEDis off, and anerror"...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 whereAPP_LOG_THRESHOLDis 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: <function>:(log levels are unchanged). For example,farmakon UploadPelates error code reported from curl: …is nowFarmakon: farmakonPostCustomer: UploadPelates error code reported from curl: …, andcron farmakonPostOrders customer with id: … not foundis nowFarmakon: processOrder: cron farmakonPostOrders customer with id: … not found. Log searches or alerts keyed on the old message text must be updated; searching forFarmakon:now finds every line the integration writes. - [4.129.0] UI Update:
GET /rest/promotion/gift/activeis unauthenticated (auth => guest), and two of its queries reached the product catalogue with no visibility predicate: thechoicesrelation, whoseChoiceResourcepublishesgift_choices.option_type_idraw, and the gift-picture lookup behindgiftImage/giftName/giftSlug. Both now apply the storefront rule (shop_product.active = 1 AND shop_product.soft_delete = 0) from the singleProductVisibilityScopedefinition, 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,choicescarries only its visible product choices (plus any vendor choices), andgiftImage/giftName/giftSlugdescribe 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 emptychoicesand 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 atoption_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 andLegacyGiftChoiceStock::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 nogift_choicesrows of its own. Note what this does not claim: the legacy availability chain does not ignore product visibility (Adv_gift_choices_model::getOptionsWithActiveStockForGiftIds():44drops a pool member whoseavailabilityStock <= 0, andAdv_product_parser_model::setAvailabilityStock():556-563zeroes that for!active/soft_delete), so a hidden-but-stocked product was already dropping its rule. The case this closes is theisset()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.totalstill counts the SQL window, now before both post-filters, so a page can be empty whilehas_nextis true. THIS IS A DELIBERATE DIVERGENCE FROM LEGACY, NOT A PARITY FIX.Adv_gifts_model::getActiveGiftRules()applies noactive/soft_deletepredicate anywhere on this chain — its onlyWHEREconstrains thegiftstable 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()'srequirementName/requirementImage/requirementSlug. It publishes no raw id (only a1/2discriminator), 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 itRelation::VISIBILITY_EXEMPT_ALLon every route, so an admin JWT on this guest endpoint still receives UNSCOPEDchoices, 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 legacyisset()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\ProductVisibilityScopedependency (both autowired upstream), twoServicemethods and oneRepositorymethod. 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$dbmoved from position 2 to position 3, so an existing positionalnew Repository($configurator, $db)does not merely under-supply an argument — it passes the builder where the scope is expected and dies with aTypeError.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 intodecorate(). A fork subclass overriding it declares cleanly — there is no LSP fatal to warn anyone — and then dies at request time withArgumentCountError: 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 calldecorate($entities, $this->repository->giftImagesFor($ids, $lang))from your own.Advisable\Domains\Promotion\ActiveGift\Repository\Repository::giftImagesFor()— signature unchanged, body contract changed, the same wayproject()'s was. It is now both a scope site (it appliesProductVisibilityScope::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 anextends-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. ForRepositoryConfiguratorthe old list is the no-arg call, so it isArgumentCountError: Too few arguments, at construction. ForRepositorythe old list isparent::__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 ornull, both alike — lands in theProductVisibilityScopeslot. That is aTypeErroron argument #2, the same failure as the positional call site above.ArgumentCountErrorreachesRepositoryonly from a parent call that passed$configuratoralone; - 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/TypeErrorat 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\Repositoryis not a registered target inRelationConfigurationTest::scopeBearingTargetRepositories(), so the positive-coverage invariant does not catch that copy. Take the upstream constructor and thevisibilityScope:argument, or restate both in the fork's own copy.Advisable\Domains\Product\Product\ProductVisibilityScopeis not purely additive on its override surface, because the one seam that used to be sufficient no longer is. Before this changerelationScope()was the only override point, so a fork that subclasses (or DI-aliases) the class and overridesrelationScope()retargeted every consumer. NowrelationScope()is itself built from the newvisibilityRule(), and the newforeignKeyScope()builds fromvisibilityRule()directly: it never callsrelationScope(). Such a fork's rule therefore still reachesgiftImagesFor()and the ten existing relations (all of which consumerelationScope()), but not the newchoicesrelation, which silently keeps the upstream rule (active = 1 AND soft_delete = 0) while the rest of the fork's rule is applied elsewhere. Remedy: overridevisibilityRule()(protected, returnscolumn => required value), which both shapes follow; overrideforeignKeyScope()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 aprivate const PRIMARY_KEY) and removed nothing:foreignKeyScope(string $foreignTable, string $foreignKeyColumn): \Closure(public — the same rule as a correlatedEXISTS, for a query that holds only a foreign key toshop_productand cannot join it) andvisibilityRule(): 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 fromvisibilityRule(), 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 throwsInvalidArgumentExceptionotherwise, 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'sgetRelations()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-containeronly compiles the container and instantiates nothing, and reportsContainer OKwith 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\GiftChoiceStockis 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'sLegacyGiftChoiceStockreports 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 asksgiftImagesFor(), 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.