Support ⇒ Upgrades ⇒ [fixed] Upgrade 9.3.2 theme problem logged in user + admin ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexUpgrades

[fixed] Upgrade 9.3.2 theme problem logged in user + admin Reply to topic


Hi,
I just upgraded my site from 9.2.1 to 9.3.2.
Before upgrading I switched to maintenance mode and set the theme to default.
Installation went fine and I switched back to my theme (sovereignblue)
Nothing happened. Still the default theme was displayed.

Now here is what happens:
Sovereignblue is displayed when I log in as normal user.
Sovereignblue is displayed when I log in as administrator.
Default is displayed when I log in as administrator AND user. Logging off as user or admin brings my theme back.

I cleared cache and cockies. Nothing helped.
standard user and admin user are different. I created also a superuser with the same as my user but same issue when I am logged in as admin and as user at the same time.

Any idea?

Thanks

| Luxembourg Amateur Radio RL | RC Heli | My Site |

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/ 2.6.18 / 5.1.52 / 5.3.2 / 9.3.2.0


Additonal info:
The function that users can change the theme is disabled and in the users table no theme is specified either for the user in question. The admin is not opened as user.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/ 2.6.18 / 5.1.52 / 5.3.2 / 9.3.2.0


Try the following patch.

Index: display.php =================================================================== RCS file: /cvs/html/includes/functions/display.php,v retrieving revision 9.51.2.3 diff -u -r9.51.2.3 display.php --- display.php 9 Jul 2010 08:15:36 -0000 9.51.2.3 +++ display.php 3 Dec 2011 23:35:35 -0000 @@ -30,7 +30,7 @@ $theme = $CPG_SESS['prevtheme'] = $theme[1]; } else if (!empty($CPG_SESS['prevtheme'])) { $theme = $CPG_SESS['prevtheme']; - } else if (is_user()) { + } else if (is_user() && !empty($userinfo['theme'])) { $theme = $userinfo['theme']; } }

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

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


Thanks NanoCaiordo. It works fine now. You solved it.

I'm glad you met php exactly 8 years ago Very Happy Did you celebrate btw?
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/ 2.6.18 / 5.1.52 / 5.3.2 / 9.3.2.0


First of all I need to thank you for such detailed report!

The 3rd was last night for me, and the way I did celebrate was to spend all day out till an important v10 issue came up ... I went to bed really early after having a couple of drinks of Ginseng home made spirit Laughing

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

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


Hello,

we seem to experience the same theme issues. I tried the above step.

Currently the display.php contains:

$theme = $CPG_SESS['prevtheme'] = $theme[1]; } else if (!empty($CPG_SESS['prevtheme'])) { $theme = $CPG_SESS['prevtheme']; } else if (is_user()) { $theme = $userinfo['theme']; } }

I tried replacing that part with:

$theme = $CPG_SESS['prevtheme'] = $theme[1]; } else if (!empty($CPG_SESS['prevtheme'])) { $theme = $CPG_SESS['prevtheme']; - } else if (is_user()) { + } else if (is_user() && !empty($userinfo['theme'])) { $theme = $userinfo['theme']; } }

When I got to our website I get the following error:

Parse error: syntax error, unexpected '}' in /home/ButtonBash/domains/vtlgl.ycn-hosting.com/public_html/includes/functions/display.php on line 33

The code on line 33 in the display.php is:
- } else if (is_user()) {

Could you help me out please?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
MySQL: 5.0.51a / PHP: 5.3.3 / CMS: 9.2.1


I've done it like this now:
$theme = $CPG_SESS['prevtheme'] = $theme[1];
} else if (!empty($CPG_SESS['prevtheme'])) {
$theme = $CPG_SESS['prevtheme'];
} else if (is_user() && !empty($userinfo['theme'])) {
$theme = $userinfo['theme'];
}
}

Is that correct? At least i dont get an error message hehe

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
MySQL: 5.0.51a / PHP: 5.3.3 / CMS: 9.2.1


Yes it is correct, the plus and minus signs are there so you know what to remove and what to add.

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

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS

All times are UTC


Jump to: