Author Topic: Solved Problem: Blank White Page After Uploading (Image/File) or Registration !  (Read 502965 times)

0 Members and 1 Guest are viewing this topic.

Offline naif824

  • Newbie
  • *
  • Posts: 27
    • View Profile
hello,

I got a problem of having a White blank page after you submit an image or file .. or when you click submit after Registration ! , and it will lead / take you to member.php page !

I passed almost by most of the threads talking about this prolem, and I got the solution only in one of them !

So to make your life easier, I'll post the fix right here.


First, if you have upgraded to PHP 5+ , solution by V@no , and it was not my problem cuz  I run on PHP 4.4, but in case you have upgraded then make sure this is the FIX !

In PHP v5.x some default settings are turned off, which makes 4images not compatible with it.

Here are few changes u should make in order to make it to work with PHP5

1) Open global.php
Find:
Code: [Select]
if (get_magic_quotes_gpc() == 0) {Insert above:
Code: [Select]
/*
  FIX PHP5
  START INSERT
*/
if (!isset($HTTP_GET_VARS)) {
  $HTTP_GET_VARS    = &$_GET;
  $HTTP_POST_VARS   = &$_POST;
  $HTTP_COOKIE_VARS = &$_COOKIE;
  $HTTP_POST_FILES  = &$_FILES;
}
/*
  FIX PHP5
  END INSERT
*/


2) Open includes/upload.php
Find two (2) times:
Code: [Select]
  var $upload_errors = array();Remove one (1) of them (doesnt metter which one)



P.S. If I or someone else remmember anything else it will be added to this topic ;)



Second, if you're still running PHP 4.x.x , solution by fatro , and it was my problem and it solved it perfectly, is the FIX !

After hard reading.. I already made it!!

My problem is about "memory_limit" in pnp.ini but I can't config it directly so,

I add some config command after "<?php" in global.php
here they are..

Code: [Select]
ini_set("memory_limit", "50M");
ini_set("max_execution_time", "10000");
ini_set("default_socket_timeout", "100");
ini_set("expect.timeout", "30");

It's working fine  :)



P.S.: If you're intersted in freelancing, here you go to modify my 4images Library : http://www.4homepages.de/forum/index.php?topic=16990.msg


All the best.

Offline naif824

  • Newbie
  • *
  • Posts: 27
    • View Profile
Duuuuuuuuuh !

After my HOSTer upgraded PHP to 4.4.6 , the same problem came back again !


Any idea?

Offline naif824

  • Newbie
  • *
  • Posts: 27
    • View Profile
for more information:

4images 1.7.4


Quote

PHP Version 4.4.6

System  Linux ss3.murabba.com 2.6.20.1 #1 SMP Tue Mar 6 01:35:19 zzz 2007 i686 
Build Date  Apr 2 2007 17:47:09 
Configure Command  './configure' '--prefix=/usr' '--with-xml' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-iconv' '--with-imap=/usr/local/imap-2004g' '--with-mcrypt' '--enable-magic-quotes' '--with-mysqli' '--with-mysql=/usr' '--enable-discard-path' '--with-pear' '--enable-safe-mode' '--enable-sockets' '--enable-track-vars' '--with-zlib' 
Server API  CGI 
Virtual Directory Support  disabled 
Configuration File (php.ini) Path  /usr/local/Zend/etc/php.ini 
PHP API  20020918 
PHP Extension  20020429 
Zend Extension  20050606 
Debug Build  no 
Zend Memory Manager  enabled 
Thread Safety  disabled 
Registered PHP Streams  php, http, ftp, compress.zlib 

 This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with eAccelerator v0.9.5, Copyright (c) 2004-2006 eAccelerator, by eAccelerator with Zend Extension Manager v1.2.0, Copyright (c) 2003-2006, by Zend Technologies with Zend Optimizer v3.2.2, Copyright (c) 1998-2006, by Zend Technologies 


--------------------------------------------------------------------------------

PHP Credits

--------------------------------------------------------------------------------

Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference Off Off
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions dl,exec,passthru,proc_open,proc_close,shell_exec,system dl,exec,passthru,proc_open,proc_close,shell_exec,system
display_errors Off Off
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 2047 85
expose_php On On
extension_dir ./ ./
file_uploads On On
gpc_order GPC GPC
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/lib/php .:/usr/lib/php
log_errors On On
log_errors_max_len 1024 1024
magic_quotes_gpc Off Off
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
max_execution_time 30 30
max_input_time 60 60
open_basedir no value no value
output_buffering 4096 4096
output_handler no value no value
post_max_size 8M 8M
precision 14 14
register_argc_argv Off Off
register_globals On On
report_memleaks On On
safe_mode On On
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i  /usr/sbin/sendmail -t -i 
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 2M 2M
upload_tmp_dir no value no value
user_dir no value no value
variables_order GPCS GPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On


Zend Optimizer
Optimization Pass 1  enabled 
Optimization Pass 2  enabled 
Optimization Pass 3  enabled 
Optimization Pass 4  enabled 
Optimization Pass 9  enabled 
Zend Loader  enabled 
License Path  no value 
Obfuscation level  3 


bcmath
BCMath support  enabled 


calendar
Calendar support  enabled 


ctype
ctype functions  enabled 


eAccelerator
eAccelerator support enabled
Version  0.9.5 
Caching Enabled  false 
Optimizer Enabled  false 

Directive Local Value Master Value
eaccelerator.allowed_admin_path no value no value
eaccelerator.cache_dir /home/eaccelerator/tmp /home/eaccelerator/tmp
eaccelerator.check_mtime 1 1
eaccelerator.compress 1 1
eaccelerator.compress_level 9 9
eaccelerator.debug 0 0
eaccelerator.enable 1 1
eaccelerator.filter no value no value
eaccelerator.log_file no value no value
eaccelerator.name_space no value no value
eaccelerator.optimizer 1 1
eaccelerator.shm_max 0 0
eaccelerator.shm_only 0 0
eaccelerator.shm_prune_period 0 0
eaccelerator.shm_size 16 16
eaccelerator.shm_ttl 0 0


ftp
FTP support  enabled 


gd
GD Support  enabled 
GD Version  bundled (2.0.28 compatible) 
GIF Read Support  enabled 
GIF Create Support  enabled 
JPG Support  enabled 
PNG Support  enabled 
WBMP Support  enabled 
XBM Support  enabled 


iconv
iconv support  enabled 
iconv implementation  glibc 
iconv library version  2.3.4 

Directive Local Value Master Value
iconv.input_encoding ISO-8859-1 ISO-8859-1
iconv.internal_encoding ISO-8859-1 ISO-8859-1
iconv.output_encoding ISO-8859-1 ISO-8859-1


imap
IMAP c-Client Version  2004 


mcrypt
mcrypt support enabled
version  >= 2.4.x 
Supported ciphers  cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes 
Supported modes  cbc cfb ctr ecb ncfb nofb ofb stream 

Directive Local Value Master Value
mcrypt.algorithms_dir no value no value
mcrypt.modes_dir no value no value


mysql
MySQL Support enabled
Active Persistent Links  0 
Active Links  1 
Client API version  4.1.21 
MYSQL_MODULE_TYPE  external 
MYSQL_SOCKET  /var/lib/mysql/mysql.sock 
MYSQL_INCLUDE  -I/usr/include/mysql 
MYSQL_LIBS  -L/usr/lib -lmysqlclient 

Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout 60 60
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket no value no value
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off


overload
User-Space Object Overloading Support  enabled 


pcre
PCRE (Perl Compatible Regular Expressions) Support  enabled 
PCRE Library Version  7.0 18-Dec-2006 


posix
Revision  $Revision: 1.51.2.4.2.3 $ 


session
Session Support  enabled 
Registered save handlers  files user 

Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 Off Off
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 1000 1000
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name sessionid PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid Off Off


sockets
Sockets Support  enabled 


standard
Regex Library  Bundled library enabled 
Dynamic Library Support  enabled 
Path to sendmail  /usr/sbin/sendmail -t -i 

Directive Local Value Master Value
assert.active 1 1
assert.bail 0 0
assert.callback no value no value
assert.quiet_eval 0 0
assert.warning 1 1
auto_detect_line_endings 0 0
default_socket_timeout 100 60
safe_mode_allowed_env_vars PHP_ PHP_
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
url_rewriter.tags a=href,area=href,frame=src,input=src,form=fakeentry a=href,area=href,frame=src,input=src,form=fakeentry
user_agent no value no value


tokenizer
Tokenizer Support  enabled 


xml
XML Support  active 
XML Namespace Support  active 
EXPAT Version  1.95.6 


zlib
ZLib Support  enabled 
Compiled Version  1.2.1.2 
Linked Version  1.2.1.2 

Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value


Additional Modules
Module Name


Environment
Variable Value
PATH  /usr/local/bin:/usr/bin:/bin 
DOCUMENT_ROOT  /home/sources/public_html 
HTTP_ACCEPT  image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/xaml+xml, application/vnd.ms-xpsdocument, application/x-ms-xbap, application/x-ms-application, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* 
HTTP_ACCEPT_ENCODING  gzip, deflate 
HTTP_ACCEPT_LANGUAGE  en-us 
HTTP_CONNECTION  Keep-Alive 
HTTP_COOKIE  4images_userid=1; 4images_lastvisit=1175550328; 4images_lastvisit=1175549280; 4images_userid=2; dbx-postmeta=grabit:0+|1-|2-|3-|4-|5-&advancedstuff:0-|1-|2-; dbx-linkmeta=grabit:0+|1-|2-&advancedstuff:0-|1-; sessionid=ec67f28ac30d378f048f22adf0f280d5; __utma=220399642.823771808.1174791854.1175549267.1175549777.145; __utmz=220399642.1175351895.106.2.utmccn=(referral)|utmcsr=shjun.net|utmcct=/vb/showthread.php|utmcmd=referral 
HTTP_HOST  www.sources.ws 
HTTP_REFERER  http://www.sources.ws/file/admin/index.php?action=nav 
HTTP_USER_AGENT  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1) 
REMOTE_ADDR  87.109.215.64 
REMOTE_PORT  49326 
SCRIPT_FILENAME  /home/sources/public_html/file/admin/phpinfo.php 
SERVER_ADDR  69.59.20.28 
SERVER_ADMIN  webmaster@sources.ws 
SERVER_NAME  www.sources.ws 
SERVER_PORT  80 
SERVER_SOFTWARE  Apache 
GATEWAY_INTERFACE  CGI/1.1 
SERVER_PROTOCOL  HTTP/1.1 
REQUEST_METHOD  GET 
QUERY_STRING  no value 
REQUEST_URI  /file/admin/phpinfo.php 
SCRIPT_NAME  /file/admin/phpinfo.php 


PHP Variables
Variable Value
PHP_SELF  /file/admin/phpinfo.php 
_REQUEST["4images_userid"] 1
_REQUEST["4images_lastvisit"] 1175550328
_REQUEST["dbx-postmeta"] grabit:0 |1-|2-|3-|4-|5-&advancedstuff:0-|1-|2-
_REQUEST["dbx-linkmeta"] grabit:0 |1-|2-&advancedstuff:0-|1-
_REQUEST["sessionid"] ec67f28ac30d378f048f22adf0f280d5
_REQUEST["__utma"] 220399642.823771808.1174791854.1175549267.1175549777.145
_REQUEST["__utmz"] 220399642.1175351895.106.2.utmccn=(referral)|utmcsr=shjun.net|utmcct=/vb/showthread.php|utmcmd=referral
_COOKIE["4images_userid"] 1
_COOKIE["4images_lastvisit"] 1175550328
_COOKIE["dbx-postmeta"] grabit:0 |1-|2-|3-|4-|5-&advancedstuff:0-|1-|2-
_COOKIE["dbx-linkmeta"] grabit:0 |1-|2-&advancedstuff:0-|1-
_COOKIE["sessionid"] ec67f28ac30d378f048f22adf0f280d5
_COOKIE["__utma"] 220399642.823771808.1174791854.1175549267.1175549777.145
_COOKIE["__utmz"] 220399642.1175351895.106.2.utmccn=(referral)|utmcsr=shjun.net|utmcct=/vb/showthread.php|utmcmd=referral
_SERVER["PATH"] /usr/local/bin:/usr/bin:/bin
_SERVER["DOCUMENT_ROOT"] /home/sources/public_html
_SERVER["HTTP_ACCEPT"] image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/xaml+xml, application/vnd.ms-xpsdocument, application/x-ms-xbap, application/x-ms-application, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
_SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
_SERVER["HTTP_ACCEPT_LANGUAGE"] en-us
_SERVER["HTTP_CONNECTION"] Keep-Alive
_SERVER["HTTP_COOKIE"] 4images_userid=1; 4images_lastvisit=1175550328; 4images_lastvisit=1175549280; 4images_userid=2; dbx-postmeta=grabit:0+|1-|2-|3-|4-|5-&advancedstuff:0-|1-|2-; dbx-linkmeta=grabit:0+|1-|2-&advancedstuff:0-|1-; sessionid=ec67f28ac30d378f048f22adf0f280d5; __utma=220399642.823771808.1174791854.1175549267.1175549777.145; __utmz=220399642.1175351895.106.2.utmccn=(referral)|utmcsr=shjun.net|utmcct=/vb/showthread.php|utmcmd=referral
_SERVER["HTTP_HOST"] www.sources.ws
_SERVER["HTTP_REFERER"] http://www.sources.ws/file/admin/index.php?action=nav
_SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1)
_SERVER["REMOTE_ADDR"] 87.109.215.64
_SERVER["REMOTE_PORT"] 49326
_SERVER["SCRIPT_FILENAME"] /home/sources/public_html/file/admin/phpinfo.php
_SERVER["SERVER_ADDR"] 69.59.20.28
_SERVER["SERVER_ADMIN"] webmaster@sources.ws
_SERVER["SERVER_NAME"] www.sources.ws
_SERVER["SERVER_PORT"] 80
_SERVER["SERVER_SOFTWARE"] Apache
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"] /file/admin/phpinfo.php
_SERVER["SCRIPT_NAME"] /file/admin/phpinfo.php
_SERVER["PHP_SELF"] /file/admin/phpinfo.php


