Upgraded to Panels beta 4 today and it seems to have jacked up a bunch 'o things with Total Control.

* The main dashboard gives a page not found error and shows the Tasks tab instead.
* All of the tabs now show up in the Admin Menu at the top of the screen.
* Dashboard link no longer showing up on some user navigation blocks (tho that may be some other issue)

Reverting back to Panels beta 2 to see if that restores everything.

Comments

FunkMonkey’s picture

Looks like the Delegator module has been replaced by a Page Manager module. Turning that on fixed the Admin Menu problem and there is no longer a page not found error on /admin/dashboard. However, now all of the tabs are gone except Summary and Edit Panel. Wow.. took a look and all of the Total Control views are gone.

Weird.. Total Control module is now disabled in Modules.. and grayed out. Because of missing Delegator module? guess that's the hard part about developing on beta modules, eh.

Have fun Jen!

populist’s picture

StatusFileSize
new2.39 KB

Here is a patch that for Panels Beta 4!

FunkMonkey’s picture

Whoot! Thanks populist. That did the trick. Everything seems back to normal. I really need to learn more about how all of the module code etc works. I don't think I'd be able to figure that out.. except changing from delegator to page manager.

populist’s picture

Status: Active » Needs review

Thats great. I installed it on two sites and it seems good. Marking for Review.

pobster’s picture

There's a problem with the patch at #2;

page_manager_page_save does not exist as a function in the main module file so needs an include before you can call it.

Pobster

populist’s picture

Did you enable Page Manager module to begin with? When you update Panels to Beta 4 you need to enable Page Manager to get the magic working.

pobster’s picture

Read my post again; The function you're calling is in ctools/page_manager/plugins/tasks/page.inc not in the main module file. The only reason you're not getting an error is that you've no need to reinstall the panel as you've already got it installed. Page Manager seems to call this internally but meh, seems to work with a simple include_once call.

Pobster

merlinofchaos’s picture

Title: Upgrade to Panels Beta 4 butchers Total Control » Update Total Control to use CTools beta4

Changing title to something more friendly.

merlinofchaos’s picture

Interesting. Reading htis patch, the install actually saves a page to the database. IMO this is the wrong approach; the page should be provided as a default so that it can be more easily updated and maintained in code. I would highly recommend making that change with this patch.

populist’s picture

Assigned: Unassigned » populist
StatusFileSize
new13.95 KB

This patch is a refactoring of the default dashboard page handling as per merlin's suggestion in #9. The dashboard page is now being defined as a default task (hook_page_manager_tasks) and extended with a handler (hook_default_page_manager_handlers).

This is a much cleaner approach and cleanly allows us to add in contexts for the dashboard (and additional handlers) which makes for some very interesting possibilities with user context handling (i.e. each $user->role could have optional page customization and individual users could have their own total control pages).

merlinofchaos’s picture

Assigned: populist » Unassigned

Minor quibble (very very minor): I've tried to hide teh language for 'task' and 'task handler' from the admin, since those terms have no meaning to users. You can just call it a page or a system page (which users can interpret as system controlled). Otherwise, that's great work, populist!

merlinofchaos’s picture

What is firep()? I tried installing this and I have no such function. I commented it out and things work, but total control spews a lot of notices.



    * notice: Undefined index: types in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/create.inc on line 39.
    * notice: Undefined index: types in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/create.inc on line 39.
    * notice: Undefined index: types in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/create.inc on line 39.
    * notice: Undefined index: types in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/create.inc on line 39.
    * notice: Undefined index: types in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/create.inc on line 39.
    * notice: Undefined index: types in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/create.inc on line 39.
    * notice: Undefined index: types in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/create.inc on line 39.
    * notice: Undefined index: types in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/create.inc on line 39.
    * notice: Undefined index: types in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/create.inc on line 39.
    * notice: Undefined index: types in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/create.inc on line 39.
    * notice: Undefined index: vids in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/taxonomy.inc on line 33.
    * notice: Undefined index: types in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 38.
    * notice: Undefined index: comments in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 43.
    * notice: Undefined index: panel_comments in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 54.
    * notice: Undefined index: panel_comments_spam in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 55.
    * notice: Undefined index: types in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 38.
    * notice: Undefined index: spam in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 47.
    * notice: Undefined index: article_comments_spam in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 55.
    * notice: Undefined index: types in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 38.
    * notice: Undefined index: spam in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 47.
    * notice: Undefined index: character_comments_spam in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 55.
    * notice: Undefined index: types in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 38.
    * notice: Undefined index: comments in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 43.
    * notice: Undefined index: page_comments in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 54.
    * notice: Undefined index: page_comments_spam in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 55.
    * notice: Undefined index: types in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 38.
    * notice: Undefined index: spam in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 47.
    * notice: Undefined index: skill_comments_spam in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 55.
    * notice: Undefined index: types in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 38.
    * notice: Undefined index: comments in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 43.
    * notice: Undefined index: story_comments in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 54.
    * notice: Undefined index: story_comments_spam in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 55.
    * notice: Undefined index: types in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 38.
    * notice: Undefined index: spam in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 47.
    * notice: Undefined index: type_a_comments_spam in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 55.
    * notice: Undefined index: types in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 38.
    * notice: Undefined index: spam in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 47.
    * notice: Undefined index: type_b_comments_spam in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 55.
    * notice: Undefined index: types in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 38.
    * notice: Undefined index: spam in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 47.
    * notice: Undefined index: type_c_comments_spam in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 55.
    * notice: Undefined index: types in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 38.
    * notice: Undefined index: spam in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 47.
    * notice: Undefined index: uprofile_comments_spam in /var/www/panels3/sites/all/modules/total_control/plugins/content_types/overview_content.inc on line 55.

Most of these should be easy fixes.

merlinofchaos’s picture

Status: Needs review » Needs work

A few panes are provided here for you by default, but there are other panes available. Go to Admin > Site building > Pages. Locate the "Admin Dashboard" in the list. Under "Operations" at right, click "Panel Content". On the panel layout page, click the plus sign at the top left of any panel and select "Add content" from the drop-down. Your Total Control options are provided under "Admin Dashboard" on the left. Add as many or as few as you like, and make this dashboard your own!

That text needs to be updated. Also under most themes 'Edit Panel' tab should take you directly to the page though thanks to Drupal's tab system it may not show up under themes that do special things with tabs.

populist’s picture

The firep() function is the debugging output function for the Drupal For Firebug module left in by mistake.

merlinofchaos’s picture

Just a poke. Most people dont' get good patch reviews from me. But also, I want to be able to point to this module when I write the official release announcement for the 3.0 release, so getting this in and ready would make me a very happy person.

populist’s picture

Status: Needs work » Needs review
StatusFileSize
new18.69 KB

Here is a rerolled patch from #10. This includes changes to support RC1 (language changes pointed out in #13), removing random debug code (firep() error from above), and a first crack at getting rid of the notices generated by non-existent array keys.

jenlampton’s picture

StatusFileSize
new0 bytes

It looks like a bunch of functions/files/directories from the patch in #10 were left out of the patch in #16. I put them all back together and got things working again, on two sites. I'm working on some other fixes too, but would love it if someone else could test this and confirm. I zipped up the whole module since applying these patches didn't go so smoothly, this may make it easier to test.

tobias’s picture

I am eager to install Total Control on my site but am currently unable.. would be grateful if Total Control could be updated to reflect the changes to Delegator discussed in this thread.

I've tried CTools beta4 but it appears to already have the Page Manager.

Thanks in advance!

Tobias

populist’s picture

Version: 6.x-1.0-rc4 » 6.x-1.x-dev
StatusFileSize
new468 bytes

Here is a patch to get Total Control OG working on the -dev branch. The included file name was wrong.

pobster’s picture

Just to note that you've done the same with the workflow view as well, s/b;

includes/total_control_workflow.default_views.inc

In total_control/total_control_workflow.module

Pobster

tallsimon’s picture

is this the same reason as the /admin/dashboard/users comes up as a 404 error? I was really looking forward to this bit of the module...

pobster’s picture

You are using the dev version right? It comes up for me??

Pobster

jenlampton’s picture

You may also need to revisit the views page and "Revert" to the new view to make sure you are using all the versions of views in-code and not an older version that got saved to your db.

Sorry about my delay on getting the 1.0 release out, I want to test the rollout / upgrade process a few more time and make sure the code is good before I release it to the wild. I've committed the patch for og (and a similar change to workflow) to the -dev branch.

Jen

pobster’s picture

Just to note that there's a few (now deprecated) call-by-reference variables as well, eg.

total_control.module:108 + 111: total_control_add_views_pane_display(&$view, $content_type, $machine_type);

views/control_content.view:843 + 845: total_control_add_views_pane_display(&$view, $type->name, $machine);

The ampersand can be safely removed as the variables are already referenced in the function being called.

Thanks, and loving the work!

Pobster

tobias’s picture

thank you - removing the ampersands worked!

I am looking forward to exploring the possibilities with this module - it looks terrific! Many thanks for the work.

Cheers,

Tobias

jenlampton’s picture

Status: Needs review » Fixed

I just tested it on two other sites and it looks to be ok now.

I missed the deprecated call-by-reference in the 1.0 release (next time, please create a new issue! :-) but I've committed the changes to the dev branch.

Jen

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.