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:
if (get_magic_quotes_gpc() == 0) {
Insert above:/*
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:
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..
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.msgAll the best.