PDA

View Full Version : Warning: Missing argument 2 for http_redirect()


xizi
04-15-2006, 04:15 AM
Warning: Missing argument 2 for http_redirect() in /home/httpd/vhosts/wxsc.com/subdomains/search/httpdocs/include/functions.php on line 359

i installed with Simple chinese language.

search.wxsc.com
the submit link wont work .after click it .its just show up a blank page.
unable to login admin page.

iam using PLD 3.0

anon
04-15-2006, 04:24 AM
You on dreamhost?

xizi
04-15-2006, 04:27 AM
no
iam using netpivotal.com

anon
04-15-2006, 04:31 AM
i could have SWORN that i replied to this same exact question much much earlier.

Did my original post get deleted? or am i going totally insane :shock:

Boby
04-15-2006, 10:38 AM
@ xizi

Can you show me the redirect line in your admin/index.php file and the http_redirect funcion in include/functions.php ?

Thanks, Boby.

xizi
04-15-2006, 03:25 PM
admin/index.phpContent visible to registered users only.
include/functions.phpContent visible to registered users only.
thx

Boby
04-15-2006, 04:22 PM
Hmmm, I thought admin/init.php but I wrote admin/index.php, but whatever...

Make sure you have this in your admin/init.php
Content visible to registered users only.

and update your http_redirect function with this one:
Content visible to registered users only.

This is the function used in 3.0.4 beta ;)

Boby

xizi
04-15-2006, 04:54 PM
theres still aproblem...
{non working url removed}

Warning: mysql_real_escape_string() expects parameter 1 to be string, object given in /home/httpd/vhosts/wxsc.com/subdomains/search/httpdocs/libs/adodb/drivers/adodb-mysql.inc.php on line 137

and the languages .thx so much..

anon
04-15-2006, 07:23 PM
xizi, think hard and long, and try and remember what files you've modified, if any, prior to having problems.

Boby
04-16-2006, 01:07 AM
Content visible to registered users only.
Please edit libs/adodb/drivers/adodb-mysql.inc.php
Search for:
Content visible to registered users only.
Replace it with:
Content visible to registered users only.

Content visible to registered users only.
No, it's not his fault! I've seen this problem again, it's a strange PHP installation. I really don't understand these server admin...how can they compile PHP in such a horrible way?? Every function parameters need a default value...LoooL

See?
function qstr($s='',$magic_quotes=false)...

Boby

anon
04-17-2006, 10:25 PM
w0w.. that's .. just... *ugh*

Why in the heck would someone do that is beyond me. o_0

:lol:

megrisoft
01-05-2007, 04:42 PM
the error are in version 3.03 we modified but still error are there how to upgrade it into 3.0.6 I also made a seperate thread