Fatal error: Only variables can be passed by reference…

Report bugs and errors in this forum.

Fatal error: Only variables can be passed by reference…

Postby Brõck » Sun Dec 18, 2005 2:21 pm

I think that everyone that uses Cutenews.RU, on PHP.5.*.* getting this error.

So, it says that it is some wrong code on line 105, that is correct.



And since i'm a PHP Developer, i fixed it.

So;

Open Main.MDU, and go to line 105 and 106:

Code: Select all

   $image_upload       = end(explode('/', $config_path_image_upload));

   $userpic_upload       = end(explode('/', $config_path_userpic_upload));



Okey, Replace that code with this:


$image_upload = end($foo=explode('/', $config_path_image_upload));

$userpic_upload = end($foo2=explode('/', $config_path_userpic_upload));





You see that the new PHP.5.*.* MUST have variables.



So, PHP says that this code is bad written.

But don't be sad, becuase, if that is correct:

Mambo, PHPbb, vBullentin & many more, have the same error =P





- Brõck



Sorry for my bad english, but i'm only 13 years, and we have only 5 hours a week of english teaching.
Brõck
 
Posts: 1
Joined: Sun Dec 18, 2005 2:14 pm
Location: Norway

Postby FI-DD » Sun Dec 18, 2005 3:09 pm

Thanks, I will correct it in the download file. :)
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany


Return to Bugs and errors



Who is online

Users browsing this forum: No registered users and 1 guest

cron