Skip to content

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

Home | Changelog

Version 4 ​

version 4.128 ​

  • [4.128.1] fix(security): /editor/upload, the TinyMCE image upload, no longer accepts anonymous uploads. Editor now extends Admin_c instead of Base_c, so every Editor action (upload, blank, index) needs a logged-in backend session of any role and redirects anonymous requests to advisable/login; the long-dead commented-out isAdvisableUser() gate is removed. AdvUploadValidator::validate() now also decodes uploads whose extension is gif, jpg, jpeg, jpe, png or webp with getimagesize() and rejects a file whose content is not an image of an allowed type (upload_invalid_filetype), and it rejects an array-valued file field (userfile[]) with a validation error (upload_userfile_not_set) instead of an uncaught TypeError (#969).
  • [4.128.1] fix(security): the admin editor's TinyMCE Bootstrap plugin PHP scripts trusted request input (#970). They are hardened in place and stay reachable without a login by design: no login check or CodeIgniter routing was added. In public/ui/plugins/tinymce-bootstrap-jbimages/4.5.4-2.3.2/plugins/bootstrap/, language is used only when it matches ^[a-z]{2}_[A-Z]{2}$ and that file exists in the plugin's own langs/, otherwise en_EN (before, any .php file on the server could be included through it). jqueryFileTree.php lists only entries whose realpath() is inside DOCUMENT_ROOT/files/uploads (before, it listed any directory, including ones outside the web root). bootstrap-image.php opens only local files inside that directory, and only probes secure.php there. The 13 dialog pages escape every request value they echo (htmlspecialchars in HTML, json_encode in JS) and the Host-derived SITE_URL, and the dialogs always link the plugin's own css/bootstrap.min.css instead of reading bootstrap_css_path from the request. The snippet write endpoints add-new-snippet.php, edit-snippet.php and delete-snippet.php are deleted. The input guards live in the new conf/security.php. The unused 4.4.3-2.3.2/ copy, the jquery-file-tree/connectors/ directory and jbimages/is_allowed.php are deleted.
  • [4.128.0] feat(rest/storefront-config): GET /rest/storefront-config gains a brands section (#935) — topVendorIds, the brands the merchant chose for an external frontend's top-brands row, in the merchant's order — set on a new admin page, Settings → External frontend brands (settings/externalBrands), a two-list picker with a search box and up/down ordering. It is the external channel's own list and does not follow the website's home carousel (shop_vendor.is_promo and shop_vendor.order)
  • [4.128.0] fix(security): a back-office user whose role a controller refuses can no longer run its actions (#936). 75 legacy controllers check the role in their constructor with error_401(); return;, which showed the 401 page but still ran the requested action, so a lower-privileged role could save Admin-only screens (for example, a CMS-only user could change any settings/* value). error_401() now records the refusal and the dispatcher no longer calls the action of a controller that refused: the response is the 401 page and nothing else. Calls of error_401() inside an action, and controllers that already exit after it, behave as before.
  • [4.128.0] fix(http): a network error to an external API no longer kills the run (#945). Twelve Guzzle catch blocks in ACS, BOX NOW, the Qualco couriers (Courier Center, Taxydema), Cyprus Post, DHL, Omni messaging, Yuboto, Bulker SMS, Shopflix and Klarna called hasResponse()/getResponse() on a ConnectException, which has neither, so a connect, timeout, DNS or TLS error raised a fatal Error instead of the client's normal failure. On WeCare this failed the daily legacy-cron-orders-transfer-status job whenever one courier call had a network error, leaving shipped orders with stale tracking. The network error is now logged and the call fails as any other failed call does, so the run goes on. 4xx/5xx handling is unchanged.
  • [4.128.0] fix(checkout): POST /rest/checkout/shipping, /rest/checkout/totals and place-order now offer a courier by the same rule as the storefront (#934). A courier is offered when it has transporters_options_pricing rows for the country, the products total before the coupon (the storefront's order_total) is at least its MIN_ORDER_AMOUNT, and the destination is listed: the full postal code in transporters_posts_availabilities, or the county in transporters_counties_availabilities. A postal list is an extra allow and no longer an exclusive list matched on the first three digits, so a courier with a list of 5-digit codes (WeCare's Courier Center) is no longer hidden everywhere. Postal availability and postal pricing both compare the full postal code with whitespace removed. REST 1.116.
  • [4.128.0] feat(eshop): the category sidebar tag filters now list only the tags that, added to the current selection, still return at least one in-stock product (#941). Already-selected tags always stay listed so they can be unselected. This applies to both the PHP fallback rows (render['tagFilter']) and the Vue group combos (listingTagGroupCombos). The facet set is cached through Pscache in the product_model group.
  • [4.128.0] fix(eshop): cache negative results on the storefront 404 path and zero-product filter listings — opt-in, never when the DB reports an error (#666)
  • [4.128.0] perf(eshop): the storefront category tag filter now uses one correlated subquery per tag category instead of per-tag pivot joins, removing the row fan-out that held database connections for minutes (#939). Results are unchanged, including today's behaviour for mixed AND/OR configurations. A selection where no tag resolves now returns no products from valid SQL, where it used to fail the query.
  • [4.128.0] fix(eshop): the storefront category listing answers 410 Gone when more than APP_MAX_ACTIVE_TAG_FILTERS (default 4) distinct tag filters are active (#940).
  • [4.128.0] fix(security): exception logs no longer contain function arguments (#524). The REST dispatcher (RouterDispatcher, SafeActionDispatch), ApcoPay::validateResponse(), the uncaught-exception handler in system/core/Common.php, the ApcoPay response validator (ApcoPay\Response) and the ApcoPay callback handler (Adv_checkout::apcopay_status()) logged $e->getTrace() or getTraceAsString(), so with zend.exception_ignore_args = Off every frame's arguments, such as a registering customer's plaintext password, email, name and mobile or ApcoPay gateway payloads, were written to application/logs/. They now log the new Advisable\Logger\ExceptionLogContext::fromThrowable(): the exception class, file and line, the previous-exception chain, and a frame list built from file, line, class and function only. The log line formatter (_log_helper_build_formatter() in application/helpers/log_helper.php), which renders the [stacktrace] of every exception passed to the logger, including uncaught ones, now cuts each frame back to its call name too; the JSON formatter never printed arguments.
  • [4.128.0] fix(settings): the reCAPTCHA v3 secret can be saved again. Adv_settings::google() ran form validation without the controller (form_validation->run() instead of run($this)), so under HMVC the callback_recaptchaV3SecretIsStorable rule was looked up on the CI super-object, never found, and always failed. Every non-empty v3 secret was refused with the APP_ENCRYPTION_KEY error, even with a valid key. The encryption guard itself is unchanged: a blank or broken key is still refused.
  • [4.128.0] fix(security): the stored-email preview mail_history/view/{id} is now an admin-only page (#507). Adv_customer_mail_history extends Admin_c instead of Front_c and dispatches only view through its own _remap(), which requires the Advisable, Admin or Orders role. The body is served through the CI output class with Content-Security-Policy: sandbox, and non-numeric or unknown ids return a 404 instead of a 500 or a blank page.
  • [4.128.0] fix(notifications): an order push is sent right after the request again (#930). The after-response send declared a cost of 10 s, the whole default deferred-task budget, so any task that ran before it left too little time. The push then waited up to a minute for the DispatchNotifications job, or was never sent where that job does not run. The send now declares 3 s and keeps to it: the dispatcher's deadline also caps the connect and request timeouts of every HTTP call it makes, the OAuth token request included (new Push\FcmTimeouts). Deliveries not started by the deadline are left for the job, as before.
  • [4.128.0] fix(notifications): a push send no longer starts an HTTP call with less than 1 s left before its deadline (#930). It throws Push\FcmDeadlineReached, and the dispatcher releases that delivery and the rest of the batch for the next run, with no attempt counted. Running out of time is not a failure: nothing was sent, so it neither backs the delivery off nor risks a duplicate of a message FCM had already accepted. This also applies to the DispatchNotifications job's own 50 s deadline.
  • [4.128.0] fix(gift-cards): the PayPal Advanced gift-card sweep no longer cancels a gift card PayPal may have been paid for (#927). AdvCancelPendingGiftCards::cancelPendingPaypalAdvancedOrders() read only the first capture of the first purchase unit and cancelled on anything else, so a PayPal timeout, a token failure or a capture held for review cancelled the gift card. It now follows the order sweep (#916): a failed read leaves the gift card pending and logs at error level, PayPal's 404 or an empty tran_ticket cancels, a COMPLETED capture on any purchase unit accepts, a PENDING capture waits, and anything else cancels.
  • [4.128.0] fix(notifications): a push whose deliveries cannot be queued no longer blocks every retry (#926). NotificationService::notify() stored the message and then its deliveries in two writes; when the second failed, the message kept its dedupe key with no deliveries, so each retry was refused as a duplicate and the push was never sent, silently with db_debug off. OutboxStore::enqueue() now stores both in one transaction and throws (logged by the callers) when a write fails or not every delivery is queued.
  • [4.128.0] perf(orders): the admin orders pager count no longer joins skroutz_orders, shopflix_orders and shop_order_tags_lp unless a filter needs them (#819, related #922). Adv_order_model::getOrdersListAdminCount() now has two paths. The join path is used when any of searchFor, shopflixCourier, smartcartCourier, pickup_location or tags is non-empty, and runs exactly the previous SQL (the three LEFT JOINs, the INNER JOIN to shop_customer, SELECT COUNT(*) FROM (SELECT DISTINCT shop_order.id ...) AS tempcountorders). Otherwise (the default page load, a date window, status / payway / store and similar filters) the joinless path runs SELECT COUNT(DISTINCT shop_order.id) AS numRows FROM shop_order [FORCE INDEX (PRIMARY)] JOIN shop_customer ON ... WHERE .... The INNER JOIN to shop_customer is kept, so orders without a valid customer stay hidden from both the list and the count (owner ruling). COUNT(DISTINCT) is used because forks add their own one-to-many joins (shop_order_basket, coupons) in their where-builder. The joinless count also gets #922's exact shop_order.id range of the date window (MIN/MAX pre-query; with no filters, MIN(id) over entry_datetime >= ORDERS_DEFAULT_SEARCH_DATE) together with FORCE INDEX (PRIMARY). The list results and the exports are unchanged and keep #922's search-only bound. Measured on local MariaDB 11.4 copies, warm, default page load count: discount 851 to about 290 ms, smilev4db 306 to about 104 ms, wecare 670 to about 272 ms, with identical counts. On MariaDB 11.8 the bound also removes the per-replica switch to a full table scan (rig: up to 2.05 s cold before).
  • [4.128.0] perf(orders): the admin orders list search is now bounded by the date window (#922). When a searchFor term is set, shop_order.id is restricted to the window's id range through a MIN/MAX pre-query (Adv_order_model::ordersListAdminIdRange(); with only an end date set and the start date empty, the bound is a MAX(id) bound on the same window). Without a searchFor term (no filters, a date window alone, a status with dates) there is no bound and no hint, so those lists keep today's plan, which uses the date/status indexes. The results and count queries (getOrdersListAdminResults(), getOrdersListAdminCount()) use FORCE INDEX (PRIMARY) together with that bound. The searchFor branches on shop_customer, skroutz_orders and shopflix_orders are now uncorrelated subqueries; the inner JOIN shop_customer is kept. Measured on pharmacydiscount production, where orders_admin.htm had a p50 of 5.6 s: on a calibrated rig the results query went from 5.1 s / 1.8 s (cold / warm) to 0.47 s / 0.23 s, and the count from 2.35 s / 1.12 s to 0.26 s / 0.16 s. On local copies of three tenants (MariaDB 11.4, warm) a search in a 3-month window went from 3.0–4.6 s to 0.12–0.46 s for the results and from 0.3–1.8 s to 0.07–0.29 s for the count, with identical ids and counts.
  • [4.128.0] fix(orders): a status filter with an end date but no start date now applies &lt;statusDateColumn> &lt;= endDate 23:59:59 (#922, owner-approved AC4 exception). The guard used to check startDate twice and silently ignored the end date, so the results and count now shrink to that window.
  • [4.128.0] fix(orders): exports that call the core ordersListAdminWhere() no longer fail on the mail / skroutz / shopflix columns of searchFor. The courier, pickup and tag filters in exports are still tracked in #809.
  • [4.128.0] feat(transporters): Courier Center can deliver to BOX NOW lockers (#918) (per the Courier Center "Locker Delivery Manual"). The customer picks the locker in the BOX NOW map widget at checkout (opened for the CENTER transporter exactly as for BOXNOW, with Courier Center's own BOX NOW partnerId), the locker is stored on the order through the existing smart-point flow, and voucher creation sends it to the Courier Center API as LockerDeliveryInfo (Code = BOX NOW locker id, Prefix = ATH or SKG, the BOX NOW hub: SKG for shipments from Thessaly/Macedonia/Thrace, ATH for the rest of Greece). The shipment is still created through the Courier Center API only; no BOX NOW API credentials are involved. New Courier Center settings (admin → Transporters → Courier Center, and the SaaS wizard): Delivery Option, BOX NOW Partner ID (pre-filled with Courier Center's id), Locker hub prefix (default ATH), Allow cash on delivery for lockers; the template list gains singlepdf_100x150, which Courier Center requires for locker vouchers and which vouchers use automatically while lockers are offered (the stored template setting is left as the shop chose it). Nothing changes for an existing Courier Center transporter until its Delivery Option is set to "All" or "Pick up". The BOX NOW map container id is now per transporter (#boxnowmap for BOXNOW, #boxnowmap-center for CENTER) so both can be active.

Notes

  • [4.128.1] No DB migration and no composer change in this hotfix.
  • [4.128.1] Check for overrides: every client fork carries its own application/controllers/Editor.php, and all of them have the gate commented out. Of the 22 fork repos, 19 run develop's Editor.php and AdvUploadValidator.php unchanged, so they get this fix on their next upstream merge with no conflicts. The one manual step is edructer: it keeps its own rows in docs/decisions/README.md, so keep both rows in that hunk. evaspharmacy-admin was checked only against a 2026-06-11 snapshot because its origin could not be fetched.
    • 3 still run the older CI3-Upload Editor and need their own port: advisable-shop (Editor extends Adv_base_controller), inatural and nautilus (both extends Base_c). The port is one line: change the parent class to Admin_c, which exists in all three. Their CI3 Upload library already checks image content with getimagesize(), so the validator change does not apply to them. Do not copy upstream's Editor.php over theirs: their application/config/uploader_settings.php has upload_path = $_SERVER['DOCUMENT_ROOT'] . $config['img_path'].
  • [4.128.1] Check for overrides: AdvUploadValidator (forks may extend it through UploadValidator) gains protected function isUploadedFile(string $path): bool, a thin wrapper over is_uploaded_file() that validate() now calls; protected function hasValidImageContent(string $filePath, string $extension): bool; and protected const IMAGE_TYPE_EXTENSIONS. No existing method signature changed. A fork that overrides validate() does not get the new checks until it calls them.
  • [4.128.1] Behaviour change: /editor/* now requires an admin login and redirects anonymous requests to advisable/login. The shared upload validator now rejects raster-image uploads whose content is not an image (all callers: editor, products/transporters admin, Advuploader, REST UploadService), and rejects array-valued file fields with a validation error.
  • [4.128.1] UI Update: snippets are read-only in the editor's Bootstrap → Snippet dialog. Add, Edit and Delete are gone, whatever allowEdit says, and the default snippets come from the tracked snippets/snippets.xml: change them by commit. Inserting an existing snippet works as before.
  • [4.128.1] Behaviour change: bootstrap-image.php no longer fetches remote URLs on the server. It used to call getimagesize() on the imgSrc request value, which made the server request any URL. It now calls getimagesize() only on a local file inside DOCUMENT_ROOT/files/uploads (a query string is ignored). For any other imgSrc (a URL or another path) it decides by the jpg|jpeg|png|gif extension alone and builds the preview &lt;img>, which the browser loads itself. A path inside files/uploads that does not exist now also gets a (broken) preview instead of none.
  • [4.128.1] Behaviour change: bootstrap-image.php only probes for secure.php when images_path resolves inside DOCUMENT_ROOT/files/uploads; any other images_path shows the "Your images dir is not authorized" message. The editor sends /files/uploads, so nothing changes for it.
  • [4.128.1] Behaviour change: the dialogs ignore bootstrap_css_path from the URL. A fork that sets bootstrapCssPath in bootstrapConfig to a different stylesheet no longer sees it in the dialogs (the editor content still uses it). No fork does today.
  • [4.128.1] Behaviour change: the button dialog rebuilds the btnCode preview markup from a strict allow-list (tinymce_bootstrap_button_html() in conf/security.php). It keeps the tags a, button, input, span, i, b, strong, em, small and br, and only the attributes class, type, href, value, disabled, title, target and rel. A class is kept only when it is plain class names (letters, digits, _, - and spaces), and a href only when it is http, https, mailto, tel or relative and contains no quote (" or '), backtick, &lt;, >, or control or whitespace character other than a plain space (the dialog's own JS reads both back and concatenates them into HTML). Everything else is dropped: other tags (with their content), on* handlers, id, style, role, aria-* and every data-* attribute (Bootstrap's data API hands href and data-target to jQuery as a selector or markup), javascript: and data: links, a class or href that fails the rules above, and any href containing &lt;. Nothing visible is lost for a button re-opened in the dialog, because the plugin's own HTML clean-up already strips id, style, data-*, role and aria-* when the dialog saves.
  • [4.128.1] Check for overrides: seajets-admin customised bootstrap-snippet.php (Delete disabled). Take upstream on merge, since read-only supersedes it. v4-heals customises snippets/snippets.xml, which this change does not touch. The 4.4.3-2.3.2/ copy and the jquery-file-tree/connectors/ directory are deleted, so forks drop them on merge.
  • [4.128.1] Check for overrides: conf/security.php is new and defines tinymce_bootstrap_language(), tinymce_bootstrap_uploads_dir(), tinymce_bootstrap_uploads_file(), tinymce_bootstrap_path_within() and tinymce_bootstrap_button_html(), each guarded with function_exists. conf/conf.php now also defines $site_url_html, the escaped SITE_URL, which the breadcrumb, pager and pagination dialogs echo.
  • [4.128.1] Ops: web-server deny rules for .php under /ui/ are optional defence in depth and not part of this change.
  • [4.128.0] No DB migration and no composer change in this release. New settings: the optional env var APP_MAX_ACTIVE_TAG_FILTERS (#940, default 4) and registry rows written from the admin (#918 Courier Center locker settings, #935 top brands).
  • [4.128.0] Check for overrides: Advisable\Domains\StorefrontConfig\StorefrontConfigProvider gained a tenth constructor argument (BrandsConfigResolver $brands) and a tenth all() entry; a fork that constructs the provider by hand or overrides all() must follow. Adv_settings gained externalBrands(), externalBrandsValidation(), externalBrandsConfig() and the public form-validation callback externalBrandsVendorExists(); a fork's Settings controller defining methods of the same names shadows them. A fork that keeps its own application/config/admin_menu.php or application/views/admin/footer_js.php must merge both additions: the settings/externalBrands menu item (without it the page has no menu entry) and the admin/settings/external_brands block in footer_js.php (without it the two-list picker does not work).
  • [4.128.0] UI Update: the REST changelog entry for #935 in application/config/rest_api_versions.php (REST 1.117). Additive: one new object on the data envelope, brands: { topVendorIds: int[] }, read from the new Registry key BRANDS_EXTERNAL.TOP_VENDOR_IDS. The order is the merchant's; ids are deduplicated and checked against live shop_vendor rows on every read, so a deleted brand drops out. [] means render no row; a client never substitutes its own list, and resolves the ids against its own GET /rest/product/vendor?filter[hasSellableProducts]=1 list, so a top brand with nothing to buy is not shown. The other sections are unchanged.
  • [4.128.0] Admin: a new page under Settings (roles Advisable, Admin). Saving an id that is not an existing brand is refused. The website is untouched: its home carousel still follows «Top» / «Κορυφαίο» on the brand form and the brands list's drag order, which this neither reads nor writes. Nothing is published until a merchant saves the page: every shop starts with [], so an external frontend shows no top-brands row until the page is filled in.
  • [4.128.0] Behaviour change: a refused back-office request now answers 401 with only the blockaccess page. Before, the action also ran, and a GET of a refused settings/* page answered 500 ("Unable to load the requested file"). No staff access that works today is removed. The admin menu shows 27 entries to a role their controller refuses: Developer on most settings/* pages and cookies_admin, Orders on settings and the notes pages, Marketing on products_admin and badges, CMS on the video, map and event pages, Media on event categories. Every one of them already failed for that role (500 or 404), so the visible change for those staff is a clean "not allowed" page instead of an error page. Tell store owners whose staff hold none of Advisable and Admin that these links will say "not allowed". To give someone access, change that user's roles, not the code.
  • [4.128.0] Check for overrides: system/core/CodeIgniter.php now calls the requested method through the new dispatch_controller_method() in system/core/Common.php, which skips a controller whose isRequestRefused() is true. A fork whose copies of these two files are upstream's own gets both changes through the normal upstream merge. A fork that keeps its own edited copy of either file must carry both changes over by hand, or its constructor-gated actions keep running (its own gated controllers under application/modules/** included). To spot an edited copy before the merge, first add and fetch the adveshop4 remote as upstream in the fork (git remote add upstream git@bitbucket.org:devteamadvisable/adveshop4.git && git fetch upstream; most fork checkouts have only origin, and a stale fetch compares against the wrong commit), then run git diff upstream/master...HEAD -- system/core/CodeIgniter.php system/core/Common.php in the fork: no output means both files are upstream's own. Use this three-dot form, not $(git merge-base …): without upstream it fails with bad revision, whereas a failed merge-base leaves git diff comparing the working tree and printing nothing, which reads as "unedited". After the merge, check every fork: grep -c 'dispatch_controller_method($CI' system/core/CodeIgniter.php and grep -c 'function dispatch_controller_method' system/core/Common.php must each print 1; 0 means the fork is still unprotected. The old call_user_func_array(…&$CI…) dispatch line is no signal: every fork has it until it takes this release (array(&$CI, …) before 4.88.0, [&$CI, …] since). Adv_base_controller::error_401() now sets the refusal before it renders anything, so a fork that overrides error_401() without calling the parent keeps the old behaviour and must call parent::error_401(). A fork's own constructor gates and _remap() overrides need no change.
  • [4.128.0] Check for overrides: each of the ten classes gains protected function httpClient(array $config = []): Client, which the request methods call instead of new Client(...). A fork subclass that declares its own httpClient() with another signature must match it. A fork that overrides one of the request methods (doRequest, request, doPostRequest, doGetRequest, doPutRequest, sendMessage, getSmsStatus) keeps its own catch and should apply the same guard ($e instanceof RequestException && $e->hasResponse()).
  • [4.128.0] BulkerSms logs a network error without the request's query string, which carries its auth_key.
  • [4.128.0] Behaviour change: REST now hides couriers the storefront hides: no region availability for the country, a cart below MIN_ORDER_AMOUNT, or no options row for the country. Headless clients that relied on these couriers appearing will stop seeing them. Externally priced DHL and ASAP's negative-stock check are still not applied to REST.
  • [4.128.0] Check for overrides: the Advisable\Domains\Checkout\ShippingCalculator constructor has a new parameter, CountyAvailabilityRepository $countyAvailabilityRepository, after $postAvailabilityRepository. A fork that constructs the calculator directly, or whose subclass declares its own constructor, must pass it. calculate() has a new required fifth parameter, float $orderAmount (the gross products total before the coupon), before $cartWeight: every caller must pass it, and a fork overriding calculate() must match. isPostalAvailable() is removed, and resolveCost() now takes the full whitespace-stripped postal code instead of its 3-digit prefix. customTransportCost() and applyTransportSurcharge() are unchanged.
  • [4.128.0] Adv_product_model gains the public getOfferableListingTagIds(). It returns null when a facet statement fails, and the sidebar then keeps every tag instead of hiding them all; the null is not served from Pscache, so the next render retries. listingTagFilterPredicate() gets two optional trailing parameters, ?int $candidateCategoryId = null, ?string $candidateColumn = null. queryForListingVariationsFilters() and queryForListingAttributeFilters() keep their signatures but now delegate to the new protected resolveListing*Groups() and joinListing*Groups() helpers.
  • [4.128.0] Check for overrides: a fork that overrides buildTagsSideMenu() does not get the filtering. Known as of 2026-10: Dioptra, Edructer, Elxis, Evripidis and Nautilus.
  • [4.128.0] Check for overrides: a fork that overrides getUsedTags() is unaffected as a label source: the facet only filters the rows it returns. Known as of 2026-10: Dioptra, Edructer, Elxis and FamilyPharmacy.
  • [4.128.0] Check for overrides: a fork that overrides queryForListingTagFilters() may have a listing that diverges from the upstream predicate the facet mirrors, so the offered options may not match what its listing returns. Known as of 2026-10: Discount, Dioptra, Edructer and Elxis.
  • [4.128.0] Check for overrides: the facet copies the non-tag clauses of the upstream getCatProductsProducts() and getCatProducts(), so a fork that overrides either keeps its own listing while the facet mirrors the upstream one. It calls getWhereProductsActive() and tagFiltersPrepare() through $this, so a fork's override of those does reach the facet, but it must keep the upstream builder side effects and return shape. Where the listing and the facet diverge, the sidebar can offer a tag whose click returns nothing, or hide one that would return products. Nothing fatals. Known as of 2026-10: getCatProductsProducts() in Blustore, Dioptra, Discount, Edructer, Elxis, Evripidis, Flioukas, Heals, OptikaLiolios and Pharmacythess; getWhereProductsActive() in Dioptra and Elxis; getCatProducts() in Dioptra, Elxis, Evripidis and Smile; tagFiltersPrepare() in Edructer.
  • [4.128.0] Check for overrides: Adv_product_categories::index() now stores $this->internal['activeTagFilters'], $this->internal['productQueryConditions'] and $this->internal['filter_vendor'], which the facet reads when catDynExtra() builds the sidebar. A fork that re-implements index() without calling parent::index() must set the same three keys before catDynExtra(). Without productQueryConditions the filtering is skipped and every tag stays listed. Without activeTagFilters or filter_vendor the facet is computed as if no tag or vendor filter were active, so it can offer or hide the wrong options. Known as of 2026-10: Blustore, Dioptra, Edructer, Elxis, Epharmadora, Evripidis, Heals, Pharm16 and Pointpharmacy.
  • [4.128.0] Check for overrides: Pscache::model(), Pscache::library(), Pscache::_call() and Pscache::write() gained a trailing optional parameter ($cacheNegative / $negative). A fork that overrides any of them must add it to stay signature-compatible. The opt-in call sites (Adv_eshop::baseProduct(), Adv_product_categories::index()) pass it positionally, so an override without it silently keeps the old behaviour rather than failing.
  • [4.128.0] A negative result on these paths now lives for the storefront cache TTL (cache_l2_default_expires, 86400 s by default), the same staleness positive results already had. Saving a category clears the product_category_model cache, so a new category URL is unaffected. Saving a product does not clear the product_model cache. So a product published under a URL that was already requested and 404'd stays that way until the TTL expires or the cache is cleared manually. The same applies to a category listing that had zero products, whether an empty category that then gets its first product or a filter combination that had no matches.
  • [4.128.0] An opted-in call during which any DB statement failed caches nothing, not even a non-empty or [] result. Example: getCatProducts() returns [] when its base-category query fails. The advmysqli driver now counts failed statements (CI_DB_advmysqli_driver::$failedQueryCount), because db->error() reports only the last one. A fork whose own DB driver does not keep this count falls back to that last-statement check.
  • [4.128.0] Forks that re-implement Adv_eshop::baseProduct() or Adv_product_categories::index() do not opt in and keep the previous behaviour (negatives recomputed on every request).
  • [4.128.0] Check for overrides: the forks that override queryForListingTagFilters() are Discount, Dioptra, Edructer and Elxis. They will not receive this fix through the upstream merge, and no merge conflict will show it. Discount already ships an equivalent fork-local fix, custom/Domains/Product/Tag/ListingTagFilterQuery.php, and may drop its override after merging. Dioptra, Elxis and Edructer still call the unchanged queryForTag() from their overrides, so they keep the fan-out.
  • [4.128.0] New protected listingTagFilterPredicate(array $filters): ?string on Adv_product_model; queryForTag() and tagFiltersPrepare() are unchanged.
  • [4.128.0] Check for overrides: Adv_product_categories::index() now calls the guard if ($this->tooManyActiveTagFilters($activeTagFilters)) { $this->error410(); return; } right after the tag-filter dedup block. A fork that re-implements index() without calling the parent must add the same guard at the same spot, or the cap does not apply to it. Known as of 2026-10: Blustore, Dioptra, Edructer, Elxis, Epharmadora, Evripidis, Heals, Pharm16 and Pointpharmacy. The new protected seams maxActiveTagFilters(): int and tooManyActiveTagFilters(mixed $activeTagFilters): bool are overridable.
  • [4.128.0] Deployment: optional env var APP_MAX_ACTIVE_TAG_FILTERS (int, default 4). Unset, blank, non-numeric and values <= 0 all mean 4. Documented in .env.example.
  • [4.128.0] Security: logs written before this fix may still hold passwords and personal data. Ops follow-up for purging or rotating them: #937.
  • [4.128.0] The exception message is still logged as-is. The REST client response is unchanged (HTTP 500 {"message":"Internal server error."}).
  • [4.128.0] Check for overrides: a client fork that carries its own application/controllers/RouterDispatcher.php must replace $e->getTrace() with \Advisable\Logger\ExceptionLogContext::fromThrowable($e) at every catch that passes $e->getTrace() (some fork copies have three such calls). A fork whose application/helpers/log_helper.php diverged from upstream also lacks the #211 secret redactor.
  • [4.128.0] Check for overrides: a client fork that carries its own src/Rest/Support/SafeActionDispatch.php must replace $e->getTrace() in invokeControllerAction() with \Advisable\Logger\ExceptionLogContext::fromThrowable($e).
  • [4.128.0] Check for overrides: application/helpers/log_helper.php is fork-owned. A fork whose copy diverged keeps the leaking [stacktrace] rendering (15-character argument prefixes) until it passes the same argument-stripping parser to includeStacktraces(true, $parser) in its _log_helper_build_formatter().
  • [4.128.0] Check for overrides: a fork that carries its own system/core/Common.php with $exception->getTrace() in _exception_handler() must apply the same change, guarded: pass \Advisable\Logger\ExceptionLogContext::fromThrowable($exception) when class_exists(\Advisable\Logger\ExceptionLogContext::class), otherwise [], never getTrace().
  • [4.128.0] Check for overrides: Adv_checkout::apcopay_status() now logs the exception class, file:line and an argument-free trace in its error message instead of getTraceAsString(). A fork whose application/modules/checkout/controllers/Checkout.php overrides apcopay_status() keeps its own getTraceAsString() call until it applies the same change.
  • [4.128.0] Check for overrides: a client overriding Settings::google() must call $this->form_validation->run($this), or the v3 secret still cannot be saved. v4-dioptra carries a temporary override (application/modules/settings/controllers/Settings.php, commit d1587540e8) that is identical to the fixed upstream method — remove it on the upstream merge that brings this fix.
  • [4.128.0] Security: until now the public mail_history/view/{id} URL returned any stored customer email to anyone who asked, with sequential ids, including password-reset tokens and gift-card codes. Ship this as an expedited patch.
  • [4.128.0] Behaviour change: callers without an admin session are redirected to advisable/login. Logged-in admins without the Advisable, Admin or Orders role get the 401 page. Non-numeric or unknown ids, and any method other than view under mail_history/, get a 404. The body is served with Content-Security-Policy: sandbox, so scripts stored in an email do not run in the Preview popup. The Preview link on the admin customer page keeps working for the allowed roles.
  • [4.128.0] Check for overrides: Adv_customer_mail_history now extends Admin_c instead of Front_c and dispatches only view through its own _remap(). A fork whose Customer_mail_history adds methods, its own view() or its own _remap() must review it: added methods now return a 404 unless _remap() is overridden. view($id) stays untyped to avoid a signature clash. No fork in the local checkouts overrides it today. The URL and the application/config/routes.php route are unchanged, so no fork route edit is needed.
  • [4.128.0] Check for overrides: FcmClient::send() and FcmAccessTokenProvider::token() take a new optional last parameter, ?float $deadline = null. A fork that extends either class and overrides the method must add it, or PHP refuses the override.
  • [4.128.0] A shop whose APP_DEFERRED_TASK_BUDGET_SECONDS is below 3 still skips the after-response send. Its order pushes keep arriving through the DispatchNotifications job within a minute.
  • [4.128.0] Check for overrides: forks that override AdvCancelPendingGiftCards::cancelPendingPaypalAdvancedOrders() keep the old behaviour. The new payPalOrderDetails() seam and Advisable\PaymentGateways\PayPal\PayPalCaptureStatuses (now also used by AdvCancelIncompleteOrders) are additive.
  • [4.128.0] Check for overrides: OutboxStore::createMessage() and queueDeliveries() are replaced by enqueue() (queueDeliveries() is now private). Both arrived in 4.127.0, so only a fork that already extended them is affected. CampaignStore and OutboxStore share the new Advisable\Domains\Notification\Support\Transactional trait.
  • [4.128.0] Check for overrides: Adv_order_model has new protected surface: ordersListAdminCountNeedsJoins(array $filters): bool and the property $ordersListAdminCountBound. ordersListAdminIdRange() keeps its signature but now also bounds when the count flag is on. getOrdersListAdminCount() sets the flag only on the joinless path, around its ordersListAdminWhere() call, and resets it in a finally.
  • [4.128.0] Check for overrides: Blustore and Edructer override getOrdersListAdminCount() without calling the parent, so they keep their own count and are not affected. Dioptra, Elxis, FamilyPharmacy, Flioukas, Gea, Lulula, OptikaLiolios and Smile replace ordersListAdminWhere() but use the core count: they get the joinless path (no LEFT JOINs, COUNT(DISTINCT)) and no id bound or hint, because their where never applies it. All their references to the three LEFT-joined tables sit inside the five join-triggering filter branches, so dropping the joins cannot cause an unknown-column error. Discount and Nautilus call parent::ordersListAdminWhere(), so they get the bound and the hint on the joinless path.
  • [4.128.0] Check for overrides: a fork where-builder that adds a predicate on skroutz_orders, shopflix_orders or shop_order_tags_lp under a filter key other than searchFor, shopflixCourier, smartcartCourier, pickup_location or tags would now fail on the joinless count with an unknown column. Either add the key to ordersListAdminCountNeedsJoins() or use an uncorrelated subquery. No current fork does this.
  • [4.128.0] Behaviour change: admin orders list with a status filter and an end date but no start date returns only orders whose status date is on or before the end date (23:59:59). Before, the end date was ignored.
  • [4.128.0] Check for overrides: the bound and the hint apply only to a search with a date window, and only through the core ordersListAdminWhere(). Forks that replace ordersListAdminWhere() keep today's SQL, with no bound and no hint: Blustore, Dioptra, Edructer, Elxis, FamilyPharmacy, Flioukas, Gea, Lulula, OptikaLiolios, Smile (Blustore and Edructer also replace getOrdersListAdminCount()). Discount and Nautilus call parent::ordersListAdminWhere() and parent::getOrdersListAdminResults(), so they get the bound and the hint like the core (Discount's Jinius-code search blanks searchFor before calling the parent, so that path gets neither). Pharm16 and Services replace getOrdersListAdminResults() with their own SQL but use the core where and count: their results get the bound without the hint, and the core count gets both.
  • [4.128.0] Check for overrides: Adv_order_model has new protected surface: ordersListAdminIdRange(array $filters): ?array, ordersListAdminIdEdges(string $dateColumn, ?string $startDate, ?string $endDate, ?string $status): array, ordersListAdminFromTable(): string and the properties $ordersListAdminIdBound and $ordersListAdminIdEdgesCache. ordersListAdminIdEdges() runs one MIN/MAX pre-query over the whole window (both date predicates) and memoises it per SQL on the model instance, so the results and count of one page share it. If the pre-query fails (with db_debug off), the list falls back to today's unbounded SQL without the hint, and nothing is memoised. ordersListAdminFromTable() consumes the hint flag: the hint is emitted only for the first compile after a core ordersListAdminWhere() call that applied a bound.
  • [4.128.0] The two admin export methods that use the core where-builder (Adv_order_model::getOrdersListAdminExport(), getOrdersListIDAdminExport(), and through them the export actions in Adv_orders_admin) now also run the MIN/MAX id pre-query when a searchFor term and a date window are set, and carry the exact shop_order.id bound, but compile without the FORCE INDEX (PRIMARY) hint. Same rows as before (the bound is exact).
  • [4.128.0] REQUIRES npm run all-production (only for a fork that builds its own bundles; this release ships them rebuilt): storefront Vue change (assets/main/vue/SmartPoint/) and a small back-office change (assets/admin/js/order/AdminOrderSmartPoints.vue).
  • [4.128.0] Check for overrides: forks that override any of these must carry the locker handling over, or locker orders silently lose it:
    • createVoucherCenter() in AdvSetPendingWithVoucher now reads the order's stored locker (order_smart_point_model) and passes lockerCode to Center::createShipment(). A fork copy of the old body will not send LockerDeliveryInfo, so a locker order would ship to the customer's home address.
    • Adv_transporters_model::saveCenterSettings() stores five new keys and derives USE_TRANSPORTER_WIDGET from the delivery option; allSettings() now also exposes BOXNOW_PARTNER_ID; Adv_transporters_admin::validateSettingsCENTER() validates the new fields.
    • Advisable\Transporters\QualcoProvider gained two protected hooks: extraShipmentParams(array $voucherData): array (default [], merged into the Shipment payload) and voucherTemplate(): string (default the configured template). Center overrides both. A fork subclass that already defines either name will clash.
    • AdvSetPendingWithVoucher has two new protected methods used by createVoucherCenter(): withLockerCode() and withCyprusMobile() (for a Cyprus destination the Cyprus mobile becomes the consignee mobile).
    • Transporters::protectData() now also exposes boxNowPartnerId on each transporter object sent to the storefront, so the legacy /api/transporters/* JSON gains that additive key.
    • SmartPointWidget.js / SmartPointWidget.vue: CENTER joins the widget maps; the BOX NOW script is reloaded when the partner id or the map container changes (window.currentBoxNowWidgetKey), a locker pick is handled once (window.lastBoxNowSelection) and routed to the transporter that is active at that moment. A fork that overrides these files must carry this over, or switching between BOXNOW and CENTER on one checkout breaks the second map.
    • Advisable\Transporters\Center\CenterConfig gained constants (DEFAULT_LOCKER_PREFIX, DEFAULT_BOXNOW_PARTNER_ID, CYPRUS_LOCKER_PREFIX, LOCKER_TEMPLATE), properties (deliveryOptionType, deliveryOption, boxNowPartnerId, lockerPrefix) and the public offersLockerDelivery(). SmartPointsCENTER::shouldFetchSmartPoints() now returns false (the locker comes from the widget).
    • SmartPointMixin.js now opens the widget for the delivery country (the shipping country when it differs from the billing one) instead of always the billing country, which also applies to BOXNOW. AdminOrderSmartPoints.vue only offers the pick-up checkbox for a transporter that has a station list.
    • Adv_orders_admin (edit() and repeat()): a new protected carryStoredSmartPoint() runs before validation and puts the order's stored smart point back into the posted data when the staff keeps the same transporter for a delivery to the customer. Before, saving an edited or repeated order silently dropped the point for every smart-point carrier (a pick-up-only carrier could not be saved at all). A fork overriding either method must call it.
    • SmartPointsDataCENTER (previously an empty stub) now stores the selected locker like SmartPointsDataBoxNow; BoxNowWidget.vue renders its map in #boxnowmap / #boxnowmap-&lt;class>.
  • [4.128.0] UI Update: application/views/admin/transporters/settings/centerSettings.php has new fields (Delivery Option, BOX NOW Partner ID, Locker hub prefix, cash on delivery) and a new template option; forks overriding that view need to add them.
  • [4.128.0] Scope: the locker works in the rendered storefront through the BOX NOW widget. REST/headless checkout is not supported: SmartPointsCENTER::fetch() stays a stub (the only locker source is BOX NOW, which would need credentials Courier Center says are not required). For a Courier Center shop that opts in, POST /rest/checkout/shipping publishes deliveryOptionType '0' or '2' with requiresCarrierData: true, and the smart-point catalog answers 200 []. A headless order on "Pick up" is therefore created without a locker and ships to the customer's home address. The same goes for back-office order entry: the locker cannot be picked there (no station list), so staff can place a Courier Center order only in "All" mode, as a home-delivery order; in "Pick up" mode the back-office refuses it because a locker is required. Supported destinations: Greece and Cyprus (checked against Courier Center's test API; Bulgaria is not open on their side and the widget refuses it for CENTER). For Cyprus the hub prefix is always ATH (Courier Center routes them straight to its Athens hub), whatever hub the shop uses for Greece, and the order's Cyprus mobile is preferred as the consignee mobile (BOX NOW accepts Greek and Cyprus mobiles; the test API rejected a Greek one for a Cyprus consignee). Only shipments picked up in Greece and delivered in Cyprus are covered; a shop that ships from a warehouse in Cyprus cannot use this.
  • [4.128.0] Ops: the voucher template for lockers is applied at print time and is shop-wide: if a shop later switches back to "Delivery to my place", reprinting the voucher of an existing locker order uses the stored template, which Courier Center rejects for locker shipments; set the stored template to singlepdf_100x150 first. "Allow cash on delivery for lockers" only takes effect in "Pick up" mode; under "All", locker orders can still pay cash on delivery (BoxNow behaves the same).
  • [4.128.0] Ops: cash on delivery to a locker is supported (Courier Center collects through a payment link). If a customer pays and does not collect the parcel, the amount is not refunded to the customer automatically: BOX NOW pays it to Courier Center, so such a refund is handled with Courier Center. Rare, but worth telling the merchant.
  • [4.128.0] Ops: tracking works like for door-to-door shipments, with the ShipmentNumber (stored as the voucher) as the identifier. For locker shipments Courier Center reports status 116 when the parcel reaches the BOX NOW network, 24 when it is in the locker, 29 when delivered and 28 when delivery fails (the parcel then returns to Courier Center). Only 29 is treated as delivered.
  • [4.128.0] Ops: set the Locker hub prefix per shop to match where it ships from (SKG for Thessaly/Macedonia/Thrace, otherwise ATH). Locker shipments must be a single parcel that fits a Large Locker (36x45x60 cm) with a valid mobile number for the destination country (Greek for Greece, Cypriot for Cyprus); the platform does not check these, and the carrier rejects an order without one.
  • [4.128.0] No migration, no REST contract change. Settings are stored as new reg_key rows (DELIVERY_OPTION_TYPE, USE_TRANSPORTER_WIDGET, BOXNOW_PARTNER_ID, LOCKER_PREFIX, DELIVERY_OPTION).