phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

Error in php log


 
Search this topic... | Search phpBB2 Discussion... | Search Box
Register or Login to Post    Index » phpBB2 Discussion  Previous TopicPrint TopicNext Topic
Author Message
hoimyr
Board Member



Joined: 16 Apr 2009

Posts: 115
Location: Oslo


flag
PostPosted: Fri Jul 20, 2012 11:00 am 
Post subject: Error in php log

Hey, i checked my errorlogs today and found a bunch of new messages. It says:

Quote:
[Fri Jul 20 12:35:18 2012] [warn] [client xx.xx.xx.xx] mod_fcgid: stderr: PHP Warning: substr() expects parameter 3 to be long, string given in /www/recent.php on line 233


It looks like this:
Code:
post_text = ( strlen($post_text) < $content ) ? $word_censor : substr(stripslashes($word_censor), 0, $content) .'...';


I dont get any errors when using it and it seems to be doing what it should. But i get that error.
The file is from the "Recent Topics" mod by Acid found on phpbbhacks. link

Any clue?
Back to top
drathbun
Board Member



Joined: 24 Jul 2008

Posts: 656
Location: Texas


flag
PostPosted: Fri Jul 20, 2012 1:44 pm 
Post subject: Re: Error in php log

Where does $content get assigned a value?
_________________
phpBBDoctor Blog
Back to top
hoimyr
Board Member



Joined: 16 Apr 2009

Posts: 115
Location: Oslo


flag
PostPosted: Sat Jul 21, 2012 10:49 pm 
Post subject: Re: Error in php log

To this:
$content = '';

I changed it to:
$content = '0';

and think that solved it. Must check the logs tomorrow.
Thanks for pointing that out. icon_wink.gif
Back to top
Display posts from previous:   
Register or Login to Post    Index » phpBB2 Discussion  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0300 seconds using 15 queries. (SQL 0.0065 Parse 0.0008 Other 0.0227)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo