Error Log Records for Each Visitors / how to solve what is reason

Started by muratbora, February 20, 2019, 07:39:33 AM

Previous topic - Next topic

muratbora

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


drewactual

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.   

Illori

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.

Arantor

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.

muratbora

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

Arantor

You need to upload the file here so we can see what is wrong and tell you what to change.

muratbora

I have attached BoardIndex.template.php file.
Note: I did not make a change on file.

Shambles

Quote from: muratbora
I have already urned off template evaluation, but not solved....

Is a different file now showing in the error message?


Kindred

See... that doesn't really make alot of sense.

Are you sure that Eval is turned OFF?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."


muratbora


GigaWatt

You could've at least set the admin menu to English when doing the screenshot ::).
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Antes

This is a mirror topic, we already fixed the issue in local board.

muratbora

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 '

Advertisement: