Jump to content


[Fix] Warning: wordwrap() has been disabled for security reasons...


  • You cannot reply to this topic
No replies to this topic

#1 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 04 May 2006 - 09:59 AM

This is a rare error but at least one user has had this error with the MKPortal blog module...

Warning: wordwrap() has been disabled for security reasons in /usr/export/www/hosting/..../mkportal/modules/blog/menudx.php on line 75

Warning: wordwrap() has been disabled for security reasons in /usr/export/www/hosting/..../mkportal/modules/blog/menudx.php on line 123
SOLUTION:

1. You can ask your webhost to enable the php wordwrap() function for you.

2. Or you can edit MKPortal.

FIND ALL in mkportal/modules/blog/menudx.php (occurs 3 places in the file)
$post = wordwrap($post, 20, "n", 1);
Comment out these lines like this...
//$post = wordwrap($post, 20, "n", 1);
The problem is that now long words such as URLs will stretch your blocks. So I recommend that you cut the preview to about 20 characters by also editing these lines...

FIND ALL in mkportal/modules/blog/menudx.php (occurs 3 places in the file)
$post = substr ($post, 0, 80);
REPLACE WITH:
$post = substr ($post, 0, 20);



Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users