*

MB Themes

Osclass 8.2.0 beta is opened
« on: November 09, 2023, 09:06:37 PM »
Hey folks,
For those that would like to participate on testing of Osclass 8.2.0, beta is now opened!

Please provide feedback/bugs into this thread.

How to enable beta test:
https://docs.osclasspoint.com/alpha-and-beta-osclass-testing

Do not run beta test on production website.

Changelog:
  • IMPORTANT: New image uploader library implemented - UPPY.IO image uploader.
        Uppy.io will be selected as default image uploader on all new Osclass installations (does not impact existing installations).
        No theme modifications are required.
  • IMPORTANT: Images on item publish/edit page can now be reordered.
        Reordering no more use "naming of files" as way to sort images inside listing.
        Works for existing & newly uploaded images all together.
        Only works with Uppy.io image uploader.
        No theme modifications are rquired.
  • IMPORTANT: Profile picture uploader got new library - UPPY.IO.
        Admin can define in backoffice what library to use (cropper or uppy).
        Integration guide created on docs: https://docs.osclasspoint.com/integrate-user-image-uploader-to-user-profile
        Existing integrations may not need any update, as script are now automatically loaded and previous construction is kept.
        Uppy.io will be selected as default profile picture uploader on all new Osclass installations (does not impact existing installations).
  • Important: Major improvements in RSS feeds (yoursite.com/feed). Many new item fields added.
        RSS feed can now be disabled as well. When disabled, page returns 404.
        New hooks and filters created to support flexibility of data in RSS feed.
  • Important: Logic for collecting listing statistics has changed. Now, only 1 stat counts towards 1 user session.
        This change applies to all "stats", including item views, premium views and reported stats (spam, misclassified, duplicated, expired, offensive).
        Why? 2 reasons: a) item & premium views were very unaccurate, b) this helps to significantly decrease database load caused by spam bots hitting all possible links, including "mark as...".
  • Important: Big update with item_form and item_edit hooks, those now support different variants (ie. item_form_top), that allows to customize publish/edit page.
        Plugin now can use custom variants of hooks and show data based on category selection on numerous places (ie. below category, blow description etc.).
  • Send to friend form can now be disabled in listing settings.
        Disabling send to friend form will not disable whole send to friend page, as it's used by many themes to manage custom forms.
  • New hook user_locale_changed, when user locale has been changed.
  • Numerous updates to core Osclass emails those will try to identify correct user locale.
        Admin emails are not sent anymore in user locale, instead they are always sent in site default locale.
  • It is now possible to define default currency for each language.
        Language settings were also split into several sections.
  • New setting available: max category levels (nesting) - it is possible to set how many subcategories your Osclass will support.
        There is hard limit for levels value, minimum is 1, maximum is 12. Previous Osclass versions supported only max 4 levels.
  • Improvements in ReCaptcha configuration. It is now possible to disable ReCaptcha using checkbox and keep API keys defined.
        Warning: if you use built-in recaptcha, it will get disabled automatically after update. Make sure to enable it in Spam and Bots settings.
  • Fixed bug with search url that added language code twice - when "language code in url" option enabled.
  • Fixed bug with specific categories (contains number in slug) on search page, those on PHP8 would not result in 404 page if they does not exists (i.e. category a1a2)
  • Fixed problem to unzip language, theme or plugin because ZipArchive could not read parent directory in ZIP archive.
  • When downloading/sharing language zip, empty folder is first created for compatibility purpose.
  • Following keywords are now supported in structure of item url: {CATEGORY}
  • New option to run/get data from Osclass via ajax using "custom_hook" action that execute "ajax_custom" hook.
  • Added limit 50000 records into Tools > Cleanup to avoid getting PHP memory errors in case there are millions of records to be removed.
        This brings need to repeat process several times, but makes feature functional for every situation.
  • CURL PHP extension added into requirement list to install Osclass.
  • Fixed small security vulnerable in backoffice with widgets (KVE-2023-5009).
  • Fixed bug with category_multiple_selects (category multiselect on publish page) that did not selected last level of category, when category ID was provided.



« Last Edit: November 09, 2023, 09:10:07 PM by MB Themes »
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Wiz

  • ****
  • 162 posts
Re: Osclass 8.2.0 beta is opened
« Reply #1 on: November 16, 2023, 01:41:18 PM »
Many thanks for this latest beta release :)

I have some bugs to report:

- Cannot set media maximum size under Settings/Media/Restrictions when PHP max upload configuration setting is set to infinity or -1.. Any value entered ie. 4096 returns -1024 and the message "You cannot set a maximum file size higher than the one allowed in the PHP configuration: -1024 KB"

There is also a visual/css issue with the Watermark type options.

- Also, for the new currency per language feature - some countries use the English currency/symbol code as well as another currency symbol for the same currency code ie. take for example the Egyptian pound ... 2 symbols E£, ج.م using 1 currency ISO code EGP ... The feature does not allow entering another instance of the same currency code. I propose adding another option to tackle this by adding a new field "Currency alternate symbol" to the Edit currency page and use s_description and s_description_alt as assignable values to the languages - what do you think?

Still testing..

Cheers

*

MB Themes

Re: Osclass 8.2.0 beta is opened
« Reply #2 on: November 16, 2023, 02:30:56 PM »
@Wiz
1) max file size is calculated like this and was not changed for some time.
Code: [Select]
        $max_upload = $this->_sizeToKB(ini_get('upload_max_filesize'));
        $max_post = $this->_sizeToKB(ini_get('post_max_size'));
        $memory_limit = $this->_sizeToKB(ini_get('memory_limit'));
        $upload_mb = min($max_upload, $max_post, $memory_limit);

2) no change to watermark options at all

3) 1 currency symbol per 1 currency.

Thanks for feedback ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Wiz

  • ****
  • 162 posts
Re: Osclass 8.2.0 beta is opened
« Reply #3 on: November 16, 2023, 04:32:07 PM »
The fix for max file size (when php upload limit is set to infinity or -1):

Add to controller/settings/media file

Code: [Select]
if(-1 === $max_upload) {
$upload_mb = PHP_INT_MAX; // Set to the maximum integer value if max upload is -1
}

Above:

Code: [Select]
// set maxSizeKB equals to PHP configuration if it's bigger
        if($maxSizeKb > $upload_mb) {
          $status = 'warning';
          $maxSizeKb = $upload_mb;
          // flash message text warning
          $error .= sprintf(_m('You cannot set a maximum file size higher than the one allowed in the PHP configuration: <b>%d KB</b>'), $upload_mb);
        }

On 2 - see attached screenshot (demo / default install)

On 3 - No issues, I'll code it in
« Last Edit: November 16, 2023, 04:36:12 PM by Wiz »

*

dsf

  • *****
  • 261 posts
Re: Osclass 8.2.0 beta is opened
« Reply #4 on: November 16, 2023, 09:35:20 PM »

On 2 - see attached screenshot (demo / default install)


True, here also.


*

Wiz

  • ****
  • 162 posts
Re: Osclass 8.2.0 beta is opened
« Reply #5 on: November 17, 2023, 08:26:29 AM »
A few more issues ...

- Visual/css alignment in Admins/Edit admin section - screenie attached.

- I'm seeing several errors and stack traces with hooks manager plugin

Code: [Select]
PHP Stack trace:
PHP   1. {main}() /.composer/vendor/laravel/valet/server.php:0
PHP   2. require() /.composer/vendor/laravel/valet/server.php:110
PHP   3. CAdminPlugins->__construct() /Beta/oc-admin/index.php:157
PHP   4. AdminSecBaseModel->__construct() /Beta/oc-admin/plugins.php:23
PHP   5. SecBaseModel->__construct() /Beta/oc-includes/osclass/core/AdminSecBaseModel.php:25
PHP   6. BaseModel->__construct() /Beta/oc-includes/osclass/core/SecBaseModel.php:25
PHP   7. osc_run_hook($hook = 'init') /Beta/oc-includes/osclass/core/BaseModel.php:71
PHP   8. Plugins::runHook($hook = 'init') /Beta/oc-includes/osclass/helpers/hPlugins.php:34
PHP   9. hkm_manage() /Beta/oc-includes/osclass/classes/Plugins.php:42
PHP Warning:  Undefined array key "home_search_bottom" in /Beta/oc-content/plugins/hooks/functions.php on line 18
PHP Stack trace:
PHP   1. {main}() /.composer/vendor/laravel/valet/server.php:0
PHP   2. require() /.composer/vendor/laravel/valet/server.php:110
PHP   3. CWebMain->__construct() /Beta/index.php:322
PHP   4. BaseModel->__construct() /Beta/oc-includes/osclass/controller/main.php:26
PHP   5. osc_run_hook($hook = 'init') /Beta/oc-includes/osclass/core/BaseModel.php:71
PHP   6. Plugins::runHook($hook = 'init') /Beta/oc-includes/osclass/helpers/hPlugins.php:34
PHP   7. hkm_manage() /Beta/oc-includes/osclass/classes/Plugins.php:42

Still testing ...

*

MB Themes

Re: Osclass 8.2.0 beta is opened
« Reply #6 on: November 17, 2023, 01:58:22 PM »
Thanks for feedback.
Visual issues fixed.
Hooks manager issue related to plugin (updated).

Thanks for feedback!
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Wiz

  • ****
  • 162 posts
Re: Osclass 8.2.0 beta is opened
« Reply #7 on: November 17, 2023, 03:04:19 PM »
Just checked updated Hooks module - one error fixed but another one is introduced:

Code: [Select]
PHP Warning:  Undefined array key "hook_function|enabled|cap_search_box" in /Beta/oc-content/plugins/hooks/admin/configure.php on line 28
PHP Stack trace:
PHP   1. {main}() /.composer/vendor/laravel/valet/server.php:0
PHP   2. require() /.composer/vendor/laravel/valet/server.php:110
PHP   3. CAdminPlugins->doModel() /Beta/oc-admin/index.php:158
PHP   4. CAdminPlugins->doView($file = 'plugins/view.php') /Beta/oc-admin/plugins.php:438
PHP   5. osc_current_admin_theme_path($file = 'plugins/view.php') /Beta/oc-admin/plugins.php:738
PHP   6. require() /Beta/oc-includes/osclass/helpers/hDefines.php:332
PHP   7. require_once() /Beta/oc-admin/themes/omega/plugins/view.php:42

This occurs when I try to disable cap_search_box hook function ... should I open a ticket or reporting it here is sufficient?

*

MB Themes

Re: Osclass 8.2.0 beta is opened
« Reply #8 on: November 17, 2023, 03:48:01 PM »
You must open ticket for product.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: Osclass 8.2.0 beta is opened
« Reply #9 on: November 19, 2023, 06:01:22 PM »
Hey Developers,

How to make ad posting more easier like claz. org. It is more easy and fast way to post ads. This site has auto category selector when input title of ad. Please check and share your thoughts what if that features are in osclass.
https://claz.org/post

*

MB Themes

Re: Osclass 8.2.0 beta is opened
« Reply #10 on: November 19, 2023, 06:51:20 PM »
You can modify permalinks structure.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

NoGOV

  • **
  • 5 posts
Re: Osclass 8.2.0 beta is opened
« Reply #11 on: March 01, 2024, 03:21:03 PM »
Important: Major improvements in RSS feeds (yoursite.com/feed). Many new item fields added.
    RSS feed can now be disabled as well. When disabled, page returns 404.
    New hooks and filters created to support flexibility of data in RSS feed.


My RSS feed producing 404 return. How is the RSS enabled?


*

MB Themes

Re: Osclass 8.2.0 beta is opened
« Reply #12 on: March 02, 2024, 05:31:04 PM »
Check general settings.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

NoGOV

  • **
  • 5 posts
Re: Osclass 8.2.0 beta is opened
« Reply #13 on: May 22, 2024, 04:30:25 AM »
Still 404 error, anything else to look at?

« Last Edit: May 22, 2024, 04:34:17 AM by NoGOV »

*

MB Themes

Re: Osclass 8.2.0 beta is opened
« Reply #14 on: May 22, 2024, 07:05:30 AM »
Rss can be enabled in general settings.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots