Appearance
<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>
Version 4
version 4.128
- [4.128.1] fix(security):
/editor/upload, the TinyMCE image upload, no longer accepts anonymous uploads.Editornow extendsAdmin_cinstead ofBase_c, so everyEditoraction (upload,blank,index) needs a logged-in backend session of any role and redirects anonymous requests toadvisable/login; the long-dead commented-outisAdvisableUser()gate is removed.AdvUploadValidator::validate()now also decodes uploads whose extension isgif,jpg,jpeg,jpe,pngorwebpwithgetimagesize()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 uncaughtTypeError(#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/,languageis used only when it matches^[a-z]{2}_[A-Z]{2}$and that file exists in the plugin's ownlangs/, otherwiseen_EN(before, any.phpfile on the server could be included through it).jqueryFileTree.phplists only entries whoserealpath()is insideDOCUMENT_ROOT/files/uploads(before, it listed any directory, including ones outside the web root).bootstrap-image.phpopens only local files inside that directory, and only probessecure.phpthere. The 13 dialog pages escape every request value they echo (htmlspecialcharsin HTML,json_encodein JS) and theHost-derivedSITE_URL, and the dialogs always link the plugin's owncss/bootstrap.min.cssinstead of readingbootstrap_css_pathfrom the request. The snippet write endpointsadd-new-snippet.php,edit-snippet.phpanddelete-snippet.phpare deleted. The input guards live in the newconf/security.php. The unused4.4.3-2.3.2/copy, thejquery-file-tree/connectors/directory andjbimages/is_allowed.phpare deleted. - [4.128.0] feat(rest/storefront-config):
GET /rest/storefront-configgains abrandssection (#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_promoandshop_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 anysettings/*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 oferror_401()inside an action, and controllers that alreadyexitafter it, behave as before. - [4.128.0] fix(http): a network error to an external API no longer kills the run (#945). Twelve Guzzle
catchblocks in ACS, BOX NOW, the Qualco couriers (Courier Center, Taxydema), Cyprus Post, DHL, Omni messaging, Yuboto, Bulker SMS, Shopflix and Klarna calledhasResponse()/getResponse()on aConnectException, which has neither, so a connect, timeout, DNS or TLS error raised a fatalErrorinstead of the client's normal failure. On WeCare this failed the dailylegacy-cron-orders-transfer-statusjob 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/totalsand place-order now offer a courier by the same rule as the storefront (#934). A courier is offered when it hastransporters_options_pricingrows for the country, the products total before the coupon (the storefront'sorder_total) is at least itsMIN_ORDER_AMOUNT, and the destination is listed: the full postal code intransporters_posts_availabilities, or the county intransporters_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 theproduct_modelgroup. - [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 insystem/core/Common.php, the ApcoPay response validator (ApcoPay\Response) and the ApcoPay callback handler (Adv_checkout::apcopay_status()) logged$e->getTrace()orgetTraceAsString(), so withzend.exception_ignore_args = Offevery frame's arguments, such as a registering customer's plaintext password, email, name and mobile or ApcoPay gateway payloads, were written toapplication/logs/. They now log the newAdvisable\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()inapplication/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 ofrun($this)), so under HMVC thecallback_recaptchaV3SecretIsStorablerule was looked up on the CI super-object, never found, and always failed. Every non-empty v3 secret was refused with theAPP_ENCRYPTION_KEYerror, 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_historyextendsAdmin_cinstead ofFront_cand dispatches onlyviewthrough its own_remap(), which requires the Advisable, Admin or Orders role. The body is served through the CI output class withContent-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
DispatchNotificationsjob, 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 (newPush\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 theDispatchNotificationsjob'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 emptytran_ticketcancels, aCOMPLETEDcapture on any purchase unit accepts, aPENDINGcapture 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 withdb_debugoff.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_ordersandshop_order_tags_lpunless a filter needs them (#819, related #922).Adv_order_model::getOrdersListAdminCount()now has two paths. The join path is used when any ofsearchFor,shopflixCourier,smartcartCourier,pickup_locationortagsis non-empty, and runs exactly the previous SQL (the three LEFT JOINs, the INNER JOIN toshop_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 runsSELECT COUNT(DISTINCT shop_order.id) AS numRows FROM shop_order [FORCE INDEX (PRIMARY)] JOIN shop_customer ON ... WHERE .... The INNER JOIN toshop_customeris 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 exactshop_order.idrange of the date window (MIN/MAX pre-query; with no filters,MIN(id)overentry_datetime >= ORDERS_DEFAULT_SEARCH_DATE) together withFORCE 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
searchForterm is set,shop_order.idis 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 aMAX(id)bound on the same window). Without asearchForterm (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()) useFORCE INDEX (PRIMARY)together with that bound. ThesearchForbranches onshop_customer,skroutz_ordersandshopflix_ordersare now uncorrelated subqueries; the innerJOIN shop_customeris kept. Measured on pharmacydiscount production, whereorders_admin.htmhad 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
<statusDateColumn> <= endDate 23:59:59(#922, owner-approved AC4 exception). The guard used to checkstartDatetwice 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 ofsearchFor. 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
CENTERtransporter exactly as forBOXNOW, with Courier Center's own BOX NOWpartnerId), the locker is stored on the order through the existing smart-point flow, and voucher creation sends it to the Courier Center API asLockerDeliveryInfo(Code= BOX NOW locker id,Prefix=ATHorSKG, the BOX NOW hub:SKGfor shipments from Thessaly/Macedonia/Thrace,ATHfor 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 (defaultATH), Allow cash on delivery for lockers; the template list gainssinglepdf_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 (#boxnowmapfor BOXNOW,#boxnowmap-centerfor 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'sEditor.phpandAdvUploadValidator.phpunchanged, so they get this fix on their next upstream merge with no conflicts. The one manual step is edructer: it keeps its own rows indocs/decisions/README.md, so keep both rows in that hunk.evaspharmacy-adminwas checked only against a 2026-06-11 snapshot because its origin could not be fetched.- 3 still run the older CI3-
UploadEditorand need their own port: advisable-shop (Editor extends Adv_base_controller), inatural and nautilus (bothextends Base_c). The port is one line: change the parent class toAdmin_c, which exists in all three. Their CI3Uploadlibrary already checks image content withgetimagesize(), so the validator change does not apply to them. Do not copy upstream'sEditor.phpover theirs: theirapplication/config/uploader_settings.phphasupload_path = $_SERVER['DOCUMENT_ROOT'] . $config['img_path'].
- 3 still run the older CI3-
- [4.128.1] Check for overrides:
AdvUploadValidator(forks may extend it throughUploadValidator) gainsprotected function isUploadedFile(string $path): bool, a thin wrapper overis_uploaded_file()thatvalidate()now calls;protected function hasValidImageContent(string $filePath, string $extension): bool; andprotected const IMAGE_TYPE_EXTENSIONS. No existing method signature changed. A fork that overridesvalidate()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 toadvisable/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
allowEditsays, and the default snippets come from the trackedsnippets/snippets.xml: change them by commit. Inserting an existing snippet works as before. - [4.128.1] Behaviour change:
bootstrap-image.phpno longer fetches remote URLs on the server. It used to callgetimagesize()on theimgSrcrequest value, which made the server request any URL. It now callsgetimagesize()only on a local file insideDOCUMENT_ROOT/files/uploads(a query string is ignored). For any otherimgSrc(a URL or another path) it decides by thejpg|jpeg|png|gifextension alone and builds the preview<img>, which the browser loads itself. A path insidefiles/uploadsthat does not exist now also gets a (broken) preview instead of none. - [4.128.1] Behaviour change:
bootstrap-image.phponly probes forsecure.phpwhenimages_pathresolves insideDOCUMENT_ROOT/files/uploads; any otherimages_pathshows 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_pathfrom the URL. A fork that setsbootstrapCssPathinbootstrapConfigto 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
btnCodepreview markup from a strict allow-list (tinymce_bootstrap_button_html()inconf/security.php). It keeps the tagsa,button,input,span,i,b,strong,em,smallandbr, and only the attributesclass,type,href,value,disabled,title,targetandrel. Aclassis kept only when it is plain class names (letters, digits,_,-and spaces), and ahrefonly when it ishttp,https,mailto,telor relative and contains no quote ("or'), backtick,<,>, 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 everydata-*attribute (Bootstrap's data API handshrefanddata-targetto jQuery as a selector or markup),javascript:anddata:links, aclassorhrefthat fails the rules above, and anyhrefcontaining<. Nothing visible is lost for a button re-opened in the dialog, because the plugin's own HTML clean-up already stripsid,style,data-*,roleandaria-*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 customisessnippets/snippets.xml, which this change does not touch. The4.4.3-2.3.2/copy and thejquery-file-tree/connectors/directory are deleted, so forks drop them on merge. - [4.128.1] Check for overrides:
conf/security.phpis new and definestinymce_bootstrap_language(),tinymce_bootstrap_uploads_dir(),tinymce_bootstrap_uploads_file(),tinymce_bootstrap_path_within()andtinymce_bootstrap_button_html(), each guarded withfunction_exists.conf/conf.phpnow also defines$site_url_html, the escapedSITE_URL, which the breadcrumb, pager and pagination dialogs echo. - [4.128.1] Ops: web-server deny rules for
.phpunder/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\StorefrontConfigProvidergained a tenth constructor argument (BrandsConfigResolver $brands) and a tenthall()entry; a fork that constructs the provider by hand or overridesall()must follow.Adv_settingsgainedexternalBrands(),externalBrandsValidation(),externalBrandsConfig()and the public form-validation callbackexternalBrandsVendorExists(); a fork'sSettingscontroller defining methods of the same names shadows them. A fork that keeps its ownapplication/config/admin_menu.phporapplication/views/admin/footer_js.phpmust merge both additions: thesettings/externalBrandsmenu item (without it the page has no menu entry) and theadmin/settings/external_brandsblock infooter_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 thedataenvelope,brands: { topVendorIds: int[] }, read from the new Registry keyBRANDS_EXTERNAL.TOP_VENDOR_IDS. The order is the merchant's; ids are deduplicated and checked against liveshop_vendorrows 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 ownGET /rest/product/vendor?filter[hasSellableProducts]=1list, 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
blockaccesspage. Before, the action also ran, and a GET of a refusedsettings/*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 mostsettings/*pages andcookies_admin, Orders onsettingsand the notes pages, Marketing onproducts_adminandbadges, 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.phpnow calls the requested method through the newdispatch_controller_method()insystem/core/Common.php, which skips a controller whoseisRequestRefused()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 underapplication/modules/**included). To spot an edited copy before the merge, first add and fetch the adveshop4 remote asupstreamin the fork (git remote add upstream git@bitbucket.org:devteamadvisable/adveshop4.git && git fetch upstream; most fork checkouts have onlyorigin, and a stale fetch compares against the wrong commit), then rungit diff upstream/master...HEAD -- system/core/CodeIgniter.php system/core/Common.phpin the fork: no output means both files are upstream's own. Use this three-dot form, not$(git merge-base …): withoutupstreamit fails withbad revision, whereas a failedmerge-baseleavesgit diffcomparing 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.phpandgrep -c 'function dispatch_controller_method' system/core/Common.phpmust each print1;0means the fork is still unprotected. The oldcall_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 overrideserror_401()without calling the parent keeps the old behaviour and must callparent::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 ofnew Client(...). A fork subclass that declares its ownhttpClient()with another signature must match it. A fork that overrides one of the request methods (doRequest,request,doPostRequest,doGetRequest,doPutRequest,sendMessage,getSmsStatus) keeps its owncatchand should apply the same guard ($e instanceof RequestException && $e->hasResponse()). - [4.128.0]
BulkerSmslogs a network error without the request's query string, which carries itsauth_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\ShippingCalculatorconstructor 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 overridingcalculate()must match.isPostalAvailable()is removed, andresolveCost()now takes the full whitespace-stripped postal code instead of its 3-digit prefix.customTransportCost()andapplyTransportSurcharge()are unchanged. - [4.128.0]
Adv_product_modelgains the publicgetOfferableListingTagIds(). It returnsnullwhen a facet statement fails, and the sidebar then keeps every tag instead of hiding them all; thenullis not served from Pscache, so the next render retries.listingTagFilterPredicate()gets two optional trailing parameters,?int $candidateCategoryId = null, ?string $candidateColumn = null.queryForListingVariationsFilters()andqueryForListingAttributeFilters()keep their signatures but now delegate to the new protectedresolveListing*Groups()andjoinListing*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()andgetCatProducts(), so a fork that overrides either keeps its own listing while the facet mirrors the upstream one. It callsgetWhereProductsActive()andtagFiltersPrepare()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 whencatDynExtra()builds the sidebar. A fork that re-implementsindex()without callingparent::index()must set the same three keys beforecatDynExtra(). WithoutproductQueryConditionsthe filtering is skipped and every tag stays listed. WithoutactiveTagFiltersorfilter_vendorthe 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()andPscache::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 theproduct_category_modelcache, so a new category URL is unaffected. Saving a product does not clear theproduct_modelcache. 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. Theadvmysqlidriver now counts failed statements (CI_DB_advmysqli_driver::$failedQueryCount), becausedb->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()orAdv_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 unchangedqueryForTag()from their overrides, so they keep the fan-out. - [4.128.0] New protected
listingTagFilterPredicate(array $filters): ?stringonAdv_product_model;queryForTag()andtagFiltersPrepare()are unchanged. - [4.128.0] Check for overrides:
Adv_product_categories::index()now calls the guardif ($this->tooManyActiveTagFilters($activeTagFilters)) { $this->error410(); return; }right after the tag-filter dedup block. A fork that re-implementsindex()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 seamsmaxActiveTagFilters(): intandtooManyActiveTagFilters(mixed $activeTagFilters): boolare 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.phpmust 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 whoseapplication/helpers/log_helper.phpdiverged 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.phpmust replace$e->getTrace()ininvokeControllerAction()with\Advisable\Logger\ExceptionLogContext::fromThrowable($e). - [4.128.0] Check for overrides:
application/helpers/log_helper.phpis fork-owned. A fork whose copy diverged keeps the leaking[stacktrace]rendering (15-character argument prefixes) until it passes the same argument-stripping parser toincludeStacktraces(true, $parser)in its_log_helper_build_formatter(). - [4.128.0] Check for overrides: a fork that carries its own
system/core/Common.phpwith$exception->getTrace()in_exception_handler()must apply the same change, guarded: pass\Advisable\Logger\ExceptionLogContext::fromThrowable($exception)whenclass_exists(\Advisable\Logger\ExceptionLogContext::class), otherwise[], nevergetTrace(). - [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 ofgetTraceAsString(). A fork whoseapplication/modules/checkout/controllers/Checkout.phpoverridesapcopay_status()keeps its owngetTraceAsString()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-dioptracarries a temporary override (application/modules/settings/controllers/Settings.php, commitd1587540e8) 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 thanviewundermail_history/, get a 404. The body is served withContent-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_historynow extendsAdmin_cinstead ofFront_cand dispatches onlyviewthrough its own_remap(). A fork whoseCustomer_mail_historyadds methods, its ownview()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 theapplication/config/routes.phproute are unchanged, so no fork route edit is needed. - [4.128.0] Check for overrides:
FcmClient::send()andFcmAccessTokenProvider::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_SECONDSis below 3 still skips the after-response send. Its order pushes keep arriving through theDispatchNotificationsjob within a minute. - [4.128.0] Check for overrides: forks that override
AdvCancelPendingGiftCards::cancelPendingPaypalAdvancedOrders()keep the old behaviour. The newpayPalOrderDetails()seam andAdvisable\PaymentGateways\PayPal\PayPalCaptureStatuses(now also used byAdvCancelIncompleteOrders) are additive. - [4.128.0] Check for overrides:
OutboxStore::createMessage()andqueueDeliveries()are replaced byenqueue()(queueDeliveries()is now private). Both arrived in 4.127.0, so only a fork that already extended them is affected.CampaignStoreandOutboxStoreshare the newAdvisable\Domains\Notification\Support\Transactionaltrait. - [4.128.0] Check for overrides:
Adv_order_modelhas new protected surface:ordersListAdminCountNeedsJoins(array $filters): booland 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 itsordersListAdminWhere()call, and resets it in afinally. - [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 replaceordersListAdminWhere()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 callparent::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_ordersorshop_order_tags_lpunder a filter key other thansearchFor,shopflixCourier,smartcartCourier,pickup_locationortagswould now fail on the joinless count with an unknown column. Either add the key toordersListAdminCountNeedsJoins()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 replaceordersListAdminWhere()keep today's SQL, with no bound and no hint: Blustore, Dioptra, Edructer, Elxis, FamilyPharmacy, Flioukas, Gea, Lulula, OptikaLiolios, Smile (Blustore and Edructer also replacegetOrdersListAdminCount()). Discount and Nautilus callparent::ordersListAdminWhere()andparent::getOrdersListAdminResults(), so they get the bound and the hint like the core (Discount's Jinius-code search blankssearchForbefore calling the parent, so that path gets neither). Pharm16 and Services replacegetOrdersListAdminResults()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_modelhas new protected surface:ordersListAdminIdRange(array $filters): ?array,ordersListAdminIdEdges(string $dateColumn, ?string $startDate, ?string $endDate, ?string $status): array,ordersListAdminFromTable(): stringand the properties$ordersListAdminIdBoundand$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 (withdb_debugoff), 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 coreordersListAdminWhere()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 inAdv_orders_admin) now also run the MIN/MAX id pre-query when asearchForterm and a date window are set, and carry the exactshop_order.idbound, but compile without theFORCE 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()inAdvSetPendingWithVouchernow reads the order's stored locker (order_smart_point_model) and passeslockerCodetoCenter::createShipment(). A fork copy of the old body will not sendLockerDeliveryInfo, so a locker order would ship to the customer's home address.Adv_transporters_model::saveCenterSettings()stores five new keys and derivesUSE_TRANSPORTER_WIDGETfrom the delivery option;allSettings()now also exposesBOXNOW_PARTNER_ID;Adv_transporters_admin::validateSettingsCENTER()validates the new fields.Advisable\Transporters\QualcoProvidergained two protected hooks:extraShipmentParams(array $voucherData): array(default[], merged into theShipmentpayload) andvoucherTemplate(): string(default the configured template).Centeroverrides both. A fork subclass that already defines either name will clash.AdvSetPendingWithVoucherhas two new protected methods used bycreateVoucherCenter():withLockerCode()andwithCyprusMobile()(for a Cyprus destination the Cyprus mobile becomes the consignee mobile).Transporters::protectData()now also exposesboxNowPartnerIdon each transporter object sent to the storefront, so the legacy/api/transporters/*JSON gains that additive key.SmartPointWidget.js/SmartPointWidget.vue:CENTERjoins 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\CenterConfiggained constants (DEFAULT_LOCKER_PREFIX,DEFAULT_BOXNOW_PARTNER_ID,CYPRUS_LOCKER_PREFIX,LOCKER_TEMPLATE), properties (deliveryOptionType,deliveryOption,boxNowPartnerId,lockerPrefix) and the publicoffersLockerDelivery().SmartPointsCENTER::shouldFetchSmartPoints()now returnsfalse(the locker comes from the widget).SmartPointMixin.jsnow 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.vueonly offers the pick-up checkbox for a transporter that has a station list.Adv_orders_admin(edit()andrepeat()): a new protectedcarryStoredSmartPoint()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 likeSmartPointsDataBoxNow;BoxNowWidget.vuerenders its map in#boxnowmap/#boxnowmap-<class>.
- [4.128.0] UI Update:
application/views/admin/transporters/settings/centerSettings.phphas 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/shippingpublishesdeliveryOptionType'0'or'2'withrequiresCarrierData: true, and the smart-point catalog answers200 []. 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 forCENTER). For Cyprus the hub prefix is alwaysATH(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_100x150first. "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 (
SKGfor Thessaly/Macedonia/Thrace, otherwiseATH). 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_keyrows (DELIVERY_OPTION_TYPE,USE_TRANSPORTER_WIDGET,BOXNOW_PARTNER_ID,LOCKER_PREFIX,DELIVERY_OPTION).