I install panel 3.0 alpha 3, and break all my panels, the don't show in the block(but show in the preview of the panel).

I des-instaled all modules, include the CTools alpha3, and instaled again, all panels here eliminated, but I can't create neither one.

Ex. I put the name, but save, I selected the layout but don't save, etc...

CommentFileSizeAuthor
#10 419726-fix-update.patch15.05 KBmerlinofchaos

Comments

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

I don't have enough information here to go on.

int’s picture

Status: Postponed (maintainer needs more info) » Active

ok,

Drupal 6.10
lighttpd 1.4.19
PHP 5.2.6
MySQL 5.0.67

See in the error in screencast here.

cgillogly’s picture

Status: Active » Postponed (maintainer needs more info)

Not sure if this is the same issue you are having but after the upgrade from alpha2 to alpha3 today I'm getting the following type of errors when I try to create or modify one of my panels:

user warning: Unknown column 'style' in 'field list' query: UPDATE panels_pane SET did = 2, panel = 'row_1_1', type = 'block', subtype = 'block-1', shown = 1, access = 'a:0:{}', configuration = 'a:9:{s:5:\"style\";s:7:\"default\";s:14:\"override_title\";i:1;s:19:\"override_title_text\";s:0:\"\";s:6:\"css_id\";s:0:\"\";s:9:\"css_class\";s:0:\"\";s:6:\"module\";s:5:\"block\";s:5:\"delta\";s:1:\"1\";s:16:\"block_visibility\";i:0;s:14:\"block_settings\";a:3:{s:4:\"info\";s:6:\"Top Ad\";s:4:\"body\";s:61:\"Only local images are allowed.\";s:6:\"format\";s:1:\"2\";}}', cache = 'b:0;', style = 'b:0;', css = 'b:0;', extras = 'b:0;', position = 0 WHERE pid = 6 in /var/www/drupal/includes/common.inc on line 3422.

Looked into it a little and found that the database was never updated with update.php for alpha3, so the fields are not available in the database even tough the code is setup to use them. Update '6290' looks like it has what is needed to create the fields, etc but it's commented out and update '6300' is empty to create the baseline for 6.x-3.x.

merlinofchaos’s picture

aw crud. :/

int’s picture

Status: Postponed (maintainer needs more info) » Active

change again

asd123asd5’s picture

subscribing.

bacchus101’s picture

subscribing

cgillogly’s picture

@merlinofchaos Is there a way of downgrading back to alpha2 after an upgrade to alpha3 without causing problems? I'm developing a new website for the company I work for and I would like to be able to continue until a fix is released. I guess next time I won't be lazy and do a backup like I'm supposed to. :)

merlinofchaos’s picture

Since no update script actually happened you should be able to revert to alpha2 without problems. Just remove the directory and replace the alpha2 code.

merlinofchaos’s picture

Status: Active » Needs review
StatusFileSize
new15.05 KB

Ok, attach is a patch that should fix this.

If there is anyone who updated to alpha3 that has not yet reverted and thus has a bunch of broken panels, or is willing to do this to a devsite, please apply this patch. If done after an update to alpha3, set your update.php to update from 6291 for panels.module; if done before an upgrade to alpha3, just let it go normally. Please tell me if this works before I commit this (as I do not want to make a bad situation even worse with an error).

cgillogly’s picture

The patch seems to work with already having alpha3 installed. I applied the patch and ran the 6291 update and everything seems to be fine.

I will uninstall panels and go back to the alpha2 and try the patch to make sure it works there too shortly. Thank God for virtual machines for testing these things and going back to where you were :)

bacchus101’s picture

Patch applied to an alpha3 installation. Update.php run with panels module 6291.

Panel content added to page. CSS Class added to panel. Renders properly, previous errors gone.

cgillogly’s picture

Applied patch and updated from alpha2 to alpha3. Everything seems to work after that.

Only thing I noticed is that the style on the content / items added to the panels didn't carry over form alpha2 to alpha3 so I had to reset the style to 'rounded corners' on the ones I had set that way. This isn't a critical issue though and can be taken care of in a later patch / update.

theusualsuspect’s picture

Applied Patch and then upgraded to alpha3. Works like a charm so far.

Oh, but I get a warning message constantly now:

warning: Division by zero in /kunden/228490_53113/webseiten/yoorite-new/sites/all/modules/panels/plugins/layouts/flexible/flexible.inc on line 624.

asd123asd5’s picture

as with bacchus101, my problems are all fixed

theusualsuspect’s picture

Does anyone have a clue about this warning message. I read it somewhere before, but unfortunately I cannot find this issue anymore.

I guess it is not critical, but I don't want the users to see that warning message all the time.

cgillogly’s picture

Not 100% sure because I only had a few minutes to take a quick glance at the code, but it may be that you don't have a width set for one of the columns on your layout. Maybe check that you have a width value set for all of the columns and that one isn't left blank.

I know that with the percentage (%) setup, it just needs to add up to 100%, so you can have 100 for one column and leave the other box empty for the second column and it will accept it. It only cares that they add up to 100%.

I haven't seen that error in my setup, but I have all my values set. I would test this but I don't have access to my development server at the moment. Maybe tomorrow when I get to work if you haven't confirmed this by then.

coreyp_1’s picture

Thank you, Merlin!

Your patch saved my site.

You have done a great job with Panels!

-Corey

merlinofchaos’s picture

Ok, good catch on the styles; the update isn't switching region styles from the old format to the new. I'll add that in and commit the patch probably tomorrow. Sorry about all this!

merlinofchaos’s picture

The warning message may indicate something failed to convert properly in a flexible layout from the old format to the new.

chawl’s picture

subs

theusualsuspect’s picture

@merlinofchaos

I am not sure what you exactly mean by convert from old to new format. I figure, you mean while upgrading my version of alpha2 to alpha3. Well, since I screwed up at reverting yesterday, I will have to build the panels from scratch. I therefore uninstalled ctools and panels, deleted table panels_object_cache from the db, cause that was still there and finally uploaded the patched version of panels alpha3 and ctools.

Unfortunately, this warning message is still there, though it is a fresh install, but it feels like it still carries along some old stuff.

This problem only occurs with the flexible layout, when I try to use a fixed width! With percentages it works fine.

If I use the default setting of the Layout Designer for a new panel with flexible layout and add a region to the right of the standard Center region, they both only add up to 100px. I can drag the slider left and right, but only within a 100px.

@cgillogly

how can I check if I have all values set? I mean if I use the static/fixed width in this layout designer, I can only set the width of the panes by dragging this slider back and forth. Is there any other place, where I can set the widths of the panes?

I hope I made the problem clearer. I really appreciate you folks helping other people out here.

ANOTHER THING: Why doesn't the columns add up to 100%. Why is .panels-flexible-column-2-main is set to width:99%; ? I assume this is intended, but why? I mean all panel pages are set to 950px instead of 960px like the content area width is.

Does anybody has any problems with widhts so far? All I wanted to achieve is that i have 2 column, adding up to 960px, which is the page max. width. One column to be 740px and the other to be 220px, the right column has an inside of 200px with a 20px padding to the left. I mean this is simple, normally, but with the new flexible layout I did not succeed..

escoles’s picture

(subscribing)

cgillogly’s picture

@theusualsuspect Never mind about checking those values. The layout part of panels changed with alpha3 and there are no longer boxes to enter the values, just the sliders from what I can see (as you said). Not sure how else to check or if that's the problem, but I'll look into it on my testing server later today.

@merlinofchaos In regard to the new sliders for setting the region, will there be a way to set specific values other than the sliders. The reason I ask is that I can get my slider to go to exactly 75% / 25% for a two region row, but cannot get to 50%/50% or other specific ones I want.

merlinofchaos’s picture

cgillogly: Try holding down shift while sliding, that should make it easier to get the precise number you want.

cgillogly’s picture

@merlinofchaos Thanks! I feel stupid for not trying that in the first place.

As for the main issue here, will there be another (special) release made after the patch is committed or will it just be included for the release in a few weeks. I will wait to apply to my dev server if a fixed release will be put out today or early tomorrow. If not, will applying the patch myself affect me when the next release is made in a few weeks?

merlinofchaos’s picture

I will roll the alpha4 I said I wouldn't roll either today or tomorrow, cause this is too big to let go for long.

int’s picture

Status: Needs review » Reviewed & tested by the community
merlinofchaos’s picture

Status: Reviewed & tested by the community » Fixed

Fix checked in, alpha4 released.

http://drupal.org/node/421994

theusualsuspect’s picture

@cgillogly

Did you try to use fixed width by any chance.? I still have this problem with the division by zero unfortunately.

@merlinofchaos

I can imagine how busy you are, but if its not to much to ask, could you tell me in one sentence, if its possible to add up the width of the panels to reach the width of the page total width? I used to to do that in Drupal 5 with CSS, but as I can see in Firebug now: width = 99% is created on the fly in a separate CSS file. Am I correct, that aforementioned is not possible by design?

sagannotcarl’s picture

Doing a fresh install with this patch works great for me.

pixelpreview@gmail.com’s picture

that seems very long for me, i follow the instruction on #10 but the update script don't stop ??? It's blocked at 33% from the update process ???

I have apply the patch in my panels files before of course and choose 6291

is it normal ?

I will test from scratch and install the alpha 3

theusualsuspect’s picture

@pixelpreview

You should download the alpha4 version from the project page, this should already be the patched version. Just read the thread after post #10.

pixelpreview@gmail.com’s picture

yes thank you,

with alpha 4 it's ok for me
that seems stable now with my panels, i can edit them.

Status: Fixed » Closed (fixed)

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