This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

ishan

  • ****
  • 126 posts
Item not showing in site and item page not open from admin
« on: July 18, 2020, 04:03:47 PM »
Item not showing in site and item page not open from admin

[13-Jul-2020 14:03:47 Asia/Kolkata] PHP Fatal error:  Uncaught Error: Call to a member function result() on boolean in /home/******/public_html/mydomain.com/oc-includes/osclass/model/Item.php:1184
Stack trace:
#0 /home/******/public_html/mydomain.com/oc-includes/osclass/model/Search.php(1083): Item->extendData(Array)
#1 /home/******/public_html/mydomain.com/oc-content/themes/zara/functions.php(327): Search->doSearch()
#2 /home/******/public_html/mydomain.com/oc-content/themes/zara/footer.php(490): zara_max_price('', '', '', '')
#3 /home/******/public_html/mydomain.com/oc-includes/osclass/helpers/hDefines.php(238): require('/home/******/...')
#4 /home/******/public_html/mydomain.com/oc-content/themes/zara/user-register.php(126): osc_current_web_theme_path('footer.php')
#5 /home/******/public_html/mydomain.com/oc-includes/osclass/helpers/hDefines.php(238): require('/home/*****/...')
#6 /home/******/public_html/mydomain.com/oc-includes/osclass/controller/register.php(129): osc_current_web_theme_path('user in /home/******/public_html/mydomain.com/oc-includes/osclass/model/Item.php on line 1184

*

MB Themes

Re: Item not showing in site and item page not open from admin
« Reply #1 on: July 18, 2020, 05:41:35 PM »
Based on error message it is not so clear. Try to reactivate theme, try to change to bender theme. If error is same, it is not related to theme.
You could also activate db log to see problematic query
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ishan

  • ****
  • 126 posts
Re: Item not showing in site and item page not open from admin
« Reply #2 on: July 19, 2020, 08:21:21 AM »
yeah i changed theme but same error.. but please help me how to solve this error..

how to activate db log ??

*

ishan

  • ****
  • 126 posts
Re: Item not showing in site and item page not open from admin
« Reply #3 on: July 19, 2020, 08:30:25 AM »
after enabled db log.. below error showing

Fatal error: Uncaught Error: Call to a member function result() on boolean in /home/*********/public_html/mydomain.com/oc-includes/osclass/model/Item.php:1184
Stack trace: #0 /home/*********/public_html/mydomain.com/oc-includes/osclass/model/Search.php(1112): Item->extendData(Array) #1 /home/*********/public_html/mydomain.com/oc-includes/osclass/helpers/hPremium.php(46): Search->getPremiums(6) #2 /home/*********/public_html/mydomain.com/oc-content/themes/zara/main.php(141): osc_get_premiums(6) #3 /home/*********/public_html/mydomain.com/oc-includes/osclass/helpers/hDefines.php(238): require('/home/*********/...') #4 /home/*********/public_html/mydomain.com/oc-includes/osclass/controller/main.php(53): osc_current_web_theme_path('main.php') #5 /home/*********/public_html/mydomain.com/oc-includes/osclass/controller/main.php(45): CWebMain->doView('main.php') #6 /home/*********/public_html/mydomain.com/index.php(142): CWebMain->doModel() #7 {main} thrown in /home/*********/public_html/mydomain.com/oc-includes/osclass/model/Item.php on line 1184

*

MB Themes

Re: Item not showing in site and item page not open from admin
« Reply #4 on: July 21, 2020, 10:52:51 AM »
@ishan
That is not from db log. Osclass db log is showing bellow footer for logged admins.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ishan

  • ****
  • 126 posts
Re: Item not showing in site and item page not open from admin
« Reply #5 on: July 27, 2020, 09:33:45 AM »
this error showing in home page footer

Fatal error: Call to a member function result() on boolean in /home/*****/public_html/oc-includes/osclass/model/Item.php on line 1198

*

MB Themes

Re: Item not showing in site and item page not open from admin
« Reply #6 on: July 27, 2020, 03:15:11 PM »
@ishan
It must be related to something different, check your error log.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ishan

  • ****
  • 126 posts
Re: Item not showing in site and item page not open from admin
« Reply #7 on: July 27, 2020, 03:34:55 PM »
in error log i show you below error is showing

[13-Jul-2020 14:03:47 Asia/Kolkata] PHP Fatal error:  Uncaught Error: Call to a member function result() on boolean in /home/******/public_html/mydomain.com/oc-includes/osclass/model/Item.php:1184
Stack trace:
#0 /home/******/public_html/mydomain.com/oc-includes/osclass/model/Search.php(1083): Item->extendData(Array)
#1 /home/******/public_html/mydomain.com/oc-content/themes/zara/functions.php(327): Search->doSearch()
#2 /home/******/public_html/mydomain.com/oc-content/themes/zara/footer.php(490): zara_max_price('', '', '', '')
#3 /home/******/public_html/mydomain.com/oc-includes/osclass/helpers/hDefines.php(238): require('/home/******/...')
#4 /home/******/public_html/mydomain.com/oc-content/themes/zara/user-register.php(126): osc_current_web_theme_path('footer.php')
#5 /home/******/public_html/mydomain.com/oc-includes/osclass/helpers/hDefines.php(238): require('/home/*****/...')
#6 /home/******/public_html/mydomain.com/oc-includes/osclass/controller/register.php(129): osc_current_web_theme_path('user in /home/******/public_html/mydomain.com/oc-includes/osclass/model/Item.php on line 1184

*

ishan

  • ****
  • 126 posts
Re: Item not showing in site and item page not open from admin
« Reply #8 on: July 27, 2020, 04:01:33 PM »
When i remove this line

 $descriptions = $result->result();

from /oc-includes/osclass/model/Item.php

then site working fine but listing title and description not showing on home page listing  and item not open..

please help me

*

MB Themes

Re: Item not showing in site and item page not open from admin
« Reply #9 on: July 29, 2020, 11:53:30 AM »
@ishan
That is not solution, try to reinstall your osclass.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Marked as best answer by frosticek on July 31, 2020, 04:09:40 PM
*

ishan

  • ****
  • 126 posts
Re: Item not showing in site and item page not open from admin
« Reply #10 on: July 29, 2020, 09:15:25 PM »
I solved. it was database issue item_description need to repair.

*

MB Themes

Re: Item not showing in site and item page not open from admin
« Reply #11 on: July 31, 2020, 04:09:49 PM »
@ishan
Thanks for sharing solution ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots