I just upgraded from Drupal 5 to Drupal 6. I've enabled panels but when I go to the panels admin page and click on Panel Pages, all my panels that I created are missing. I checked the database and it looks like they are still there.

How can I get them to display?

Comments

merlinofchaos’s picture

did update.php report any errors?

If they are still there, what table are they in?

rgraves’s picture

There were no panel-related errors in update.php. There were some errors with other modules, but they've been sorted out. There is data in panels_display, panels_pane and panels_views. The tables panels_mini and panels_node are empty which I would expect since I did not use those features.

Here's a list of tables and the # of records in each for my Drupal 5 and Drupal 6 databases:

panels_display: Drupal 5 (135), Drupal 6 (135)
panels_mini: Drupal 5 (0), Drupal 6 (0)
panels_object_cache: Drupal 5 (0), Drupal 6 (table does not exist)
panels_node: Drupal 5 (table does not exist), Drupal 6 (0)
panels_page: Drupal 5 (135), Drupal 6 (table does not exist)
panels_pane: Drupal 5 (787), Drupal 6 (783)
panels_views: Drupal 5 (43), Drupal 6 (43)

Could it be the missing panels_page table in D6?

merlinofchaos’s picture

in Panels 3 those pages *should* have moved to the delegator_pages table. The upgrade path is still in need of testing so it's not entirely trustable but I haven't seen it do *that*. =(

rgraves’s picture

I know I didn't enable the delegator module at first because I didn't know what it was. I then realized I needed to enable it for panels and did so. I've run update.php since, but the problem remains. There are currently no records in delegrator_pages.

merlinofchaos’s picture

Title: Panels Missing After Drupal 6 Upgrade » Panels lost during upgrade if delegator not on.
Category: support » bug

Hmm. Okay, that's interesting. With delegator disabled the update is supposed to force itself to stop. It is possible that it did not. In this case, the panel pages are lost. In order to recover them you will need to revert to a backup, and upgrade again. I guess this time turn delegator on first.

I'll look more into the bug that caused them to get lost.

rgraves’s picture

Okay, I started from scratch, updated Drupal core, enabled all my modules (including delegator) and ran update.php. I now have 135 records in delegator_pages and zero records in delegator_handlers and delegator_weights (I'm not sure if I should have anything in those or not).

However, my site is timing out. I'm getting out of memory errors. If I up php_memory limit, I get timeout errors since the script takes so long. I've determined that it's the delegator module causing the problem. When I disable that module, my site loads again.

Any ideas why this would be running so slow all of a sudden?

rgraves’s picture

Update - I spoke too soon and realize that the memory errors are only occurring on the modules admin page. Other parts of my site are working fine. I read somewhere else that issues with the delegator module should be posted to the CTools issues and not panels so I have posted an issue at http://drupal.org/node/474222

tobby’s picture

I ran into the same problem, that if I didn't have delegator enabled, my pages were lost. On a dev site, I upgraded from 2-rc1 to 3-beta2. Initially, I enabled ctools (panels was already enabled) and ran update.php; my panels were gone.

Here's how I successfully upgraded, FWIW for anyone about to upgrade:
1. Download the latest ctools. Don't get the latest version of panels yet.
2. Backup any custom layouts from panels/layouts
3. Enable ctools and delegator modules at admin/build/modules
4. Delete panels from your modules directory
5. Upload Panels 3 and copy your custom layouts back (now they go in panels/plugins/layouts)
6. Run update.php
You should be good to go.

marcelboere’s picture

The creation of the delegator_pages table (needed for Panels to work) is still a problem in ctools-6.x-1.0-beta3 (Even after running update.php) with panels-6.x-3.0-beta2 installed. If you install Ctools on a clean system, enable ctools and then delegator it does create the table! I copied the table here,so you might try to create the table yourself in a system where you get warnings about a missing delegator_pages table.

WARNING: First check if the table is really missing, otherwise you will destroy your data with this action, backup your database first!! If you're not sure, LEAVE OUT the line DROP TABLE IF EXISTS `delegator pages` in the statements below !!!

I tested it and it works with panels-6.x-3.0-beta2:

USE my-drupal-database; // fill in the name of your own database

DROP TABLE IF EXISTS `delegator_pages`;
CREATE TABLE `delegator_pages` (
`pid` int(11) NOT NULL auto_increment,
`name` varchar(255) default NULL,
`task` varchar(64) default 'page',
`admin_title` varchar(255) default NULL,
`path` varchar(255) default NULL,
`access` longtext NOT NULL,
`multiple` tinyint(4) default '0',
`menu` longtext NOT NULL,
`arguments` longtext NOT NULL,
`conf` longtext NOT NULL,
PRIMARY KEY (`pid`),
UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

lameei’s picture

I've lost all the panels due to not enabling the delegator. There is no recent backup :-(((( so ie there any way to get my things back. I've read here that tables exists in DB. Any way how can i edit panel pages in this new version???

sdboyer’s picture

Issue tags: +Upgrade path

just tagging.

Skelly1983’s picture

Status: Active » Fixed

thanx marcelboere that solved this problem for me, seems the delegator module with ctools fails to create this key

blueblade’s picture

Version: 6.x-3.0-beta2 » 6.x-3.0-beta4

Hello,

I have just upgraded Panels 6.x-3.0-beta2 to Recommended version 6.x-3.0-beta4 and found the same problem. All my panel pages were gone....
Fortunately I was able to downgrade and get all my pages back without using any backed up database. Do you have any ideas why this happened? Also, mini panels are not working right in 6.x-3.0-beta2, the content loaded from views 6.x-2.6 wont show correctly...hopefully we will be upgrade to the newer version soon without any problem.

Thanks for the hard work!

BB

lameei’s picture

In RC version of c-tools there is no delegator!!! so how i should upgrade to new version of panels?

Status: Fixed » Closed (fixed)

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

cgjohnson’s picture

REOPENING

I suspect this is my problem too. I followed instructions and upgraded from panels 2 to 3 (d6) and lost all my pages. I didn't turn on delegator.... will try that now

(but it seems to me this issue isn't resolved, since I wasn't aware I had to turn on delegator module or anything other than ctools for the upgrade) - did I just miss something somewhere?

this is not a complaint about panels, which is an amazing module, just the upgrade instructions.

cgjohnson’s picture

Update -- just read the full doc and it seems delegator is no longer needed with page manager. So this is NOT my issue, but I'm still having a lot of trouble after a careful upgrade from panels 2 to 3 -- no layout verticle tab, no content and all of my panels show page not found errors, even though they're all listed in Site Building-->Pages and --> Panels

posted as a new issue - node/581274
thanks.