| The Arcive of vBulletin Modifications Site. | |
| 
			 
			#1  
			
			
			
			
			
		 | |||
| 
 | |||
|  Post character limit(24998) after switch to PHP5 
			
			Ever since switching from PHP 4 to 5 new posts and edits that aren't done via quick edit end up blank if they're more than 24998 characters. I've had to place a limit on post size via the "Maximum Characters Per Post" setting, so users won't lose edits or new posts. Here's a bit of info about the forum/server: CENTOS Enterprise 4.4 i686 Apache 1.3.39 PHP 5.2.4 MySQL 4.0.27 vB 3.5.4 with security patches There've been no errors reported by PHP or in the server's error_log. I've tried on a test instance of vB without any plugins and the same happens. Any ideas? | 
| 
			 
			#2  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			Please enable Public PHPInfo in your vBuletin Options and provide a link to your board.
		 | 
| 
			 
			#3  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			<a href="http://sleepywood.net/forum/" target="_blank">http://sleepywood.net/forum/</a> You'll see APC enabled, but the test forum had it disabled and still had the problem. | 
| 
			 
			#4  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			Try increasing the 'post_max_size' in your PHP config. Other then that, i don't see anything obvious.
		 | 
| 
			 
			#5  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			25,000 chars is rather a lot, I would have though that limiting posts to (a lot) less than that would be sensible anyway.
		 | 
| 
			 
			#6  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			PHP would've logged an error if it exceeded post_max_size. I thought 20k was enough after I noticed the blanking, but then the users got antsy about it. Think I'll look at what handles the quick edits compared to normal edits and see if I can fix this myself. I'll post about it on success. --------------- Added [DATE]1192684620[/DATE] at [TIME]1192684620[/TIME] --------------- Found it! It failed at: PHP Code: 
			I suggest having the option to set these in the vB AdminCP, or just correlate the setting to the "Maximum Characters Per Post" setting. The quickest solution is an: PHP Code: 
			 | 
| 
			 
			#7  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			Very nice find, how did you find this if it was not logged?
		 | 
| 
			 
			#8  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			I had a short chat with one of our developers on this subject, and it is known that this can happen in PHP 5.2, and a workaround has been added since 3.5.8 & 3.6.5. My advice is to upgrade to a newer vBulletin version. | 
| 
			 
			#9  
			
			
			
			
			
		 | |||
| 
 | |||
|   Quote: 
 My forum is very customized, the work I did finding this is less than checking each bit of customization. But a fine suggestion for others with this problem that don't want to screw with php.ini settings. | 
|  | 
| 
 | 
 | 
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
| 
 | |
|  More Information | |
| Template Usage: 
 Phrase Groups Available: 
 | Included Files: 
 Hooks Called: 
 |