Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-21-2012, 04:05 PM
Lazorbeam Lazorbeam is offline
 
Join Date: Aug 2010
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Baffled - Blank Page on Editpost and Newreply

I've run into a very strange issue when editing or posting "long" posts. Whenever a user (any user including admin) tries to post say, a page of text, he or she just gets a blank page. Shorter posts (few lines) are working just fine.

After hitting the post, edit, or go advanced button, the user is directed to editpost.php or newreply.php but the entire page is blank.

I've not installed any new mods lately or updated/modified any software. This issue appeared out of the blue.

I ran a suspect file diagnostic and neither appears to be suspect.

Any idea?
Reply With Quote
  #2  
Old 03-21-2012, 05:22 PM
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
Location: GER
Posts: 765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First this: https://www.vbulletin.com/docs/html/blank_pages

Then: Maybe your webserver has a too limited restriction for the overall post data size, which may stop script execution if the sent data is over a defined limit. The phpinfo should tell you the value of that setting in your admincp > maintenance > phpinfo
Reply With Quote
  #3  
Old 03-22-2012, 07:51 PM
Lazorbeam Lazorbeam is offline
 
Join Date: Aug 2010
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Disasterpiece View Post
First this: https://www.vbulletin.com/docs/html/blank_pages

Then: Maybe your webserver has a too limited restriction for the overall post data size, which may stop script execution if the sent data is over a defined limit. The phpinfo should tell you the value of that setting in your admincp > maintenance > phpinfo
Thing is, I've posted huge threads in the past. Now one page of text won't work.

Could VBSEO be at fault? Can I safely disable it without breaking everything just to check if it solves the problem?

I just upgraded to 4.1.11 as well, but the problem persists.

From the vbulletin manual:

Quote:
1. You did not upload the vB files correctly. Reupload the vB non-image files and make sure you upload these in ASCII format and that you overwrite the ones on the server. Make sure you upload the Admin CP files to the admincp directory specified in your config.php file. Then, if you can access the Admin CP, run 'Suspect File Versions' in Diagnostics to make sure you have all the original files for your version:

Admin CP -> Maintenance -> Diagnostics -> Suspect File Versions

Do any show as 'File does not contain expected contents', 'version mismatch' or missing? If so, you need to reupload the original vB non-image files. Make sure you upload these in ASCII format and overwrite the ones on the server.
Files are uploaded fine, the rest of the forums work no problem. Ruled out.

Quote:
2. You have extra space or lines in your config.php file. Make sure there is no whitespace or extra lines in config.php either before the <?php or after the ?>. [Note: Beginning with 3.6.3 the trailing ?> was removed.]
If config.php was messed up then then entire forum wouldn't work. Ruled out.

Quote:
3. If this is happening on the forum home page only, then you may have an empty index.html or index.htm file in that directory. Delete it.
No forum index... ruled out.

Quote:
4. You have a bad plugin installed. To disable the plugin system, edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

Note: If you are running vBSEO or other add-ons that use .htaccess rewrite, you will need to remove those changes as well.
Disabled all plugins using the config file and still had the issue. My htaccess file was not changed around the time the problem surfaced.

Quote:
5. The servername setting in config.php is wrong. Doublecheck this setting. 99% of the time, 'localhost' is correct:

$config['MasterServer']['servername'] = 'localhost';
Definitely not the issue, ruled out.

Quote:
6. Your PHP has magic_quotes_sybase turned on. You have to turn this off. On *nix systems you can do this by creating an .htaccess file with this content and placing it in your main forum directory:

php_flag magic_quotes_sybase 0
That setting is off. Ruled out.

Quote:
7. [For multiple white pages] You have added code to your header, headinclude or phpinclude templates that is no longer functional.
[For white pages in a select area] You have added code to one of your templates that is causing this problem.

The quickest way to find out if a custom template is at fault is to create a new style with no parent style and try that:

Admin CP -> Styles & Templates -> Style Manager -> Add New Style
Having the issue with a FRESHLY installed default skin. Ruled out.

Quote:
8. You have a corrupted template. Repairing the template table may help:

REPAIR TABLE template;
This is possible, but the explanation above hardly tells me what to do. How do I REPAIR TABLE template;? Looks like SQL or some kind.

Quote:
9. You have GZIP enabled. Try turning GZIP off here:

Admin CP -> vBulletin Options -> Cookies and HTTP Header Options -> GZIP HTML Output -> No

Or by running these queries in the SQL tab in phpMyAdmin:

UPDATE setting SET value = '0' WHERE varname = 'gzipoutput';

UPDATE datastore SET data=REPLACE(data,'s:10:"gzipoutput";i:1;','s:10:" gzipoutput";i:0;') WHERE title='options';

You can also edit config.php and add this right under the <?php line to disable GZIP:

