Error updating ad
« on: March 19, 2026, 06:02:55 AM »
After updating PHP to version 8.2, an error occurs when updating the ad. But the ad is updated, even though time passes. If you use the sigma template, no error occurs; only warnings appear in the logs.
I use my own template, which I wrote based on the Sigma template. Help me figure this out

*

MB Themes

Re: Error updating ad
« Reply #1 on: March 19, 2026, 11:36:16 AM »
Try to update your osclass, seems like some very specific issue.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: Error updating ad
« Reply #2 on: March 20, 2026, 04:53:35 PM »
The latest version of Osclass is installed, I updated it through the control panel.

*

MB Themes

Re: Error updating ad
« Reply #3 on: March 23, 2026, 02:57:37 PM »
In such case, go to itemactions.php
find line like this
Code: [Select]
    $flash_error .= ((!osc_validate_text($aItem['address'], 3, false)) ? _m('Address too short.') . PHP_EOL : '');
and fix them in way:
Code: [Select]
    $flash_error .= ((!osc_validate_text($aItem['address'] ?? '', 3, false)) ? _m('Address too short.') . PHP_EOL : '');

so you adding ?? ''
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots