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

OW Debug - Error | Forum

Anas mansour
Anas mansour Apr 10 '15
My Dashboard

OW Debug - Error Message: Argument 1 passed to BLOGS_CLASS_EventHandler::onCollectEnabledAdsPages() must be an instance of BASE_EventCollector, instance of BASE_CLASS_EventCollector given File: /home/mashahei/public_html/index/ow_plugins/blogs/classes/event_handler.php Line: 220


Warning: file_put_contents(/home/mashahei/public_html/index/ow_log/error.log): failed to open stream: No such file or directory in /home/mashahei/public_html/index/ow_system_plugins/base/classes/file_log_writer.php on line 61

Warning: chmod(): No such file or directory in /home/mashahei/public_html/index/ow_system_plugins/base/classes/file_log_writer.php on line 65




how to solve this ??
Maksim
Maksim Apr 10 '15

Quote from Anas mansour My Dashboard

OW Debug - Error Message: Argument 1 passed to BLOGS_CLASS_EventHandler::onCollectEnabledAdsPages() must be an instance of BASE_EventCollector, instance of BASE_CLASS_EventCollector given File: /home/mashahei/public_html/index/ow_plugins/blogs/classes/event_handler.php Line: 220


Warning: file_put_contents(/home/mashahei/public_html/index/ow_log/error.log): failed to open stream: No such file or directory in /home/mashahei/public_html/index/ow_system_plugins/base/classes/file_log_writer.php on line 61

Warning: chmod(): No such file or directory in /home/mashahei/public_html/index/ow_system_plugins/base/classes/file_log_writer.php on line 65




how to solve this ??
Try plugin the blogs have to disable! 
Anas mansour
Anas mansour Apr 10 '15
i  disabled it then the error is like that

OW Debug - Error Message: Argument 1 passed to LINKS_CLASS_EventHandler::onCollectEnabledAdsPages() must be an instance of BASE_EventCollector, instance of BASE_CLASS_EventCollector given File: /home/mashahei/public_html/index/ow_plugins/links/classes/event_handler.php Line: 218


Warning: file_put_contents(/home/mashahei/public_html/index/ow_log/error.log): failed to open stream: No such file or directory in /home/mashahei/public_html/index/ow_system_plugins/base/classes/file_log_writer.php on line 61

Warning: chmod(): No such file or directory in /home/mashahei/public_html/index/ow_system_plugins/base/classes/file_log_writer.php on line 65
Maksim
Maksim Apr 10 '15
Now disable the plugin photo! 
Maksim
Maksim Apr 10 '15
Why this problem started to appear? 
Maksim
Maksim Apr 10 '15
У меня после смены темы вот в чем проблема!Не знаю как это исправить!?
Attachments:
  Screenshot_5.png (121Kb)
  Screenshot_6.png (171Kb)
Anas mansour
Anas mansour Apr 10 '15
thanks maksim for your help

i have deactivated all plugins ,, then activated them one by one , the "advertisement plugin" was the problem .
Maksim
Maksim Apr 10 '15
Please!) 
dave Leader
dave Apr 10 '15
what is the name of your dir is it ow_logs or ow_log?


  if it is ow_logs then rename it to ow_log, this is a known issue. 

Maksim
Maksim Apr 10 '15
Я ow_log везде !
dave Leader
dave Apr 10 '15
what code is on these lines please


/home/mashahei/public_html/index/ow_plugins/blogs/classes/event_handler.php Line: 220

/home/mashahei/public_html/index/ow_plugins/links/classes/event_handler.php Line: 218


what version do you have?

The Forum post is edited by dave Apr 10 '15
Maksim
Maksim Apr 10 '15
1.7.2.
Maksim
Maksim Apr 10 '15
/ow_plugins/blogs/classes/event_handler.php линия: 220 no such line!


   118     OW::getCacheManager()->clean(array(PostDao::CACHE_TAG_POST_COUNT));


        $userId = $params['userId'];


        $count = (int) $this->service->countUserPost($userId);

Maksim
Maksim Apr 10 '15
Just another topic immediately well and this problem)) 
dave Leader
dave Apr 10 '15
team i think this is the code its on 238 in the blogs classes event handler 

and in the links classes event handler i show it on 245

// blogs code    public function onCollectEnabledAdsPages( BASE_CLASS_EventCollector $event )    {        $event->add('blogs');    }


//links code 


    public function onCollectEnabledAdsPages( BASE_CLASS_EventCollector $event )    {        $event->add('links');    }


Maksim lets wait for a team member to look at this, im not sure whats going on here, sorry i wish i was more help but ill keep digging for you.  

The Forum post is edited by dave Apr 10 '15
Maksim
Maksim Apr 10 '15
Thank you very much! 
ross Team
ross Apr 13 '15
Anas, is the advertisement plugin up-to-date? 

What is your software version and what is the plugin version you have?


Maksim, switch to the default theme and see if the issue persists if not, then it is a 3rd part theme issue, contact theme developer to resolve it. 

The Forum post is edited by ross Apr 13 '15