|
|
| |
Forums ⇒ DragonflyCMS ⇒ Problems AFTER Install/Upgrade ⇒ Admin block is missing
Admin block is missingIssues that happen after DragonflyCMS upgrade/install. DO NOT post module installation issues here!
Go to page 1, 2 Next
|
View previous topic :: View next topic |
| Author |
Message |
Eestlane I18N / L10N Lead Dev


Offline Joined: Apr 06, 2005 Posts: 1404 Location: Estonia
|
Posted: 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 |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
Posted: 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 |
|
 |
Eestlane I18N / L10N Lead Dev


Offline Joined: Apr 06, 2005 Posts: 1404 Location: Estonia
|
Posted: 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 |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
Posted: 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 |
|
 |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3878 Location: Melbourne, AU
|
Posted: 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
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 |
|
 |
Eestlane I18N / L10N Lead Dev


Offline Joined: Apr 06, 2005 Posts: 1404 Location: Estonia
|
Posted: 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 |
|
 |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3878 Location: Melbourne, AU
|
Posted: 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 |
|
 |
Eestlane I18N / L10N Lead Dev


Offline Joined: Apr 06, 2005 Posts: 1404 Location: Estonia
|
Posted: 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 |
|
 |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3878 Location: Melbourne, AU
|
Posted: 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 |
|
 |
Eestlane I18N / L10N Lead Dev


Offline Joined: Apr 06, 2005 Posts: 1404 Location: Estonia
|
Posted: 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 |
|
 |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3878 Location: Melbourne, AU
|
Posted: 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 |
|
 |
Eestlane I18N / L10N Lead Dev


Offline Joined: Apr 06, 2005 Posts: 1404 Location: Estonia
|
Posted: 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 |
|
 |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3878 Location: Melbourne, AU
|
Posted: 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 |
|
 |
Eestlane I18N / L10N Lead Dev


Offline Joined: Apr 06, 2005 Posts: 1404 Location: Estonia
|
Posted: 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 |
|
 |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3878 Location: Melbourne, AU
|
Posted: 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 |
|
 |
|
|
All times are GMTGo to page 1, 2 Next
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
|
| |
 |
 Welcome Anonymous
|
|
|
|