9.2.0.RC2
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexAnnouncements
Author Message
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: Re: 9.2.0.RC2
Posted: Wed Jan 02, 2008 4:46 pm
Reply with quote

Neither. I was only using phpMyAdmin to browse the format of cms_blocks for info in order to rectify some issues in Pro_News which broke the block handling under the latest changes in 9.2 Wink

But while I had phpMyAdmin open on cms_block I could not avoid a bold yellow banner stating that there appeared to be duplicate indexes and recommending that 1 of them be removed. Indeed Primary is declared as bid and bid is also declared as a unique key, so they might have a point. (I checked and this problem is new in 9.2, relative to 9.1.)

I'll try and post an image later (I installed 9.2.0.RC2 on my other - Linux - side of my desktop's dual boot so can't right now!)

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3678
Location: Melbourne, AU

PostPost subject: Re: 9.2.0.RC2
Posted: Wed Jan 02, 2008 5:29 pm
Reply with quote

bid,mid,weight are all together one unique key called "bid", there are not primary keys at all, i knew that phpMyAdmin had issues with keys but not up to this point.
_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL 5.1 / PHP 5.3 / NextGen()
Back to top
View user's profile Visit poster's website
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: phpMyAdmin reporting dup index on 9.2.0.RC2
Posted: Wed Jan 02, 2008 5:43 pm
Reply with quote

Nano, Here's the screenshot from phpMyAdmin v. 2.11.3 on MySQL v. 5.0.51. Showing cms_blocks.
_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: Re: 9.2.0.RC2
Posted: Wed Jan 02, 2008 5:48 pm
Reply with quote

Nano, Here's the screenshot from phpMyAdmin v. 2.11.3 on MySQL v. 5.0.51.

Hmmm. No attachments in this forum... Will post to Problems AFTER Install/Upgrade forum.

Image compression makes last word of warning message harder to read, but it is 'bid'. And display above shows 2 keys called bid.

Note that this is from a new install of 9.2.0.RC2 - not an upgrade.

Hope it helps.

Edit by Phoenix: attachment merged - I'll fix the attach permissions.

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
BrokenCrust
500+ Posts Club


Joined: Sep 06, 2004
Posts: 503

PostPost subject: Re: 9.2.0.RC2
Posted: Wed Jan 02, 2008 9:11 pm
Reply with quote

phpMyAdmin has always had this problem. If you define a key one a column and then another compound key that also uses that column then it bleats about a duplicate key even though it isn't.

eg

primary key (id)
key (id, user_id)

then it will moan about a double key on id, even though it isn't.


BrokenCrust's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.2.17/5.0.91/5.2.16/9.2.1
Back to top
View user's profile
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: Re: 9.2.0.RC2
Posted: Wed Jan 02, 2008 10:14 pm
Reply with quote

Good info, thanks!
_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
tilantha
Newbie


Joined: Dec 10, 2007
Posts: 18

PostPost subject: Re: 9.2.0.RC2
Posted: Thu Jan 03, 2008 6:11 pm
Reply with quote

Does LEO work on 9.2 RC2?

tilantha's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache/My SQL/PHP/DF 9.1.2.1
Back to top
View user's profile
rlgura
1000+ Posts Club


Joined: Mar 27, 2006
Posts: 1148
Location: Cleveland, OH USA

PostPost subject: Re: 9.2.0.RC2
Posted: Fri Jan 04, 2008 8:04 pm
Reply with quote

Not sure if this is an oversight, or just something that isn't done yet.
There is a new stylesheet: adminblocks.css that has styles for the new blocks administration, however, it doesn't seem to be linked anywhere...

For my theme, I just added a line to template\admin\blocks.html to link the style sheet - seems to work ok.

Realized this because New Block and block listing was white on white for my theme. Changing settings for default theme also had no visible effect

_________________
Admin - Great Lakes Web Designs
Theme Designer - WebSite Guru Designs
Site Admin - Families with Food Allergies

rlgura's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux 2.6.27-grsec/Apache 2.2.11/MySQL 5.0.67-community-log/PHP 5.2.8/DF 9.2.1
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3678
Location: Melbourne, AU

PostPost subject: Re: 9.2.0.RC2
Posted: Fri Jan 04, 2008 11:03 pm
Reply with quote

admin/modules/blocks.php 86-92 clearly looks if all files are there, otherwise select all needed files from the default theme.
PHP:
<?php
$blocks_theme = 'default';
# will be removed the next release
if ($ThemeSel != ' default'
&& file_exists('themes/'.$ThemeSel.'/style/adminblocks.css')
&& file_exists('themes/'.$ThemeSel.'/javascript/adminblocks.js')
&& file_exists('themes/'.$ThemeSel.'/images/drag.png'))
{
$blocks_theme = $ThemeSel;
}

Make sure to upload at least the default theme which is always use to search for files missing from new theme.

Next releases will have more and more files moved, including images, css, js, in the themes, this is part of the template process that every ask for ... but I'm not sure how long the fallback for missing files will last for.

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL 5.1 / PHP 5.3 / NextGen()
Back to top
View user's profile Visit poster's website
rlgura
1000+ Posts Club


Joined: Mar 27, 2006
Posts: 1148
Location: Cleveland, OH USA

PostPost subject: Re: 9.2.0.RC2
Posted: Sat Jan 05, 2008 6:43 am
Reply with quote

Ahh - I didn't notice the new '/javascript/adminblocks.js' file - I didn't have that in my theme, so it was still looking to default's adminblocks.css.

I'll add these files to my list of required changes to upgrade a theme to 9.2

_________________
Admin - Great Lakes Web Designs
Theme Designer - WebSite Guru Designs
Site Admin - Families with Food Allergies

rlgura's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux 2.6.27-grsec/Apache 2.2.11/MySQL 5.0.67-community-log/PHP 5.2.8/DF 9.2.1
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3678
Location: Melbourne, AU

PostPost subject: Re: 9.2.0.RC2
Posted: Sat Jan 05, 2008 7:53 am
Reply with quote

If your theme is missing one of those files, the core will immediately fall back to "default".

A theme will only need both css and js file if the default provided files doesn't work properly on your theme.

In that case you have to add and modify them to suit the theme, otherwise just make sure to upload the entire default theme.

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL 5.1 / PHP 5.3 / NextGen()
Back to top
View user's profile Visit poster's website
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: Re: 9.2.0.RC2
Posted: Wed Jan 09, 2008 6:49 am
Reply with quote

Nano, I may have found a problem in the new Blocks admin...

If 2 blocks exist with the same identical block Title ( ie. $row['title'] ), one with, say, a block id of 17 and 18 for the other, the bid=18 block will effectively overwrite (hide) the bid=17 entry in the right-hand block list display.

This results in 2 potential problems: user can't get to deactivate or delete the earlier one at all; and the display may appear inconsistent, e.g. if say bid=17 is already activated and bid=18 is not, the display will show the block unactivated (from bid 18) but at the same time the actual block will still be displayed (from bid=17).

It is true that if both are displayed in Blocks admin, they will appear identical, but the display will reflect the reality of 2 blocks of the same name, and by rolling a mouse over each title the bid can be seen in the browser status line.

Displaying both, even with duplicate titles would also be consistent with how it was previously handled in earlier releases.

I believe the code in question is on line 157 of blocks.php:
Code:
if (defined($row['title'])) $row['title'] = constant($row['title']);

I think it is all too easy to get into the situation where 2 different versions of the same block are present at the same time, to not provide a simpler method of resolution than having to delete the newer one, then deleting the older one, then re-creating the newer one.

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: Re: 9.2.0.RC2
Posted: Thu Jan 10, 2008 4:51 pm
Reply with quote

*** bump ***

I think this is/will be a serious support problem ...

Code either needs to test all fields (to ensure that blocks are indeed truly identical) or allow both versions to display separately. Else we will keep seeing a configuration which conflicts with the user's actual block set up. A support nightmare. I'm worried about it just for Pro_News; it would be a far bigger concern for DF as a whole, IMHO.

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
Dizfunkshunal
Platinum Supporter


Joined: Mar 23, 2006
Posts: 2079

PostPost subject: Re: 9.2.0.RC2
Posted: Thu Jan 10, 2008 5:02 pm
Reply with quote

I agree on the duplicate name check for the field, to make sure no 2 blocks can have the same name.

Support with out a fix is easy

Step 1: delete the block 2 times
Step 2 create blocks with different names

Personally, I dont understand why someone would put 2 of the same block on 1 website.

_________________
Diz Web Design Status: Open (Use of resources requires registration.)

Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Multiple Setups
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: Re: 9.2.0.RC2
Posted: Thu Jan 10, 2008 5:30 pm
Reply with quote

But *if* someone does it, it will be very hard for us to help them, when everything looks correct, because we are looking at a new version, but site is running on an old version which can only be seen in phpMyAdmin or similar.

If the blocks are identical then fine, but if they have small differences - access or module visibility or left/right assignment - then they should display separately. Display is now alphabetical, so admin can't miss that they have duplicates. Remember that no 2 blocks are ever truly the same - each will have a unique bid and be stored in separate records in cms_blocks...

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexAnnouncements All times are GMT
Go to page Previous  1, 2, 3, 4  Next
Page 3 of 4


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Dedicated Server & Bandwidth Sponsored by DedicatedNOW
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 1.3382 seconds with 16 DB Queries in 0.109 seconds
Memory Usage: 3.21 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy