Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: muratbora on February 20, 2019, 07:39:33 AM

Title: Error Log Records for Each Visitors / how to solve what is reason
Post by: muratbora on February 20, 2019, 07:39:33 AM
Under Administration > error log
It is recording logs for each visitors.

Example log ( always repeating for each visitors )
https://www.turizmtasimacilik.com/forum/index.php?
8: Undefined offset: 0
Dosya: /home/mrtsoftw/www.turizmtasimacilik.com/forum/Themes/vVide/BoardIndex.template.php (main sub template - eval?)
Satır: 191

Title: Re: Error Log Records for Each Visitors / how to solve what is reason
Post by: drewactual on February 20, 2019, 08:31:30 AM
you've got an issue in your boardindex.template. 

you can dig into the file and figure out what's not right, which i would recommend.  in the mean time you can turn 'template evaluation' OFF in your admin panel to suppress the error message.   
Title: Re: Error Log Records for Each Visitors / how to solve what is reason
Post by: Illori on February 20, 2019, 08:37:48 AM
Quote from: drewactual on February 20, 2019, 08:31:30 AM
in the mean time you can turn 'template evaluation' OFF in your admin panel to suppress the error message.   

turning off template evaluation does NOT suppress the error message. it would tell you WHERE the error actually is, so it can be fixed.
Title: Re: Error Log Records for Each Visitors / how to solve what is reason
Post by: Arantor on February 20, 2019, 08:41:34 AM
Waste of time, this is the second topic this person has raised and they don't want to do what's necessary to help us help them, namely provide the files needed to investigate the problem.
Title: Re: Error Log Records for Each Visitors / how to solve what is reason
Post by: muratbora on February 20, 2019, 12:50:10 PM
I am not expert about managing forum.
What should I do inside BoardIndex.template.php file?
I have already urned off template evaluation, but not solved....
Title: Re: Error Log Records for Each Visitors / how to solve what is reason
Post by: Arantor on February 20, 2019, 01:14:49 PM
You need to upload the file here so we can see what is wrong and tell you what to change.
Title: Re: Error Log Records for Each Visitors / how to solve what is reason
Post by: muratbora on February 21, 2019, 03:07:20 AM
I have attached BoardIndex.template.php file.
Note: I did not make a change on file.
Title: Re: Error Log Records for Each Visitors / how to solve what is reason
Post by: Shambles on February 21, 2019, 07:02:40 AM
Quote from: muratbora
I have already urned off template evaluation, but not solved....

Is a different file now showing in the error message?
Title: Re: Error Log Records for Each Visitors / how to solve what is reason
Post by: muratbora on February 21, 2019, 08:46:48 AM
Same file from the beginning
Title: Re: Error Log Records for Each Visitors / how to solve what is reason
Post by: Kindred on February 21, 2019, 08:54:25 AM
See... that doesn't really make alot of sense.

Are you sure that Eval is turned OFF?
Title: Re: Error Log Records for Each Visitors / how to solve what is reason
Post by: Arantor on February 21, 2019, 09:32:09 AM
See also https://www.simplemachines.org/community/index.php?topic=565123.0
Title: Re: Error Log Records for Each Visitors / how to solve what is reason
Post by: muratbora on February 21, 2019, 09:45:38 AM
Yes I am sure Eval is turned OFF...
See secreenshoot pls.
Title: Re: Error Log Records for Each Visitors / how to solve what is reason
Post by: GigaWatt on February 23, 2019, 12:20:40 AM
You could've at least set the admin menu to English when doing the screenshot ::).
Title: Re: Error Log Records for Each Visitors / how to solve what is reason
Post by: Antes on February 23, 2019, 02:49:21 AM
This is a mirror topic, we already fixed the issue in local board.
Title: Re: Error Log Records for Each Visitors / how to solve what is reason
Post by: muratbora on February 23, 2019, 04:43:36 AM
Antes@ solved problem. before he customize codes in BoardIndex.template.php  was appearance;

188 if (!empty($board['last_post']['id'])){
189 loadMemberData($board['last_post']['member']['id']);
190 loadMemberContext($board['last_post']['member']['id']);
191 if($memberContext[$board['last_post']['member']['id']]['avatar']['image'])
192 echo'', $memberContext[$board['last_post']['member']['id']]['avatar']['image'],'';
193 else
194 echo'<img class="avatar" src="'.$settings['images_url'].'/theme/default_avatar.png" alt="*" />';
195 echo '
196 <p> ', $txt['by'], ' ', $board['last_post']['member']['link'] , '<br />
197 <strong>', $txt['last_post'], '</strong> ', $board['last_post']['link'], '<br />
198 ', $txt['on'], ' ', $board['last_post']['time'],'
199 </p>';
200 }
201 echo '

After his customize ;

189 if (!empty($board['last_post']['id'])) {
190 loadMemberData($board['last_post']['member']['id']);
191 loadMemberContext($board['last_post']['member']['id']);
192 if (!empty($memberContext[$board['last_post']['member']['id']]['avatar']['image']))
193 echo $memberContext[$board['last_post']['member']['id']]['avatar']['image'];
194 else
195 echo'<img class="avatar" src="'.$settings['images_url'].'/theme/default_avatar.png" alt="*" />';
196 echo '
197 <p> ', $txt['by'], ' ', $board['last_post']['member']['link'] , '<br />
198 <strong>', $txt['last_post'], '</strong> ', $board['last_post']['link'], '<br />
199 ', $txt['on'], ' ', $board['last_post']['time'],'
200 </p>';
201 }
202 echo '