Only Variables Can Be Passed By Reference

RegisterLogin
Only Variables Can Be Passed By Reference
Post Description: What Does Only Variables Can Be Passed By Reference Mean When You Get This Error On My Php Scripts
Tags: Only, Variables, Can, Be, Passed, By, Reference
This Post Was Posted On Dec 14, 2009 By Lnligyu #2904
hi, i am writing a small script with PHP for my website and i get this error so i was hoping i can get some help to explain what this error means or how i can fix it or resolve it.

Fatal error: Only variables can be passed by reference in \htdocs\example\post.php on line 54
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
reyach
#4091 1
hiya hope you can help me too please :-) getting the same php error for my wordpress install:
fatal error: only variables can be passed by reference in c:\wamp\www\wordpress\wp-admin\includes\post.php on line 379
line 379 looks like this:
$post = get_post( wp_insert_post( array( 'post_title' => __( 'auto draft' ), 'post_type' => $post_type, 'post_status' => 'auto-draft' ) ) );

any ideas?
thanks in advance.

Jun 23, 2010 Reply Report abuse
elmer
#3311 2
huhuh

php str_replace only variables can be passed by reference

help
Jan 22, 2010 Reply Report abuse
%u0443%u0441%u0442%u0430%
#3022 3
edwin here ; %u0443%u0441%u0442%u0430%u043d%u043e%u0432%u043a%u0430
Dec 14, 2009 Reply Report abuse
webune
#3021 4
yeah, i see your problem.

look for this:
str_replace("\n", '<br>',


and replace it with this:
str_replace("\n", '<br>'),


do you see the difference?
Dec 14, 2009 Reply Report abuse
Lnligyu
#3020 5
Replies($Rotate, $Pg['title'], time(), '', $_POST['manueal'], str_replace("\n", '<br>',$comments, '', '', '', '', '');
Dec 14, 2009 Reply Report abuse
webune
#3019 6
how does line 54 look like?
Dec 14, 2009 Reply Report abuse
Leave Your Comments...
©2011 Webune Forums - Sun Dec 18, 2011 10:14 pm
Powered by: Webune Forums V3