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ř 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.
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ř 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?
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ř 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 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.
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ř 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.