Cupcake Forum Plugin integration with Croogo

292 views
Skip to first unread message

manu

unread,
Feb 25, 2011, 6:56:34 AM2/25/11
to Croogo
I am trying to get Miles Johnson's Cupcake Forum version 1.8.1 to work
in croogo version 1.3.2

I have uploaded the plugin into the plugin folder and inserted the
schema into the database.
It kind of works but whenever I try to use add, edit or delete actions
for any of the controllers I get

DbAcl::check() - Failed ARO/ACO node lookup in permissions check.

I have generated actions in using the ACL plugin in the backend and
the actions are generated.

Any ideas??

Stefan Stefanov

unread,
Feb 25, 2011, 8:47:38 AM2/25/11
to cro...@googlegroups.com
Just a thought - it sounds like a caching issue.

> --
> You received this message because you are subscribed to the Google Groups "Croogo" group.
> To post to this group, send email to cro...@googlegroups.com.
> To unsubscribe from this group, send email to croogo+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/croogo?hl=en.
>
>

manu wegmershaus

unread,
Feb 25, 2011, 10:42:49 AM2/25/11
to cro...@googlegroups.com
I wish it were. I have cleared the cache several times.

This is the full error report from /forum/topics/add/1

Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check.  Node references:
Aro: Array
(
[User] => Array
(
[id] => 1
[role_id] => 1
[username] => admin
[name] => Administrator
[email] => y...@your-site.com
[website] => /about
[activation_key] =>
[image] =>
[bio] =>
[timezone] => 0
[status] => 1
[updated] => 2011-02-25 17:26:44
[created] => 2009-04-05 00:20:34
[signature] =>
[locale] => eng
[totalPosts] => 0
[totalTopics] => 0
[currentLogin] => 2011-02-25 17:26:44
[lastLogin] =>
)

)

Aco: controllers/Forum/Topics/add [CORE/cake/libs/controller/components/acl.php, line 273]
Code | Context

        if (empty($aroPath) || empty($acoPath)) {
            trigger_error(__("DbAcl::check() - Failed ARO/ACO node lookup in permissions check.  Node references:\nAro: ", true) . print_r($aro, true) . "\nAco: " . print_r($aco, true), E_USER_WARNING);
$aro	=	array(
	"User" => array(
	"id" => "1",
	"role_id" => "1",
	"username" => "admin",
	"name" => "Administrator",
	"email" => "y...@your-site.com",
	"website" => "/about",
	"activation_key" => "",
	"image" => "",
	"bio" => "",
	"timezone" => "0",
	"status" => "1",
	"updated" => "2011-02-25 17:26:44",
	"created" => "2009-04-05 00:20:34",
	"signature" => "",
	"locale" => "eng",
	"totalPosts" => "0",
	"totalTopics" => "0",
	"currentLogin" => "2011-02-25 17:26:44",
	"lastLogin" => null
)
)
$aco	=	"controllers/Forum/Topics/add"
$action	=	"*"
$permKeys	=	array(
	"_create",
	"_read",
	"_update",
	"_delete"
)
$aroPath	=	array(
	array(
	"Aro" => array()
)
)
$acoPath	=	false
DbAcl::check() - CORE/cake/libs/controller/components/acl.php, line 273
AclComponent::check() - CORE/cake/libs/controller/components/acl.php, line 92
AuthComponent::isAuthorized() - CORE/cake/libs/controller/components/auth.php, line 527
AuthComponent::startup() - CORE/cake/libs/controller/components/auth.php, line 445
Component::triggerCallback() - CORE/cake/libs/controller/component.php, line 186
Controller::startupProcess() - CORE/cake/libs/controller/controller.php, line 527
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 187
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Notice (8): Undefined property: AutoLoginComponent::$Auth [APP/plugins/forum/controllers/components/auto_login.php, line 146]
Code | Context
        );

        if (is_array($this->Auth->loginAction)) {

$Controller	=	TopicsController
TopicsController::$uses = array
TopicsController::$components = array
TopicsController::$paginate = array
TopicsController::$helpers = array
TopicsController::$usePaginationCache = true
TopicsController::$view = "Theme"
TopicsController::$theme = NULL
TopicsController::$name = "Topics"
TopicsController::$here = "/cmrs2/forum/topics/add/1"
TopicsController::$webroot = "/cmrs2/"
TopicsController::$action = "add"
TopicsController::$params = array
TopicsController::$data = array
TopicsController::$viewPath = "topics"
TopicsController::$layoutPath = NULL
TopicsController::$viewVars = array
TopicsController::$modelNames = array
TopicsController::$base = "/cmrs2"
TopicsController::$layout = "default"
TopicsController::$autoRender = false
TopicsController::$autoLayout = true
TopicsController::$Component = Component object
TopicsController::$ext = ".ctp"
TopicsController::$output = NULL
TopicsController::$plugin = "forum"
TopicsController::$cacheAction = false
TopicsController::$persistModel = false
TopicsController::$passedArgs = array
TopicsController::$scaffold = false
TopicsController::$methods = array
TopicsController::$modelClass = "Topic"
TopicsController::$modelKey = "topic"
TopicsController::$validationErrors = NULL
TopicsController::$__httpCodes = NULL
TopicsController::$RequestHandler = RequestHandlerComponent object
TopicsController::$Session = SessionComponent object
TopicsController::$Security = SecurityComponent object
TopicsController::$Cookie = CookieComponent object
TopicsController::$Toolbar = ToolbarComponent object
TopicsController::$Auth = AuthComponent object
TopicsController::$Acl = AclComponent object
TopicsController::$Croogo = CroogoComponent object
TopicsController::$AclFilter = AclFilterComponent object
TopicsController::$AutoLogin = AutoLoginComponent object
TopicsController::$Topic = Topic object
TopicsController::$Block = Block object
TopicsController::$Link = Link object
TopicsController::$Setting = Setting object
TopicsController::$Node = Node object
AutoLoginComponent::beforeRedirect() - APP/plugins/forum/controllers/components/auto_login.php, line 146
Component::beforeRedirect() - CORE/cake/libs/controller/component.php, line 143
Controller::redirect() - CORE/cake/libs/controller/controller.php, line 682
AuthComponent::startup() - CORE/cake/libs/controller/components/auth.php, line 450
Component::triggerCallback() - CORE/cake/libs/controller/component.php, line 186
Controller::startupProcess() - CORE/cake/libs/controller/controller.php, line 527
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 187
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Notice (8): Trying to get property of non-object [APP/plugins/forum/controllers/components/auto_login.php, line 146]
Code | Context
        );

        if (is_array($this->Auth->loginAction)) {

$Controller	=	TopicsController
TopicsController::$uses = array
TopicsController::$components = array
TopicsController::$paginate = array
TopicsController::$helpers = array
TopicsController::$usePaginationCache = true
TopicsController::$view = "Theme"
TopicsController::$theme = NULL
TopicsController::$name = "Topics"
TopicsController::$here = "/cmrs2/forum/topics/add/1"
TopicsController::$webroot = "/cmrs2/"
TopicsController::$action = "add"
TopicsController::$params = array
TopicsController::$data = array
TopicsController::$viewPath = "topics"
TopicsController::$layoutPath = NULL
TopicsController::$viewVars = array
TopicsController::$modelNames = array
TopicsController::$base = "/cmrs2"
TopicsController::$layout = "default"
TopicsController::$autoRender = false
TopicsController::$autoLayout = true
TopicsController::$Component = Component object
TopicsController::$ext = ".ctp"
TopicsController::$output = NULL
TopicsController::$plugin = "forum"
TopicsController::$cacheAction = false
TopicsController::$persistModel = false
TopicsController::$passedArgs = array
TopicsController::$scaffold = false
TopicsController::$methods = array
TopicsController::$modelClass = "Topic"
TopicsController::$modelKey = "topic"
TopicsController::$validationErrors = NULL
TopicsController::$__httpCodes = NULL
TopicsController::$RequestHandler = RequestHandlerComponent object
TopicsController::$Session = SessionComponent object
TopicsController::$Security = SecurityComponent object
TopicsController::$Cookie = CookieComponent object
TopicsController::$Toolbar = ToolbarComponent object
TopicsController::$Auth = AuthComponent object
TopicsController::$Acl = AclComponent object
TopicsController::$Croogo = CroogoComponent object
TopicsController::$AclFilter = AclFilterComponent object
TopicsController::$AutoLogin = AutoLoginComponent object
TopicsController::$Topic = Topic object
TopicsController::$Block = Block object
TopicsController::$Link = Link object
TopicsController::$Setting = Setting object
TopicsController::$Node = Node object
AutoLoginComponent::beforeRedirect() - APP/plugins/forum/controllers/components/auto_login.php, line 146
Component::beforeRedirect() - CORE/cake/libs/controller/component.php, line 143
Controller::redirect() - CORE/cake/libs/controller/controller.php, line 682
AuthComponent::startup() - CORE/cake/libs/controller/components/auth.php, line 450
Component::triggerCallback() - CORE/cake/libs/controller/component.php, line 186
Controller::startupProcess() - CORE/cake/libs/controller/controller.php, line 527
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 187
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Notice (8): Undefined property: AutoLoginComponent::$Controller [APP/plugins/forum/controllers/components/auto_login.php, line 161]
Code | Context

        // Is called after user login/logout validates, but befire auth redirects
        if ($this->Controller->plugin == $this->settings['plugin'] && $this->Controller->name == $this->settings['controller']) {
$Controller	=	TopicsController
TopicsController::$uses = array
TopicsController::$components = array
TopicsController::$paginate = array
TopicsController::$helpers = array
TopicsController::$usePaginationCache = true
TopicsController::$view = "Theme"
TopicsController::$theme = NULL
TopicsController::$name = "Topics"
TopicsController::$here = "/cmrs2/forum/topics/add/1"
TopicsController::$webroot = "/cmrs2/"
TopicsController::$action = "add"
TopicsController::$params = array
TopicsController::$data = array
TopicsController::$viewPath = "topics"
TopicsController::$layoutPath = NULL
TopicsController::$viewVars = array
TopicsController::$modelNames = array
TopicsController::$base = "/cmrs2"
TopicsController::$layout = "default"
TopicsController::$autoRender = false
TopicsController::$autoLayout = true
TopicsController::$Component = Component object
TopicsController::$ext = ".ctp"
TopicsController::$output = NULL
TopicsController::$plugin = "forum"
TopicsController::$cacheAction = false
TopicsController::$persistModel = false
TopicsController::$passedArgs = array
TopicsController::$scaffold = false
TopicsController::$methods = array
TopicsController::$modelClass = "Topic"
TopicsController::$modelKey = "topic"
TopicsController::$validationErrors = NULL
TopicsController::$__httpCodes = NULL
TopicsController::$RequestHandler = RequestHandlerComponent object
TopicsController::$Session = SessionComponent object
TopicsController::$Security = SecurityComponent object
TopicsController::$Cookie = CookieComponent object
TopicsController::$Toolbar = ToolbarComponent object
TopicsController::$Auth = AuthComponent object
TopicsController::$Acl = AclComponent object
TopicsController::$Croogo = CroogoComponent object
TopicsController::$AclFilter = AclFilterComponent object
TopicsController::$AutoLogin = AutoLoginComponent object
TopicsController::$Topic = Topic object
TopicsController::$Block = Block object
TopicsController::$Link = Link object
TopicsController::$Setting = Setting object
TopicsController::$Node = Node object
AutoLoginComponent::beforeRedirect() - APP/plugins/forum/controllers/components/auto_login.php, line 161
Component::beforeRedirect() - CORE/cake/libs/controller/component.php, line 143
Controller::redirect() - CORE/cake/libs/controller/controller.php, line 682
AuthComponent::startup() - CORE/cake/libs/controller/components/auth.php, line 450
Component::triggerCallback() - CORE/cake/libs/controller/component.php, line 186
Controller::startupProcess() - CORE/cake/libs/controller/controller.php, line 527
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 187
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Notice (8): Trying to get property of non-object [APP/plugins/forum/controllers/components/auto_login.php, line 161]
Code | Context

        // Is called after user login/logout validates, but befire auth redirects
        if ($this->Controller->plugin == $this->settings['plugin'] && $this->Controller->name == $this->settings['controller']) {
$Controller	=	TopicsController
TopicsController::$uses = array
TopicsController::$components = array
TopicsController::$paginate = array
TopicsController::$helpers = array
TopicsController::$usePaginationCache = true
TopicsController::$view = "Theme"
TopicsController::$theme = NULL
TopicsController::$name = "Topics"
TopicsController::$here = "/cmrs2/forum/topics/add/1"
TopicsController::$webroot = "/cmrs2/"
TopicsController::$action = "add"
TopicsController::$params = array
TopicsController::$data = array
TopicsController::$viewPath = "topics"
TopicsController::$layoutPath = NULL
TopicsController::$viewVars = array
TopicsController::$modelNames = array
TopicsController::$base = "/cmrs2"
TopicsController::$layout = "default"
TopicsController::$autoRender = false
TopicsController::$autoLayout = true
TopicsController::$Component = Component object
TopicsController::$ext = ".ctp"
TopicsController::$output = NULL
TopicsController::$plugin = "forum"
TopicsController::$cacheAction = false
TopicsController::$persistModel = false
TopicsController::$passedArgs = array
TopicsController::$scaffold = false
TopicsController::$methods = array
TopicsController::$modelClass = "Topic"
TopicsController::$modelKey = "topic"
TopicsController::$validationErrors = NULL
TopicsController::$__httpCodes = NULL
TopicsController::$RequestHandler = RequestHandlerComponent object
TopicsController::$Session = SessionComponent object
TopicsController::$Security = SecurityComponent object
TopicsController::$Cookie = CookieComponent object
TopicsController::$Toolbar = ToolbarComponent object
TopicsController::$Auth = AuthComponent object
TopicsController::$Acl = AclComponent object
TopicsController::$Croogo = CroogoComponent object
TopicsController::$AclFilter = AclFilterComponent object
TopicsController::$AutoLogin = AutoLoginComponent object
TopicsController::$Topic = Topic object
TopicsController::$Block = Block object
TopicsController::$Link = Link object
TopicsController::$Setting = Setting object
TopicsController::$Node = Node object
AutoLoginComponent::beforeRedirect() - APP/plugins/forum/controllers/components/auto_login.php, line 161
Component::beforeRedirect() - CORE/cake/libs/controller/component.php, line 143
Controller::redirect() - CORE/cake/libs/controller/controller.php, line 682
AuthComponent::startup() - CORE/cake/libs/controller/components/auth.php, line 450
Component::triggerCallback() - CORE/cake/libs/controller/component.php, line 186
Controller::startupProcess() - CORE/cake/libs/controller/controller.php, line 527
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 187
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Warning (2): Cannot modify header information - headers already sent by (output started at /Users/manulaptop/Sites/public_html/cmrs2/cake/libs/debugger.php:673) [CORE/cake/libs/controller/controller.php, line 746]

There seems to be some issue with the auto-login component amongst other things.
--
Cheers

Manu

...........................

Tel: 076 892 2283

Sam Bernard

unread,
Mar 2, 2011, 11:50:58 PM3/2/11
to cro...@googlegroups.com
I integrated Cupcake with an older version of Croogo(the one that still used pluginHooks), however I can't remember exactly how I did it. I think I somehow disabled ACL in the CupcakeAppController since cupcake was already set up with it's own user permissions.

If I can find the code I'll post it for you.

Manu

unread,
Mar 3, 2011, 1:02:53 AM3/3/11
to cro...@googlegroups.com
Ok. That would be great. Thanks

Sent from my iPhone

On 03 Mar 2011, at 6:50 AM, Sam Bernard <sambe...@gmail.com> wrote:

I integrated Cupcake with an older version of Croogo(the one that still used pluginHooks), however I can't remember exactly how I did it. I think I somehow disabled ACL in the CupcakeAppController since cupcake was already set up with it's own user permissions.

If I can find the code I'll post it for you.

--

Dado

unread,
Mar 30, 2011, 11:35:23 AM3/30/11
to Croogo
Hi, i have a same problem, can you explain me how have you resolve it?

Thanks,
Dado

On 3 Mar, 08:02, Manu <manu...@gmail.com> wrote:
> Ok. That would be great. Thanks
>
> Sent from my iPhone
>

Dado

unread,
Apr 1, 2011, 6:22:16 AM4/1/11
to Croogo
i have resolved the problem adding this line in the
forum_app_controller.php under the beforeFilter() function:

$this->Auth->allow(
'add',
'edit',
'moderate',
'admin_index',
'admin_edit',
'admin_delete',
'admin_reset',
'admin_add_access',
'admin_add_access_level',
'admin_add_moderator',
'admin_edit_access',
'admin_delete_access',
'admin_add_forum',
'admin_add_category'
);

Adding those lines have i compromised the security of the forums or
croogo?

Thanks,
Dado

Iammikek

unread,
Jan 31, 2012, 3:57:08 PM1/31/12
to cro...@googlegroups.com
did you resolve issues with your forum installation? i've tried regenerating the actions in croogo admin to rebuild acl but havent any joy.

youla salematou

unread,
Jun 14, 2015, 1:24:35 PM6/14/15
to cro...@googlegroups.com
Hi i want to use the same plugin but i'm getting this error

Error: Unsupported operand types
File: C:\xampp\htdocs\apardap\Plugin\forum\Config\bootstrap.php
Line: 88

Notice: If you want to customize this error message, create apardap\View\Errors\fatal_error.ctp


Can some body help me please

youla salematou

unread,
Jun 14, 2015, 4:56:59 PM6/14/15
to cro...@googlegroups.com
Hi now i have à problem with decoda.

 Error: Class 'Decoda\Decoda' not found
File: C:\xampp\htdocs\apardap\Plugin\utility\View\Helper\DecodaHelper.php

Le vendredi 25 février 2011 12:56:34 UTC+1, manu wegmershaus a écrit :
Reply all
Reply to author
Forward
0 new messages