Posts: 7
Threads: 2
Joined: May 2013
2013-09-11, 23:20:43
(This post was last modified: 2013-09-11, 23:52:26 by tigre.)
1. Suddenly in page does not shown anything after </a> (when I look at view page source, </a> is last thing there.
http://www.malus.lv/new/index.php?id=pakalpojumi
<div class="section">
<?php get_component('sidebar'); ?>
<a href="http://www.malus.lv/new/zalaaptieka"><?php get_i18n_gallery('slideshow2'); ?></a>
<?php if (get_parent(0)=='pakalpojumi') get_component('left_pakalpojumi'); ?>
....
is there something wrong with <?php if (get_parent(0)=='pakalpojumi') get_component('left_pakalpojumi'); ?> code?
If I took out <?php if (get_parent(0)=='pakalpojumi') get_component('left_pakalpojumi'); ?> code, the page is read till next get_component script.
How to fix it so tha page reads get_component scripts?
and second -
in support there is message for upgrade.
GetSimple Version Upgrade needed to 3.2.3
Do I need to upgrade version? Where can I see the instruction, how to do that?
Posts: 6,267
Threads: 182
Joined: Sep 2011
Did you change the pages parent ?
You do not have to upgrade, click the download link directly under the message, there are instructions there.
Posts: 7
Threads: 2
Joined: May 2013
(2013-09-11, 23:48:59)shawn_a Wrote: Did you change the pages parent ?
no. I found that in every page, where in code was put
<?php get_component('example'); ?>
or
<?php if (get_parent(0)=='pakalpojumi') get_component('left_pakalpojumi'); ?>
or
<?php if (return_page_slug()=='galerijas') get_component('left_galerijas'); ?>
the page reads everything till the first get_component('fexample') in code.
You do not have to upgrade, click the download link directly under the message, there are instructions there.
Thanks
Posts: 6,267
Threads: 182
Joined: Sep 2011
If you did not write that code, then it is part of your theme, ask the theme creator in the proper thread.
Posts: 7
Threads: 2
Joined: May 2013
(2013-09-11, 23:57:39)shawn_a Wrote: If you did not write that code, then it is part of your theme, ask the theme creator in the proper thread.
I write that codes. Nothing was changed for monthes. But today suddenly every page where is ...get_component... code in, stops before this ...get_component...
Posts: 6,267
Threads: 182
Joined: Sep 2011
hmm, check health check.
turn on debugmode in gsconfig and check for php errors on your page.
Posts: 7
Threads: 2
Joined: May 2013
2013-09-12, 00:18:56
(This post was last modified: 2013-09-12, 00:30:51 by tigre.)
(2013-09-12, 00:06:06)shawn_a Wrote: hmm, check health check.
turn on debugmode in gsconfig and check for php errors on your page.
I turn on debugmode. How can I check for php errors? there is no file http://www.malus.lv/new/data/other/logs/errorlog.txt
...Forbidden
You don't have permission to access /new/data/other/logs/errorlog.txt on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request....
Posts: 3,491
Threads: 106
Joined: Mar 2010
Your site is displaying this:
Quote:Fatal error: SUHOSIN - Use of eval is forbidden by configuration in [...]/admin/inc/theme_functions.php(575) : eval()'d code on line 575
Maybe your host changed something?
Posts: 6,267
Threads: 182
Joined: Sep 2011
Looks like your host is blocking eval
Components use eval, no way around it currently, you can move them to php functions and call them in your templates but thats about it.
Posts: 7
Threads: 2
Joined: May 2013
2013-09-12, 21:00:37
(This post was last modified: 2013-09-12, 21:01:26 by tigre.)
(2013-09-12, 01:14:07)shawn_a Wrote: Looks like your host is blocking eval
Components use eval, no way around it currently, you can move them to php functions and call them in your templates but thats about it.
Thank you! We contacted hosting and now everything is working.
(2013-09-12, 00:31:01)Carlos Wrote: Your site is displaying this:
Quote:Fatal error: SUHOSIN - Use of eval is forbidden by configuration in [...]/admin/inc/theme_functions.php(575) : eval()'d code on line 575
Maybe your host changed something?
Thank you. You was right. Host changed something.