Osclass Support Forums

Osclass theme support => Zara Osclass Responsive Theme => Topic started by: ishan on July 18, 2020, 04:03:47 PM

Title: Item not showing in site and item page not open from admin
Post 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
Title: Re: Item not showing in site and item page not open from admin
Post by: MB Themes 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
Title: Re: Item not showing in site and item page not open from admin
Post by: ishan 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 ??
Title: Re: Item not showing in site and item page not open from admin
Post by: ishan 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
Title: Re: Item not showing in site and item page not open from admin
Post by: MB Themes 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.
Title: Re: Item not showing in site and item page not open from admin
Post by: ishan 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
Title: Re: Item not showing in site and item page not open from admin
Post by: MB Themes on July 27, 2020, 03:15:11 PM
@ishan
It must be related to something different, check your error log.
Title: Re: Item not showing in site and item page not open from admin
Post by: ishan 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
Title: Re: Item not showing in site and item page not open from admin
Post by: ishan 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
Title: Re: Item not showing in site and item page not open from admin
Post by: MB Themes on July 29, 2020, 11:53:30 AM
@ishan
That is not solution, try to reinstall your osclass.
Title: Re: Item not showing in site and item page not open from admin
Post by: ishan on July 29, 2020, 09:15:25 PM
I solved. it was database issue item_description need to repair.
Title: Re: Item not showing in site and item page not open from admin
Post by: MB Themes on July 31, 2020, 04:09:49 PM
@ishan
Thanks for sharing solution ;)