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

ishan

  • ****
  • 126 posts
facing some issue on home page and search page
« on: December 29, 2021, 12:28:47 PM »
facing some issue on home page and search page

[29-Dec-2021 16:53:32 Asia/Kolkata] PHP Fatal error:  Uncaught Error: Call to a member function result() on bool in /home2/*****/public_html/oc-includes/osclass/model/Item.php:1184
Stack trace:
#0 /home2/*****/public_html/oc-includes/osclass/model/Search.php(1083): Item->extendData(Array)
#1 /home2/*****/public_html/oc-content/themes/veronika/functions.php(1189): Search->doSearch()
#2 /home2/*****/public_html/oc-content/themes/veronika/search.php(118): veronika_max_price('114', '', '', '35791')
#3 /home2/*****/public_html/oc-includes/osclass/helpers/hDefines.php(238): require('/home2/*****...')
#4 /home2/*****/public_html/oc-includes/osclass/controller/search.php(620): osc_current_web_theme_path('search.php')
#5 /home2/*****/public_html/oc-includes/osclass/controller/search.php(572): CWebSearch->doView('search.php')
#6 /home2/*****/public_html/index.php(101): CWebSearch->doModel()
#7 {main}
  thrown in /home2/*****/public_html/oc-includes/osclass/model/Item.php on line 1184


also in oc-admin i cant open listing page https://*****/oc-admin/index.php?page=items
« Last Edit: December 29, 2021, 12:37:16 PM by ishan »

*

MB Themes

Re: facing some issue on home page and search page
« Reply #1 on: December 29, 2021, 01:18:28 PM »
@ishan
Seems to be osclass issue with insufficient handling of parameters.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ishan

  • ****
  • 126 posts
Re: facing some issue on home page and search page
« Reply #2 on: December 29, 2021, 01:22:19 PM »
please help me how to solve..

*

MB Themes

Re: facing some issue on home page and search page
« Reply #3 on: December 29, 2021, 01:54:17 PM »
@ishan
Do you use latest version of osclass?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ishan

  • ****
  • 126 posts
Re: facing some issue on home page and search page
« Reply #4 on: December 29, 2021, 01:56:16 PM »
No i am using 3.7.4 osclass version.. it was working fine yet today.. Suddenly it happend when i deleted approx 2000 listings.. and installed welcome box plugin.

*

MB Themes

Re: facing some issue on home page and search page
« Reply #5 on: December 29, 2021, 02:00:25 PM »
@ishan
Maybe some data were not removed and it is now missing foreign keys.
You might need to update your osclass here with proper handling:
  thrown in /home2/*****/public_html/oc-includes/osclass/model/Item.php on line 1184
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ishan

  • ****
  • 126 posts
Re: facing some issue on home page and search page
« Reply #6 on: December 29, 2021, 02:02:13 PM »
how to update manually because i have too much data and listings..

and i did also many customization work on site so if possible then can i update 2-3 files only to check?

*

ishan

  • ****
  • 126 posts
Re: facing some issue on home page and search page
« Reply #7 on: December 29, 2021, 02:17:04 PM »
Can i upload manually below folder and files
- index.php
- oc-load.php
- oc-admi
- oc-includes

if i will not upload oc-content then its not problem??

*

ishan

  • ****
  • 126 posts
Re: facing some issue on home page and search page
« Reply #8 on: December 29, 2021, 02:50:32 PM »
i tried to upload all folders and files manually for updates but its not working.. site not working and some google ads is showing on whole site

*

MB Themes

Re: facing some issue on home page and search page
« Reply #9 on: December 29, 2021, 03:58:08 PM »
Backup (files &db), download osclass, upload zip to your hosting (root), extract, go to backoffice and complete update.

In case of any problems, revert back.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ishan

  • ****
  • 126 posts
Re: facing some issue on home page and search page
« Reply #10 on: December 30, 2021, 06:20:30 AM »
after upload osclass 8 version.. site not working.. its showing ads please check attachment

*

ishan

  • ****
  • 126 posts
Re: facing some issue on home page and search page
« Reply #11 on: December 30, 2021, 07:18:34 AM »
please help me what should i do??

I upload only oc-include folder now then i upgrade from oc-admin then it take too much time and not working.. same issue.. i tried everything but nothing.. please help me

Please check again below error this error come on home page listing and search page

Fatal error: Uncaught Error: Call to a member function result() on bool in /home2/****/public_html/oc-includes/osclass/model/Item.php:1184 Stack trace: #0 /home2/****/public_html/oc-includes/osclass/model/Search.php(1083): Item->extendData(Array) #1 /home2/****/public_html/oc-includes/osclass/controller/search.php(482): Search->doSearch() #2 /home2/****/public_html/index.php(101): CWebSearch->doModel() #3 {main} thrown in /home2/****/public_html/oc-includes/osclass/model/Item.php on line 1184


Please check attachment i found some errors in phpadmin.

some table has negative (-) routines
« Last Edit: December 30, 2021, 08:14:04 AM by ishan »

*

MB Themes

Re: facing some issue on home page and search page
« Reply #12 on: December 30, 2021, 08:13:08 AM »
after upload osclass 8 version.. site not working.. its showing ads please check attachment

Discuss with your hosting provider.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ishan

  • ****
  • 126 posts
Re: facing some issue on home page and search page
« Reply #13 on: December 30, 2021, 08:14:37 AM »
Please check attachment i found some errors in phpadmin.

some table has (~) routines

In osj3_t_user You can see ~103,639   maybe it can issue?? if you can tell me any solution then please tel me

« Last Edit: December 30, 2021, 08:19:03 AM by ishan »

*

ishan

  • ****
  • 126 posts
Re: facing some issue on home page and search page
« Reply #14 on: December 30, 2021, 08:54:06 AM »
Sir Hosting team saying that
"On checking from the server end.
I can not find any issue
And moreover it is a fatal error, with a particular file /Item.php"


when i m deleting user from oc-admin then its showing error

Fatal error: Uncaught Error: Call to a member function result() on bool in /home2/****/public_html/oc-includes/osclass/model/Item.php:1086 Stack trace: #0 /home2/****/public_html/oc-includes/osclass/model/Item.php(144): Item->extendDataSingle(Array) #1 /home2/****/public_html/oc-includes/osclass/model/Item.php(951): Item->findByPrimaryKey('61371') #2 /home2/****/public_html/oc-includes/osclass/model/User.php(310): Item->deleteByPrimaryKey('61371') #3 /home2/****/public_html/oc-admin/users.php(264): User->deleteUser('120082') #4 /home2/****/public_html/oc-admin/index.php(92): CAdminUsers->doModel() #5 {main} thrown in /home2/****/public_html/oc-includes/osclass/model/Item.php on line 1086
« Last Edit: December 30, 2021, 09:06:58 AM by ishan »