We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Class NEWSFEED_CMP_SiteFeedWidget does not exist | Forum

Jozko
Jozko Aug 11 '20
My site is down because this error


OW Debug - WarningMessage:call_user_func() expects parameter 1 to be a valid callback, class 'NEWSFEED_CMP_SiteFeedWidget' not foundFile:/home/veryha62/public_html/ow_system_plugins/base/components/drag_and_drop_panel.phpLine:67OW Debug - ExceptionMessage:Class NEWSFEED_CMP_SiteFeedWidget does not existFile:/home/veryha62/public_html/ow_system_plugins/base/components/drag_and_drop_item.phpLine:208Trace:#0 /home/veryha62/public_html/ow_system_plugins/base/components/drag_and_drop_item.php(208): ReflectionClass->__construct('NEWSFEED_CMP_Si...')#1 /home/veryha62/public_html/ow_system_plugins/base/components/drag_and_drop_item.php(92): BASE_CMP_DragAndDropItem->checkComponent('NEWSFEED_CMP_Si...')#2 /home/veryha62/public_html/ow_system_plugins/base/components/drag_and_drop_frontend_panel.php(106): BASE_CMP_DragAndDropItem->setContentComponentClass('NEWSFEED_CMP_Si...')#3 /home/veryha62/public_html/ow_smarty/template_c/3079cebd5890cade0c1d1ad288b0d2e5bfa2b591_0.file.drag_and_drop_index.html.php(152): BASE_CMP_DragAndDropFrontendPanel->tplComponent(Array, Object(Smarty_Internal_Template))#4 /home/veryha62/public_html/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(122): content_5e8b96d8edc645_28972784(Object(Smarty_Internal_Template))#5 /home/veryha62/public_html/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(199): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))#6 /home/veryha62/public_html/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(159): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))#7 /home/veryha62/public_html/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(191): Smarty_Internal_Template->render(false, 0)#8 /home/veryha62/public_html/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(94): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 0)#9 /home/veryha62/public_html/ow_core/view_renderer.php(80): Smarty_Internal_TemplateBase->fetch('/home/veryha62/...')#10 /home/veryha62/public_html/ow_core/view.php(187): OW_ViewRenderer->renderTemplate('/home/veryha62/...')#11 /home/veryha62/public_html/ow_core/component.php(80): OW_View->render()#12 /home/veryha62/public_html/ow_core/renderable.php(124): OW_Component->render()#13 /home/veryha62/public_html/ow_core/view.php(183): OW_Renderable->onRender()#14 /home/veryha62/public_html/ow_system_plugins/base/controllers/component_panel.php(56): OW_View->render()#15 /home/veryha62/public_html/ow_core/request_handler.php(258): BASE_CTRL_ComponentPanel->render()#16 /home/veryha62/public_html/ow_core/request_handler.php(226): OW_RequestHandler->processControllerAction(Object(ReflectionMethod), Object(BASE_CTRL_ComponentPanel))#17 /home/veryha62/public_html/ow_core/application.php(346): OW_RequestHandler->dispatch()#18 /home/veryha62/public_html/index.php(76): OW_Application->handleRequest()#19 {main}Type:ReflectionException


Any help awailable? Thank you

dave Leader
dave Aug 11 '20

did you uninstall the newsfeed plugin for some reason ?


What version of php are you using?


Did you deactivate a plugin via the DB ?


Do you have dev mode and debug mode set to true at the same time, you cant do that.. one or the other

The Forum post is edited by dave Aug 11 '20
Jozko
Jozko Aug 12 '20
Hi dave

My answers

No, I did not uninstal the newsfeed plugin.

PHP version 7.0.

Yes, I deactivated newsfeed plugin via DB. If plugin is active there is this error

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'uid":"nfa-feed15f306bb5d0679","pluginKey":"newsfeed","url":"https://www.veryh...' at line 1File:/home/veryha62/public_html/ow_core/database.phpLine:723Trace:#0 /home/veryha62/public_html/ow_core/database.php(723): PDOStatement->execute() #1 /home/veryha62/public_html/ow_core/database.php(344): OW_Database->execute('SELECT * FROM o...', NULL) #2 /home/veryha62/public_html/ow_plugins/newsfeed/bol/like_dao.php(172): OW_Database->queryForObjectList('SELECT * FROM o...', 'NEWSFEED_BOL_Li...') #3 /home/veryha62/public_html/ow_plugins/newsfeed/bol/service.php(519): NEWSFEED_BOL_LikeDao->findByEntityList(Array) #4 /home/veryha62/public_html/ow_plugins/newsfeed/components/feed_list.php(101): NEWSFEED_BOL_Service->findLikesByEntityList(Array) #5 [internal function]: NEWSFEED_CMP_FeedList->__construct(Array, Array) #6 /home/veryha62/public_html/ow_core/ow.php(492): ReflectionClass->newInstanceArgs(Array) #7 /home/veryha62/public_html/ow_core/ow.php(456): OW::getClassInstanceArray('NEWSFEED_CMP_Fe...', Array) #8 /home/veryha62/public_html/ow_plugins/newsfeed/components/feed.php(230): OW::getClassInstance('NEWSFEED_CMP_Fe...', Array, Array) #9 /home/veryha62/public_html/ow_plugins/newsfeed/components/feed.php(255): NEWSFEED_CMP_Feed->createFeedList(Array, Array) #10 /home/veryha62/public_html/ow_core/renderable.php(124): NEWSFEED_CMP_Feed->render() #11 /home/veryha62/public_html/ow_core/view.php(183): OW_Renderable->onRender() #12 /home/veryha62/public_html/ow_core/component.php(80): OW_View->render() #13 /home/veryha62/public_html/ow_core/renderable.php(124): OW_Component->render() #14 /home/veryha62/public_html/ow_core/view.php(183): OW_Renderable->onRender() #15 /home/veryha62/public_html/ow_core/component.php(80): OW_View->render() #16 /home/veryha62/public_html/ow_system_plugins/base/components/drag_and_drop_item.php(332): OW_Component->render() #17 /home/veryha62/public_html/ow_system_plugins/base/components/drag_and_drop_item.php(317): BASE_CMP_DragAndDropItem->render() #18 /home/veryha62/public_html/ow_system_plugins/base/components/drag_and_drop_frontend_panel.php(110): BASE_CMP_DragAndDropItem->renderView() #19 /home/veryha62/public_html/ow_smarty/template_c/3079cebd5890cade0c1d1ad288b0d2e5bfa2b591_0.file.drag_and_drop_index.html.php(152): BASE_CMP_DragAndDropFrontendPanel->tplComponent(Array, Object(Smarty_Internal_Template)) #20 /home/veryha62/public_html/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(122): content_5e8b96d8edc645_28972784(Object(Smarty_Internal_Template)) #21 /home/veryha62/public_html/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(199): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template)) #22 /home/veryha62/public_html/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(159): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template)) #23 /home/veryha62/public_html/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(191): Smarty_Internal_Template->render(false, 0) #24 /home/veryha62/public_html/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(94): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 0) #25 /home/veryha62/public_html/ow_core/view_renderer.php(80): Smarty_Internal_TemplateBase->fetch('/home/veryha62/...') #26 /home/veryha62/public_html/ow_core/view.php(187): OW_ViewRenderer->renderTemplate('/home/veryha62/...') #27 /home/veryha62/public_html/ow_core/component.php(80): OW_View->render() #28 /home/veryha62/public_html/ow_core/renderable.php(124): OW_Component->render() #29 /home/veryha62/public_html/ow_core/view.php(183): OW_Renderable->onRender() #30 /home/veryha62/public_html/ow_system_plugins/base/controllers/component_panel.php(56): OW_View->render() #31 /home/veryha62/public_html/ow_core/request_handler.php(258): BASE_CTRL_ComponentPanel->render() #32 /home/veryha62/public_html/ow_core/request_handler.php(226): OW_RequestHandler->processControllerAction(Object(ReflectionMethod), Object(BASE_CTRL_ComponentPanel)) #33 /home/veryha62/public_html/ow_core/application.php(346): OW_RequestHandler->dispatch() #34 /home/veryha62/public_html/index.php(76): OW_Application->handleRequest() #35 {main}Type:PDOException


The dev mode is setted to true and this errors displays if I try to login as admin via mysite.com/sign-in because I setted the site under maintennance.



The Forum post is edited by Jozko Aug 12 '20
dave Leader
dave Aug 12 '20

ok thats the first problem, you cant just deactivate a plugin via the plugin table, there is more that happens during deactivate than just changing the flag in the plugin table. 


So i assumed you set it back to 1, that will fix that issue.


As for the new error you posted in the previous reply:


First check your mod_security to be sure strict configurations are off as per oxwall requirements.  If that does not solve the issue then the issue can be solved in two ways:


1. dont use mariaDB as it requires single quotes in code where non MariaDB does not.

2. locate the lines of code where the single quotes are required and add them.



The Forum post is edited by dave Aug 12 '20
Jozko
Jozko Aug 12 '20
The mode_security is OFF.
dave Leader
dave Aug 12 '20
OK does your server or host offer anything other than mariaDB ?
dave Leader
dave Aug 12 '20
Does this happen when you post an attachment to the newsfeed, in specific a photo?  if so i think i found the issue... 
The Forum post is edited by dave Aug 12 '20
Jozko
Jozko Aug 12 '20
Dont know.

I can give you Cpanel details to check it.

Jozko
Jozko Aug 12 '20
Dont know when and how it happen.  :-(


dave Leader
dave Aug 12 '20

no thats ok, i dont like going into someones server unless it really necessary.  


Try this - untested and might not work... but try it


open up  ow_plugins/newsfeed/controllers/ajax.php


on line 155 change  'uid'  to "uid"      (use double quotes instead of single quotes)


if that errors out


then try "'uid'"        doublequote singlequote uid  singlequote doublequote


if that fails then set it back to  'uid'   and let me know, ill dig deeper and may need your cpanel at that time.



to clarify just change the 'uid'   NOT the $content['uid'] <--- leave this alone



The Forum post is edited by dave Aug 12 '20
dave Leader
dave Aug 12 '20
i will back in a while to check on you...
Jozko
Jozko Aug 12 '20
Sorry no succes, :-(
Jozko
Jozko Aug 12 '20
Maybe deleting the newsfeed entries could help, but dont know in which DB are stored.
dave Leader
dave Aug 12 '20
Please pm me your cpanel and your site admin, ill have a look
The Forum post is edited by dave Aug 12 '20
Jozko
Jozko Aug 13 '20

Hi dave, the site works now. Dont know what happen; 2 hours after I made 'uid' changes site appears back to life. Maybe there is a cron job or ... .

Thank you very much for your help.

Kind regards.


dave Leader
dave Aug 13 '20
great so maybe it did work after all... cool  thanks for getting back to me.  This might help others.