[Phpmyadmin-devel] Theme errors

Hi all I really fail to see cause of following error, but maybe I'm just missing something. On demo server, lot (maybe all) of themes throw out errors: Call to a member function get() on a non-object in themes/aqua/css/theme_left.css.php on line 19#012 Call to a member function get() on a non-object in themes/aqua/css/theme_right.css.php on line 19#012 Call to a member function get() on a non-object in themes/aqua_brushed/css/theme_left.css.php on line 19#012 Call to a member function get() on a non-object in themes/aqua_brushed/css/theme_right.css.php on line 19#012 Call to a member function get() on a non-object in themes/arctic_ocean/css/theme_left.css.php on line 26#012 Call to a member function get() on a non-object in themes/arctic_ocean/css/theme_right.css.php on line 29#012 Call to a member function get() on a non-object in themes/clearview3/css/theme_right.css.php on line 19#012 Call to a member function get() on a non-object in themes/clearview3/css/theme_left.css.php on line 17#012 Do somebody have an idea how to fix it? -- Michal Čihař | http://cihar.com | http://blog.cihar.com

Michal Čihař wrote:
Hi all
I really fail to see cause of following error, but maybe I'm just missing something.
On demo server, lot (maybe all) of themes throw out errors:
Call to a member function get() on a non-object in themes/aqua/css/theme_left.css.php on line 19#012 Call to a member function get() on a non-object in themes/aqua/css/theme_right.css.php on line 19#012 Call to a member function get() on a non-object in themes/aqua_brushed/css/theme_left.css.php on line 19#012 Call to a member function get() on a non-object in themes/aqua_brushed/css/theme_right.css.php on line 19#012 Call to a member function get() on a non-object in themes/arctic_ocean/css/theme_left.css.php on line 26#012 Call to a member function get() on a non-object in themes/arctic_ocean/css/theme_right.css.php on line 29#012 Call to a member function get() on a non-object in themes/clearview3/css/theme_right.css.php on line 19#012 Call to a member function get() on a non-object in themes/clearview3/css/theme_left.css.php on line 17#012
Do somebody have an idea how to fix it?
I guess that the PMA_Config object is not loaded. In the original theme the line looks like: font-size: <?php echo (null !== $GLOBALS['PMA_Config']->get('fontsize') ? $GLOBALS['PMA_Config']->get('fontsize') : $_COOKIE['pma_fontsize']); ?>; My first guess would be that it throws the same error... but you could try it. -- Met vriendelijke groet / Regards, Herman van Rink Initfour websolutions

Hi Dne Fri, 05 Mar 2010 11:26:18 +0100 Herman van Rink <rink@initfour.nl> napsal(a):
In the original theme the line looks like: font-size: <?php echo (null !== $GLOBALS['PMA_Config']->get('fontsize') ? $GLOBALS['PMA_Config']->get('fontsize') : $_COOKIE['pma_fontsize']); ?>;
My first guess would be that it throws the same error... but you could try it.
But it does not, only external themes throw these errors. -- Michal Čihař | http://cihar.com | http://blog.cihar.com

Michal Čihař a écrit :
Hi
Dne Fri, 05 Mar 2010 11:26:18 +0100 Herman van Rink <rink@initfour.nl> napsal(a):
In the original theme the line looks like: font-size: <?php echo (null !== $GLOBALS['PMA_Config']->get('fontsize') ? $GLOBALS['PMA_Config']->get('fontsize') : $_COOKIE['pma_fontsize']); ?>;
My first guess would be that it throws the same error... but you could try it.
But it does not, only external themes throw these errors.
Errors are shown on-screen or in your log files? For which demo version? -- Marc Delisle http://infomarc.info

Hi Dne Fri, 05 Mar 2010 08:31:39 -0500 Marc Delisle <marc@infomarc.info> napsal(a):
Errors are shown on-screen or in your log files?
In log files.
For which demo version?
Okay, this question is the answer, thanks for kicking me :-). It works fine with trunk while fails in in older ones because of move config from session to globals... -- Michal Čihař | http://cihar.com | http://blog.cihar.com

Michal Čihař a écrit :
Hi
Dne Fri, 05 Mar 2010 08:31:39 -0500 Marc Delisle <marc@infomarc.info> napsal(a):
Errors are shown on-screen or in your log files?
In log files.
For which demo version?
Okay, this question is the answer, thanks for kicking me :-). It works fine with trunk while fails in in older ones because of move config from session to globals...
So most themes in trunk/themes would be ready for a release "compatible with 3.3"? I mean, the ones you updated 10 days ago? -- Marc Delisle http://infomarc.info

Marc Delisle a écrit :
Michal Čihař a écrit :
Hi
Dne Fri, 05 Mar 2010 08:31:39 -0500 Marc Delisle <marc@infomarc.info> napsal(a):
Errors are shown on-screen or in your log files? In log files.
For which demo version? Okay, this question is the answer, thanks for kicking me :-). It works fine with trunk while fails in in older ones because of move config from session to globals...
So most themes in trunk/themes would be ready for a release "compatible with 3.3"? I mean, the ones you updated 10 days ago?
Sorry, they would be ready for 3.4. -- Marc Delisle http://infomarc.info

Hi Dne Fri, 05 Mar 2010 12:37:03 -0500 Marc Delisle <marc@infomarc.info> napsal(a):
Sorry, they would be ready for 3.4.
Yes, exactly. -- Michal Čihař | http://cihar.com | http://blog.cihar.com

Michal Čihař a écrit :
Hi
Dne Fri, 05 Mar 2010 12:37:03 -0500 Marc Delisle <marc@infomarc.info> napsal(a):
Sorry, they would be ready for 3.4.
Yes, exactly.
Michael Keck has implemented in the Arctic Ocean theme a solution that works for either version. -- Marc Delisle http://infomarc.info
participants (3)
-
Herman van Rink
-
Marc Delisle
-
Michal Čihař