Osclass Support Forums
Osclass theme support => Zara Osclass Responsive Theme => Topic started by: ishan 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
-
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
-
yeah i changed theme but same error.. but please help me how to solve this error..
how to activate db log ??
-
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
-
@ishan
That is not from db log. Osclass db log is showing bellow footer for logged admins.
-
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
-
@ishan
It must be related to something different, check your error log.
-
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
-
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
-
@ishan
That is not solution, try to reinstall your osclass.
-
I solved. it was database issue item_description need to repair.
-
@ishan
Thanks for sharing solution ;)