DEFINE('NOZIP', 1);

Sometimes this problem is caused when your server is already using GZIP and by turning this on in vB you were double compressing. This causes problems with some pages but not others. It also happens to some people and not others.
My server is gzipping files, but that setting is turned off. Besides, I've been running the site with gzip for ages. Ruled out.

Quote:
10. Sometimes this can also be caused when PHP has the 'display_errors' function turned off. So instead of displaying the actual error so you can see what is wrong, you get a blank page. Look at your phpinfo page and if 'display_errors' is Off or '0', then add this line to your includes/config.php file right under <?php

ini_set("display_errors", true);
This setting is on. Ruled out.

Quote:
11. Check your phpinfo page to see if suhosin is installed as a module. If it is, this could be the cause of this problem. To fix this, add or edit an .htaccess file in your root forum directory and add these lines to it:

php_flag suhosin.cookie.encrypt Off
php_value suhosin.request.max_vars 2048
php_value suhosin.post.max_vars 2048
htaccess was not modified (verified this) when the problem surfaced.

Quote:
13. This can also be caused by a memory_limit setting in php.ini that causes the server to time out before displaying the page. Edit config.php and add this right under the <?php line:

ini_set('memory_limit', -1);
Right now I'm using 160MB which should be PLENTY.

Quote:
15. Check the file and directory permissions. Although this can differ by server, in general the directories should be chmod'd to 755 (-rwxr-xr-x) and files to 644 (-rw-r--r--). If any are set to 777 (-rwxrwxrwx) then this could result in blank pages.
editpost.php and newpost.php were both 644, I tried 755 to no avail.
Reply With Quote
  #4  
Old 03-22-2012, 08:28 PM
Iain M's Avatar
Iain M Iain M is offline
 
Join Date: Jul 2005
Location: Glasgow, Scotland
Posts: 256
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have Mod Security installed on your server? That could be blocking it... check your apache error_log.
Reply With Quote
  #5  
Old 03-22-2012, 09:23 PM
Lazorbeam Lazorbeam is offline
 
Join Date: Aug 2010
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Iain M View Post
Do you have Mod Security installed on your server? That could be blocking it... check your apache error_log.
I do. I checked mod security and nothing is on the list. I tried a search with %php and found nothing.

Where can I find the error log?
Reply With Quote
  #6  
Old 03-22-2012, 09:47 PM
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
Location: GER
Posts: 765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

normally under /var/log/apache2/error_log

or if you have vhosts configured then in their special directories, should be sufficient to search for "error_log" tho
Reply With Quote
  #7  
Old 03-22-2012, 11:01 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you recently update PHP to 5.3? And PCRE to 8.21? There is a bug in PCRE 8.21 that causes issues like you are mentioning. You would need to go back to PCRE 8.20.
Reply With Quote
  #8  
Old 03-22-2012, 11:04 PM
Lazorbeam Lazorbeam is offline
 
Join Date: Aug 2010
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Iain M View Post
Do you have Mod Security installed on your server? That could be blocking it... check your apache error_log.
Quote:
Originally Posted by Disasterpiece View Post
normally under /var/log/apache2/error_log

or if you have vhosts configured then in their special directories, should be sufficient to search for "error_log" tho
I actually found the file after a lot of messing around in SSH, there are no reports containing editpost or newreply, however many vbseo errors. The two relevant ones:

18-Mar-2012 02:30:57] PHP Fatal error: Call to undefined function error_reporting() in /home/site/public_html/vbseo.php on line 15

[19-Mar-2012 03:36:20] PHP Fatal error: Allowed memory size of 167772160 bytes exhausted (tried to allocate 27516809 bytes) in /home/site/public_html/vbseo/includes/functions_vbseo_seo.php on line 120

Which corresponds to

error_reporting(0);

and

$text = preg_replace(array_keys($seo_preg_replace), $seo_preg_replace, $text);

--------------- Added [DATE]1332458235[/DATE] at [TIME]1332458235[/TIME] ---------------

Quote:
Originally Posted by Lynne View Post
Did you recently update PHP to 5.3? And PCRE to 8.21? There is a bug in PCRE 8.21 that causes issues like you are mentioning. You would need to go back to PCRE 8.20.
I'm not even sure what PCRE is, and PHP wouldn't automatically update itself, would it?

According to phpinfo, PCRE is 8.21 and PH is 5.3.8.

--------------- Added [DATE]1332470812[/DATE] at [TIME]1332470812[/TIME] ---------------

Please close this thread, I have narrowed down the problem and my previous posts here are a little misleading. Starting a new thread.
Reply With Quote
  #9  
Old 03-23-2012, 04:06 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your problem is PCRE 8.21. There is a bug in it and you will need to go back to PCRE 8.20.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:22 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05277 seconds
  • Memory Usage 2,267KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (18)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete