Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ DragonflyCMS ⇒ Problems AFTER Install/Upgrade ⇒ Admin block is missing


Admin block is missing
Issues that happen after DragonflyCMS upgrade/install.
DO NOT post module installation issues here!

Go to page 1, 2  Next
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ⇒  Problems AFTER Install/Upgrade

View previous topic :: View next topic  
Author Message
Eestlane
I18N / L10N Lead Dev
I18N / L10N Lead Dev

Offline Offline
Joined: Apr 06, 2005
Posts: 1404
Location: Estonia
PostPosted: Wed Feb 13, 2008 11:06 pm
Post subject: Admin block is missing

I didn't dig into it before, but now I found I've got more serious problem.

The system block, named _ADMIN is missing, it's not showing up in admin->blocks.

I don't have any other blocks with that name, so that is not the problem.

I think I deleted it myself, because I had a block with same name, which was actually the admin block(I think), but converted to normal, custom block during the upgrade for some reason. So I deleted it by thinking I have the real block too, but it comes out I don't.

Weird.


Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.63/5.0.67/5.2.8/9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Wed Feb 13, 2008 11:29 pm
Post subject: Re: Admin block is missing

It's not missing - the waiting content section is still there.

The other section with admin links is redundant and has been eliminated. It is inherently catered for by the css menu if you use that, otherwise simply create one using blocks admin if you really must have it.


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
Eestlane
I18N / L10N Lead Dev
I18N / L10N Lead Dev

Offline Offline
Joined: Apr 06, 2005
Posts: 1404
Location: Estonia
PostPosted: Wed Feb 13, 2008 11:39 pm
Post subject: Re: Admin block is missing

I can't see a waiting content one in the list aswell.


Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.63/5.0.67/5.2.8/9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Thu Feb 14, 2008 12:10 am
Post subject: Re: Admin block is missing

Actually, I thought we had eliminated that useless links section - it's still there.

Not sure what you've done to your site, but they both exist.


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Thu Feb 14, 2008 8:07 am
Post subject: Re: Admin block is missing

Topic title wrote:
Admin block is missing

Eestlane wrote:
I think I deleted it myself, because I had a block with same name, which was actually the admin block(I think), but converted to normal, custom block during the upgrade for some reason. So I deleted it by thinking I have the real block too, but it comes out I don't.

You say its missing but you are also confirm that you delete it Confused

The conversion was part of the upgrade and worked correctly.

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

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
Eestlane
I18N / L10N Lead Dev
I18N / L10N Lead Dev

Offline Offline
Joined: Apr 06, 2005
Posts: 1404
Location: Estonia
PostPosted: Thu Feb 14, 2008 9:25 am
Post subject: Re: Admin block is missing

Sorry for the confusing explanation, I try again.

It seems

I checked my database backups.

Before upgrade:
Code::
INSERT INTO cms_blocks  VALUES ('3', 'admin', 'Admin', 'test', '', 'l', '1', '1', '0', '0', '', '', '2', '7');

After upgrade:
Code::
INSERT INTO cms_blocks  VALUES ('3', 'custom', 'Admin', 'test', '', 'l', '1', '0', '0', '0', '', '', '2', '7');

So, for some weird reason during the upgrade, my admin block was converted to nonsystem, custom block.
Ofcourse I could fix it now adding it via phpMyAdmin back, but it's weird that upgrade did that, isn't it?

It seems the upgrade changed 'admin' bkey to 'custom'.

So Dragonfly does upgrade Admin block from SYSTEM to CUSTOM?
Interesting, but in my localhost test site, Admin block remained SYSTEM block.


Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.63/5.0.67/5.2.8/9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Thu Feb 14, 2008 9:32 am
Post subject: Re: Admin block is missing

What version were you upgrading from.

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

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
Eestlane
I18N / L10N Lead Dev
I18N / L10N Lead Dev

Offline Offline
Joined: Apr 06, 2005
Posts: 1404
Location: Estonia
PostPosted: Thu Feb 14, 2008 9:35 am
Post subject: Re: Admin block is missing

Database backup shows
Code::
INSERT INTO cms_config_custom  VALUES ('global', 'Version_Num', '9.1.2.1');
And I think it was 9.1.2.1.


In df91.inc upgrade file I found:
For <9.1.2.8
PHP:
$installer->add_query('UPDATE', 'blocks', "bkey='custom' WHERE content!='' AND url='' AND blockfile=''");
And for 9.1.2.81:
PHP:
$installer->add_query('UPDATE', 'blocks', "bkey='admin' WHERE bid=".$row[0]);
(So that might be a problem? )

Ahaa, the problem is that my admin block was named
'Admin' not '_ADMIN' nor 'Administration'


Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.63/5.0.67/5.2.8/9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Thu Feb 14, 2008 9:46 am
Post subject: Re: Admin block is missing

9.1.2.8 had this issue, and 9.1.2.81 will repair it.

In fact admin blocks was set to "custom" but then it will search the block name and set bkey as "admin".

Since you have renamed the admin block from the default _ADMIN or Administration (old nuke and cpg 8.x had that) it was not able to found it.

Searching by block id was not reliable since it would easily fail for many old sites so i felt like using the block name would create problems very few users.

Manually update bkey to "admin".

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

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
Eestlane
I18N / L10N Lead Dev
I18N / L10N Lead Dev

Offline Offline
Joined: Apr 06, 2005
Posts: 1404
Location: Estonia
PostPosted: Thu Feb 14, 2008 9:49 am
Post subject: Re: Admin block is missing

OK.
However, in 9.1.2.1 there was already bkey, so upgrade script could search by bkey.


Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.63/5.0.67/5.2.8/9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Thu Feb 14, 2008 9:50 am
Post subject: Re: Admin block is missing

yep, but bkey was changed by 9.1.2.8 to "custom"

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

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
Eestlane
I18N / L10N Lead Dev
I18N / L10N Lead Dev

Offline Offline
Joined: Apr 06, 2005
Posts: 1404
Location: Estonia
PostPosted: Thu Feb 14, 2008 9:52 am
Post subject: Re: Admin block is missing

What about giving an exeption:

PHP:
$installer->add_query('UPDATE', 'blocks', "bkey='custom' WHERE content!='' AND url='' AND blockfile='' AND bkey!='admin'");


Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.63/5.0.67/5.2.8/9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Thu Feb 14, 2008 9:54 am
Post subject: Re: Admin block is missing

At which point of the upgrade.

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

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
Eestlane
I18N / L10N Lead Dev
I18N / L10N Lead Dev

Offline Offline
Joined: Apr 06, 2005
Posts: 1404
Location: Estonia
PostPosted: Thu Feb 14, 2008 9:54 am
Post subject: Re: Admin block is missing

if (version_compare($version, '9.1.2.8', '<'))


Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.63/5.0.67/5.2.8/9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Thu Feb 14, 2008 9:57 am
Post subject: Re: Admin block is missing

Quote::
9.1.2.8 had this issue, and 9.1.2.81 will repair it.

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

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ⇒  Problems AFTER Install/Upgrade
Page 1 of 2
All times are GMT
Go to page 1, 2  Next



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


 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

Gehiago irakurri . . .

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
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

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
Interactive software released under GNU GPL, Code Credits, Privacy Policy