News:

Wondering if this will always be free?  See why free is better.

Main Menu

Errors in error log?

Started by pittu, April 17, 2010, 06:56:59 PM

Previous topic - Next topic

pittu

There are some 500 errors like this: Any idea?

There is no Line 616 in the View > Source > html code.



Quote
Today at 05:24:51 PM
81e907d8e1cbd73d29fd019a794bf9a0
Type of error: Undefined 
http://www.mysite.com/forum/index.php?action=post;board=2.08: Undefined index: maxAttachPerPostFile: /home/USER/public_html/forum/Themes/classic/Post.template.php (main sub template - eval?)
Line: 616 

==================
Today at 05:24:53 PM
81e907d8e1cbd73d29fd019a794bf9a0
Type of error: Undefined 
http://www.mysite.com/forum/index.php?action=post;board=2.08: Undefined index: max_sizeFile: /home/USER/public_html/forum/Themes/classic/Post.template.php (main sub template - eval?)
Line: 616

Ashley S

Go to your Hosting files.

Go to the Themes folder and go in to - Classic.

Search for Post.template.php and post it here.

pittu

You mean all the code in all the textareas of the template? post here?

pittu

610 - 618 lines:



      // Show some useful information such as allowed extensions, maximum size and amount of attachments allowed.
      if (!empty($modSettings['attachmentCheckExtensions']))
         echo '
                           ', $txt['allowed_types'], ': ', $context['allowed_extensions'], '<br />';
      echo '
                           ', $txt['max_size'], ': ', $modSettings['attachmentSizeLimit'], ' ' . $txt['kilobyte'], !empty($modSettings['attachmentNumPerPostLimit']) ? ', ' . $txt['maxAttachPerPost'] . ': ' . $modSettings['attachmentNumPerPostLimit'] : '', '
                        </td>
                     </tr>';
   }

pittu

Any help here? I don't konw why this error.

Kays

That code is for 1.x. It has changed for for 2.0. Try removing Post.template.php from that theme as it's not included in the upgrade package any more.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

pittu

Thank you Kay! That worked. :)

Advertisement: