Board Settings error?

Temporary forum to obtain support while phpBB.com is offline.
Please use the support forum on phpBB.com
Forum rules
Temporary forum to obtain support while phpBB.com is offline.
Please use the support forum on phpBB.com
Locked
Jack-Sparrow
Registered User
Posts: 2
Joined: Fri Feb 06, 2009 9:49 pm

Board Settings error?

Post by Jack-Sparrow » Fri Feb 06, 2009 10:01 pm

Hi,

I use version3.0.2 and as far as I know the forum is working fine and I could open many links in ACP except when clicked on Board setting in ACP, it spinned for a long time and I got this error:

Fatal error: Maximum execution time of 30 seconds exceeded in /home/goodpa5/public_html/forumgpc/includes/utf/utf_tools.php on line 235

Thanks for your help.

Jack-Sparrow
Registered User
Posts: 2
Joined: Fri Feb 06, 2009 9:49 pm

Re: Board Settings error?

Post by Jack-Sparrow » Tue Feb 10, 2009 5:30 am

Some helps please anyone.

User avatar
COD3M4ST3R-X
Registered User
Posts: 228
Joined: Wed Nov 05, 2008 7:52 am
Location: Lahore,Pakistan
Contact:

Re: Board Settings error?

Post by COD3M4ST3R-X » Tue Feb 10, 2009 5:48 am

Open:includes/functions_content.php
Find:

Code: Select all

// Due to specialchars, we may not be able to store the string...
   if (utf8_strlen($string) > $max_store_length)
   {
      // let's split again, we do not want half-baked strings where entities are split
      $_chars = utf8_str_split(htmlspecialchars_decode($string));
      $chars = array_map('utf8_htmlspecialchars', $_chars);

      do
      {
         array_pop($chars);
         $string = implode('', $chars);
      }
      while (utf8_strlen($string) > $max_store_length || !sizeof($chars));
   }
Replace With:

Code: Select all

// Due to specialchars, we may not be able to store the string...
//   if (utf8_strlen($string) > $max_store_length)
//   {
//      // let's split again, we do not want half-baked strings where entities are split
//      $_chars = utf8_str_split(htmlspecialchars_decode($string));
//      $chars = array_map('utf8_htmlspecialchars', $_chars);
//
//      do
//      {
//         array_pop($chars);
//         $string = implode('', $chars);
//      }
//      while (utf8_strlen($string) > $max_store_length || !sizeof($chars));
//   } 
I have not tried this myself but it had worked for others.
Kindly Backup your files before doing this and Clear your Cache.
Upgrade to 3.0.4 Recommended!.
Image
Long Live PhpBB!

Locked