Osclass 8.3.1 is a major maintenance and security-focused release that introduces full compatibility with PHP 8.5, a significant rework of session and cookie handling, database-wide UTF8MB4 support for emojis, and numerous fixes and enhancements across the backoffice, search system, caching, routing, email handling, and API behavior.
This update strengthens security, improves stability, and resolves several long-standing edge cases. Due to the scope of internal changes, administrators should carefully review upgrade notes before deployment.
Osclass 8.3.1 fully supports PHP 8.5. All major internal and third-party libraries used by Osclass have been updated accordingly, including the PHP mailer. This ensures forward compatibility with modern hosting environments and improves long-term maintainability.
A significant internal redesign of session and cookie handling has been implemented. This change affects how cookies are defined, stored, encoded, and transmitted by browsers.
These changes significantly reduce exposure to cross-site scripting and man-in-the-middle attacks.
If a cookie must be accessible from JavaScript, its key must:
_unsercure, _unsec, or _js, orocjs_The cookie key must not start with oc_. Example valid keys include my_id_unsercure or secret_key_unsecure.
New standardized functions were introduced to manage cookies consistently:
_get_set_dropAdditional helper wrappers were added:
osc_get_cookie(), osc_set_cookie(), osc_drop_cookie()osc_get_session(), osc_set_session(), osc_drop_session()osc_get_param()osc_get_view()This resolves issues with unstable cookies caused by non-friendly URLs and improves compatibility with plugins such as Saved Items.
Important: After upgrade, users and administrators may be logged out and browser cookies may need to be cleared.
Osclass 8.3.1 introduces full UTF8MB4 support, enabling proper emoji handling and improved international compatibility.
During upgrade, Osclass attempts to convert:
The default charset and collation are now utf8mb4 and utf8mb4_unicode_ci.
If the conversion fails due to database limitations, administrators can define:
UPGRADE_UTF8MB4_SOFT
This performs a partial upgrade only. Remaining SQL statements can be retrieved using:
osc_utf8mb4_sqls()
These statements may then be executed manually in phpMyAdmin or another database tool.
Search behavior received multiple fixes and enhancements:
iPerPage instead of iPagesize.osc_search_url() no longer includes iPage when page number is ≤ 1.Several critical cache-related bugs were resolved:
Alert-related cache behavior remains unchanged.
Routing capabilities were significantly expanded:
sParams, enabling flexible parameter mapping.Example:
sParams=param1,value1/param2,value2
Results in:
param1=value1, param2=value2
New helper functions:
osc_get_prev_url()osc_get_next_url()osc_static_page_url_from_page($page, $locale)Email handling was improved in multiple areas:
osc_email_template_create($internal_name, $title, $text) osc_email_template_delete($internal_name)
.log file from oc-content..po files).oc-content/uploads/temp).oc-admin and oc-content folders.Osclass 8.3.1 is a critical release focused on security, modern PHP compatibility, database encoding standards, and platform stability. The cookie and session rework alone represents a major security milestone, while UTF8MB4 support ensures future-proof internationalization.
Due to the scope of internal changes, administrators are strongly advised to perform full backups before upgrading and test custom plugins and themes thoroughly.