PHP License
This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.
 



Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: Blank White Page After Uploading (Image/File)
« Reply #3 on: May 18, 2007, 09:10:12 PM »
I also have this problem with PHP 4.4.6.
I get a white page (member.php) after I upload images.

This does not happen all the time. It only happens if I upload 3 or more images using the multiupload mod.
Any solutions would be greatly appreciated.
Thanks!
« Last Edit: May 20, 2007, 08:48:18 AM by CeJay »

Offline CosmoPhobia

  • Newbie
  • *
  • Posts: 35
    • View Profile
What to do when PHP 4.4.7 is installed on server ?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Quote
This does not happen all the time. It only happens if I upload 3 or more images using the multiupload mod.

What is say from web error log when see blank page ? If come from multiupload MOD, what is say when put error_reporting(E_ALL) and back to blank page ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline CosmoPhobia

  • Newbie
  • *
  • Posts: 35
    • View Profile
When you finally tell me what you mean with "web error log" than i can answer maybe !!!!
I´m not using multiupload MOD !
Thanks

Edit: The change "error_reporting(E_ALL)" has no effect in my global.php, or wherever i´ve changed it.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Quote
When you finally tell me what you mean with "web error log" than i can answer maybe !!!!

And maybe should pay close attention:

http://www.4homepages.de/forum/index.php?topic=2705.msg98888#msg98888

full instruction give !!! :?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline CosmoPhobia

  • Newbie
  • *
  • Posts: 35
    • View Profile
Is it this, what you´re asking for ?

91.100.16.22 - admin [20/Aug/2007:12:45:10 +0200] "GET /data/thumbnails/5/test.jpg HTTP/1.1" 200 2982 "http://heimwelten.de/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"

Greets

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Yes !

edit: this mean - file transfer good - must come from MOD.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline CosmoPhobia

  • Newbie
  • *
  • Posts: 35
    • View Profile
Thank you for your patience.
But i´ve removed this MOD for testing (resize image by upload) and the problem was still there. :(

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Must be MOD conflict ... if try on fresh folder for 4images ... (different DB too) - is work ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline CosmoPhobia

  • Newbie
  • *
  • Posts: 35
    • View Profile
I´ve tried it with another graphic, i have resized it to 330 kb, one file with 3000 pixel width, one with 2000 pixels width.
But both when i try to upload without success. Maybe the Mod "auto resize image on upload" doens´t work width PHP 4.4.7 ?

So its NOT only a server timeout it seems.

Any solution, thunderbird ?   :wink:

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Quote
But both when i try to upload without success. Maybe the Mod "auto resize image on upload" doens´t work width PHP 4.4.7 ?

If web error log report GET 200 and error_reporting report nada ... VERY HARD say ...  8O
New evol come with PHP v4.4.7 with 4images MODs look like ...  :|

 :idea: - PHP challenge for me.  :twisted: - if interest ... PM me server info + 4images admin account - I work on patch. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline CosmoPhobia

  • Newbie
  • *
  • Posts: 35
    • View Profile
Any solution, thunderbird ?   :wink:

Sry, i meant thunderstrike   :lol:

Is there a time you are sleeping ...  :P

Thank you for your offer, i mail you, when i dont get another option.
Thanks !!!!!