*

Vladislaw

  • **
  • 9 posts
Premium ads are not displayed on category page
« on: July 16, 2021, 08:04:20 PM »
Hello, I have now noticed that when I enter a category page, premium ads are not displayed.



ВИП Обява are not displayed.

OFF: Now I've noticed that sometimes it comes out, but not every time


Appears only on the second page of the ads
« Last Edit: July 16, 2021, 08:12:20 PM by Vladislaw »

*

Vladislaw

  • **
  • 9 posts
Re: Premium ads are not displayed on category page
« Reply #1 on: July 20, 2021, 07:14:48 PM »
anyone?

Marked as best answer by Vladislaw on July 22, 2021, 05:40:12 PM
*

MB Themes

Re: Premium ads are not displayed on category page
« Reply #2 on: July 22, 2021, 12:13:56 PM »
@Vladislaw
This is bug when used with "Force image aspect" in Media settings.
Fixed in 1.1.4 version of theme.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Vladislaw

  • **
  • 9 posts
Re: Premium ads are not displayed on category page
« Reply #3 on: July 22, 2021, 05:40:31 PM »
@Vladislaw
This is bug when used with "Force image aspect" in Media settings.
Fixed in 1.1.4 version of theme.

Thank you. It's work

*

Vladislaw

  • **
  • 9 posts
Re: Premium ads are not displayed on category page
« Reply #4 on: July 22, 2021, 05:45:15 PM »
I updated the theme and now when I log in as a user the site disappears and is only a white screen.

*

MB Themes

Re: Premium ads are not displayed on category page
« Reply #5 on: July 22, 2021, 05:51:37 PM »
Does not sound to be related to update in any way.
Reupload all theme diles, enable error & debug log, ...
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Vladislaw

  • **
  • 9 posts
Re: Premium ads are not displayed on category page
« Reply #6 on: July 22, 2021, 07:33:25 PM »
[22-Jul-2021 20:32:17 Europe/Sofia] PHP Fatal error:  Uncaught Error: Class 'ModelIM' not found in /home/nppharma/gag.bg/oc-content/themes/delta/functions.php:2621
Stack trace:
#0 /home/nppharma/gag.bg/oc-content/themes/delta/header.php(4): del_count_messages(8)
#1 /home/nppharma/gag.bg/oc-includes/osclass/helpers/hDefines.php(288): require('/home/nppharma/...')
#2 /home/nppharma/gag.bg/oc-content/themes/delta/main.php(8): osc_current_web_theme_path('header.php')
#3 /home/nppharma/gag.bg/oc-includes/osclass/helpers/hDefines.php(288): require('/home/nppharma/...')
#4 /home/nppharma/gag.bg/oc-includes/osclass/controller/main.php(68): osc_current_web_theme_path('main.php')
#5 /home/nppharma/gag.bg/oc-includes/osclass/controller/main.php(54): CWebMain->doView('main.php')
#6 /home/nppharma/gag.bg/index.php(151): CWebMain->doModel()
#7 {main}
  thrown in /home/nppharma/gag.bg/oc-content/themes/delta/functions.php on line 2621

*

Vladislaw

  • **
  • 9 posts
Re: Premium ads are not displayed on category page
« Reply #7 on: July 22, 2021, 07:35:59 PM »
I returned the header.php file from the old version of the theme and fixed the problem.

*

MB Themes

Re: Premium ads are not displayed on category page
« Reply #8 on: July 23, 2021, 08:10:11 AM »
@Vladislaw
Thanks for reporting this issue.

In functions.php find these lines:
Code: [Select]
// COUNT INSTANT MESSENGER MESSAGES
function del_count_messages($user_id) {
  if($user_id > 0) {

Replace with:
Code: [Select]
// COUNT INSTANT MESSENGER MESSAGES
function del_count_messages($user_id) {
  if($user_id > 0 && class_exists('ModelIM')) {

Will be fixed in next version as well.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots