Advertisement:

Author Topic: Error Log Records for Each Visitors / how to solve what is reason  (Read 796 times)

Offline muratbora

  • Semi-Newbie
  • *
  • Posts: 20
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? [nofollow]
8: Undefined offset: 0
Dosya: /home/mrtsoftw/www.turizmtasimacilik.com/forum/Themes/vVide/BoardIndex.template.php (main sub template - eval?)
Satır: 191


Offline drewactual

  • Full Member
  • ***
  • Posts: 536
    • College Football Fan Site CFB51
Re: Error Log Records for Each Visitors / how to solve what is reason
« Reply #1 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.   
https://www.cfb51.com is a College Football Fan Site, Store, and Publisher, launched in July of 2017

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 50,414
Re: Error Log Records for Each Visitors / how to solve what is reason
« Reply #2 on: February 20, 2019, 08:37:48 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.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 70,549
    • StoryBB/StoryBB on GitHub
Re: Error Log Records for Each Visitors / how to solve what is reason
« Reply #3 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.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline muratbora

  • Semi-Newbie
  • *
  • Posts: 20
Re: Error Log Records for Each Visitors / how to solve what is reason
« Reply #4 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....

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 70,549
    • StoryBB/StoryBB on GitHub
Re: Error Log Records for Each Visitors / how to solve what is reason
« Reply #5 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.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline muratbora

  • Semi-Newbie
  • *
  • Posts: 20
Re: Error Log Records for Each Visitors / how to solve what is reason
« Reply #6 on: February 21, 2019, 03:07:20 AM »
I have attached BoardIndex.template.php file.
Note: I did not make a change on file.

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,074
  • Gender: Male
    • i30 Owners Club
Re: Error Log Records for Each Visitors / how to solve what is reason
« Reply #7 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?

Offline muratbora

  • Semi-Newbie
  • *
  • Posts: 20
Re: Error Log Records for Each Visitors / how to solve what is reason
« Reply #8 on: February 21, 2019, 08:46:48 AM »
Same file from the beginning

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 57,808
  • Gender: Male
    • Kindred-999 on GitHub
Re: Error Log Records for Each Visitors / how to solve what is reason
« Reply #9 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?
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 70,549
    • StoryBB/StoryBB on GitHub
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline muratbora

  • Semi-Newbie
  • *
  • Posts: 20
Re: Error Log Records for Each Visitors / how to solve what is reason
« Reply #11 on: February 21, 2019, 09:45:38 AM »
Yes I am sure Eval is turned OFF...
See secreenshoot pls.

Online GigaWatt

  • The Smiley Guy
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,686
  • Gender: Male
    • Macedonian electronics forum
Re: Error Log Records for Each Visitors / how to solve what is reason
« Reply #12 on: February 23, 2019, 12:20:40 AM »
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?"..."

Offline Antes

  • Evil Black Cat
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,857
  • Gender: Male
  • Black cat rulz!
    • Antes on GitHub
    • merta on LinkedIn
    • @XinYenFon on Twitter
    • Patreon
Re: Error Log Records for Each Visitors / how to solve what is reason
« Reply #13 on: February 23, 2019, 02:49:21 AM »
This is a mirror topic, we already fixed the issue in local board.
You can support me directly via Patreon

In Catnip We Trust.
The solution is Catnip!
Vote for Catnip!

Current Project(s): [ WoWSnips ] # [ Lunarfall ] # [ RDD (HTML5) ] # [ ResponsiveCurve_Extras(SoonTM) ]
Past Project(s): [ ezPortal ]

Offline muratbora

  • Semi-Newbie
  • *
  • Posts: 20
Re: Error Log Records for Each Visitors / how to solve what is reason
« Reply #14 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 '