Support Forums - Classified Ads Script Osclass
Osclass theme support => Veronika Osclass Responsive Theme => Topic started by: ishan 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
-
@ishan
Seems to be osclass issue with insufficient handling of parameters.
-
please help me how to solve..
-
@ishan
Do you use latest version of osclass (https://osclass-classifieds.com/download)?
-
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.
-
@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
-
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?
-
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??
-
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
-
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.
-
after upload osclass 8 version.. site not working.. its showing ads please check attachment
-
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
-
after upload osclass 8 version.. site not working.. its showing ads please check attachment
Discuss with your hosting provider.
-
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
-
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
-
Your hosting should check, why after upgrade you see advertisement on your site.
It does not make sense.
-
Can u see this issue
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
-
That is insufficient handling on osclass side.
-
I dont understand sir,,, so whats the solution of that please tell me . Hosting company also not helping me.. they said its issue in files
-
Solution is probably update your osclass.
Alternativelly, review foreign keys and optimize your database tables
-
i checked all database so i found that in phpmyadmin
#145 - Table './*****/osj3_t_item_description' is marked as crashed and should be repaired
i repair this database from phpmyadmin and problem is solved
Thanks for helping..
-
Glad to hear that :-*