Advertisement:

Author Topic: Manual.english.php Errors in Log  (Read 1888 times)

Offline brooksthepro

  • Semi-Newbie
  • *
  • Posts: 38
Manual.english.php Errors in Log
« on: February 11, 2011, 11:33:25 AM »
When someone views the Help section, I get a bunch of these messages in the Error Log:

8: Undefined index: manual_index_forum_admins_note_presentation
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 236

I dont see any problems viewing the help section. I just get these error messages someone views it.

I have edited some of the text in that section.  Would this be causing the issue?

Attached is my Manual.english.php file.  Any help would be great.

Offline Ashley S

  • Sr. Member
  • ****
  • Posts: 985
  • Gender: Male
    • @AsHWM on Twitter
    • AdminMB
Re: Manual.english.php Errors in Log
« Reply #1 on: February 11, 2011, 11:36:01 AM »
It's just a theme error. It wont do anything to your forum.
You will get these errors with all themes. If you get any more report them here.

Offline Suki

  • Carthago delenda est
  • Lead Developer
  • SMF Super Hero
  • *
  • Posts: 16,042
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Manual.english.php Errors in Log
« Reply #2 on: February 11, 2011, 11:37:48 AM »
most likely the error isn't in the file you attached,  can you please turn off the eval from your forum admin, clean your error log,  browse your forum, go back to the error log and post the new errors.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Making tough decisions, so you don't have to.

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,431
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Manual.english.php Errors in Log
« Reply #3 on: February 11, 2011, 11:39:15 AM »
The problem is you removed a text string ($txt['manual_index_forum_admins_note_presentation']) from Manual.english.php so it's not defined anywhere, but it's still being called from the template.

You really shouldn't remove text strings without removing the CALL to them. It's not as simple as one line.

So open Manual.english.php and add
Code: [Select]
$txt['manual_index_forum_admins_note_presentation'] = '';
Clear your error log, go to the help section and you should not have any errors related to this in the log anymore.

Best Regards,
Labradoodle-360

Offline brooksthepro

  • Semi-Newbie
  • *
  • Posts: 38
Re: Manual.english.php Errors in Log
« Reply #4 on: February 11, 2011, 11:43:29 AM »
There are a Bunch of them:  They all happen at the same time when someone views the Help section:

Am I correct in assuming that the theme for the help section is looking for the text in the manual.english.php file that I deleted and it is erroring out on me?  How would I stop this?


I just went to the Help section and got these errors for my user:

8: Undefined index: manual_index_forum_admins_note_presentation
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 236

8: Undefined index: manual_index_register_desc_part2
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 225

8: Undefined index: manual_index_register_desc_link_registering
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 225

8: Undefined index: manual_index_register_desc_part1
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 225

8: Undefined index: manual_index_login_desc_part2
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 224

8: Undefined index: manual_index_login_desc_link_loginout
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 224

8: Undefined index: manual_index_login_desc_part1
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 224

8: Undefined index: manual_index_calendar_desc_part2
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 223

8: Undefined index: manual_index_calendar_desc_link_posting_calendar
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 223

8: Undefined index: manual_index_calendar_desc_part1
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 223

8: Undefined index: manual_index_search_desc_part2
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 222

8: Undefined index: manual_index_search_desc_link_searching
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 222

8: Undefined index: manual_index_search_desc_part1
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 222

8: Undefined index: manual_index_help_desc
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 221

8: Undefined index: manual_index_home_desc_part2
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 220

8: Undefined index: manual_index_home_desc_link_board
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 220

8: Undefined index: manual_index_home_desc_part1
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 220

8: Undefined index: manual_index_suppossing_guest
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 218

8: Undefined index: manual_index_guest_permit_read_part2
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 210

8: Undefined index: manual_index_guest_permit_read_link_registering
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 210

8: Undefined index: manual_index_guest_permit_read_part1
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 210

8: Undefined index: manual_index_you_have_arrived_part3
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 209

8: Undefined index: manual_index_you_have_arrived_link_site0_board
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 209

8: Undefined index: manual_index_you_have_arrived_part2
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 209

8: Undefined index: manual_index_you_have_arrived_link_site0
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 209

8: Undefined index: manual_index_you_have_arrived_part1
File: /home2/prucalin/public_html/Prucalforum/Themes/default/languages/Manual.english.php (manual_intro sub template - eval?)
Line: 209



Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,431
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Manual.english.php Errors in Log
« Reply #5 on: February 11, 2011, 11:45:13 AM »
Please attach Help.template.php. (./Themes/default)

Offline brooksthepro

  • Semi-Newbie
  • *
  • Posts: 38
Re: Manual.english.php Errors in Log
« Reply #6 on: February 11, 2011, 11:48:39 AM »
Here you go. thanks again labradoodle-360!

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,431
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Manual.english.php Errors in Log
« Reply #7 on: February 11, 2011, 11:59:13 AM »
Due to some stupid high stress messages, I cannot download the file right now...I'll try back shortly...sorry for the delay.

Offline brooksthepro

  • Semi-Newbie
  • *
  • Posts: 38
Re: Manual.english.php Errors in Log
« Reply #8 on: February 11, 2011, 12:05:59 PM »
No worries.

should i just delete the presentation string here?


Code: [Select]
</ul>
<p>', $txt['manual_index_forum_admins_note_presentation'], '</p>
<h2 id="board">', $txt['manual_index_sec_board_index'], '</h2>
<p>', $txt['manual_index_sec_board_index_def'], '</p>
<div style="border: solid 1px;">
<div style="padding: 2px 30px;">
<table width="100%" cellpadding="3" cellspacing="0">
<tr>

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,431
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Manual.english.php Errors in Log
« Reply #9 on: February 11, 2011, 12:08:15 PM »
Well, I assume you don't want that text showing anyways, right? Because you removed the actual string...if you don't want it, then remove
Code: [Select]
<p>', $txt['manual_index_forum_admins_note_presentation'], '</p>Although by the looks of the log, we'll have to do some more cleaning in Help.template.php.

Offline brooksthepro

  • Semi-Newbie
  • *
  • Posts: 38
Re: Manual.english.php Errors in Log
« Reply #10 on: February 11, 2011, 12:12:49 PM »
Yes i will have to go through and do it for each one.  I will let you know if it fixes the problem.  Thanks again.

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,431
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Manual.english.php Errors in Log
« Reply #11 on: February 11, 2011, 12:16:20 PM »
Still can't download the file, or I'd do it for you. Should be as simple as using a good text editor to go through and remove each instance of the $txt strings that you removed from Manual.english.php.

Offline brooksthepro

  • Semi-Newbie
  • *
  • Posts: 38
Re: Manual.english.php Errors in Log
« Reply #12 on: February 11, 2011, 01:35:44 PM »
I did it for all of them now i get this syntax error:

Code: [Select]


Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home2/prucalin/public_html/Prucalforum/Themes/default/Help.template.php on line 2199
2190: <ol>
2191: <li><a href="', $scripturl, '?action=help;page=registering#how-to">', '</a></li>
2192: </ol>
2193: <h2 id="how-to">', '</h2>
2194: <ul>
2195: <li>', '<a href="', $scripturl, '?action=help;page=index#main">', '</a>'  '</li>
2196: </ul>
2197: <table width="400" cellspacing="0" cellpadding="3" class="tborder" align="center">
2198: <tr class="titlebg">
2199: <td>', $txt['manual_registering_warning'], '</td> ;
2200: </tr>
2201: <tr>
2202: <td class="windowbg" style="padding-top: 2ex; padding-bottom: 2ex;">', '<br />
2203: ', '<a href="', $scripturl, '?action=help;page=registering#screen" class="board">', '</a>', '</td>


Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,431
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Manual.english.php Errors in Log
« Reply #13 on: February 11, 2011, 01:38:13 PM »
Code: (This) [Select]
2191: <li><a href="', $scripturl, '?action=help;page=registering#how-to">', '</a></li>
Code: (Should Be) [Select]
2191: <li><a href="', $scripturl, '?action=help;page=registering#how-to"></a></li>Or even completely removed if you're not putting text in it.

Offline Masterd

  • SMF Hero
  • ******
  • Posts: 3,926
  • Gender: Male
Re: Manual.english.php Errors in Log
« Reply #14 on: February 11, 2011, 01:47:26 PM »
most likely the error isn't in the file you attached,  can you please turn off the eval from your forum admin, clean your error log,  browse your forum, go back to the error log and post the new errors.

This is SMF 1.x support. :P

Install this mod and enable it.

http://custom.simplemachines.org/mods/index.php?mod=2054

Then empty your error log and take a look at it once again.   


Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,431
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Manual.english.php Errors in Log
« Reply #15 on: February 11, 2011, 01:48:15 PM »
There's no need to at this point since it's simply a syntax issue of forgetting to put another ', or in this case, even having ' and ,.
most likely the error isn't in the file you attached,  can you please turn off the eval from your forum admin, clean your error log,  browse your forum, go back to the error log and post the new errors.

This is SMF 1.x support. :P

Install this mod and enable it.

http://custom.simplemachines.org/mods/index.php?mod=2054

Then empty your error log and take a look at it once again.   



Offline brooksthepro

  • Semi-Newbie
  • *
  • Posts: 38
Re: Manual.english.php Errors in Log
« Reply #16 on: February 11, 2011, 01:54:45 PM »
I did what you said and still get the error.

it says the error is on line 2199

Offline Masterd

  • SMF Hero
  • ******
  • Posts: 3,926
  • Gender: Male
Re: Manual.english.php Errors in Log
« Reply #17 on: February 11, 2011, 01:56:10 PM »
Then do what I said.

Offline brooksthepro

  • Semi-Newbie
  • *
  • Posts: 38
Re: Manual.english.php Errors in Log
« Reply #18 on: February 11, 2011, 01:59:24 PM »
Ok i completely deleted the line and the syntax error went away. but i still have a couple more errors in the log. Hold up, im going to continue to fiddle with it.

Offline brooksthepro

  • Semi-Newbie
  • *
  • Posts: 38
Re: Manual.english.php Errors in Log
« Reply #19 on: February 11, 2011, 02:02:39 PM »
OK i think i got it all sorted out now guys. I really appreciate your help. You have no idea!