Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Fatal error: Only variables can be passed by reference…

 
Reply to topic    Forum Index » Bugs and errors View previous topic
View next topic
Fatal error: Only variables can be passed by reference…
Author Message
Br?ck



Joined: 18 Dec 2005
Posts: 1
Location: Norway

Post Fatal error: Only variables can be passed by reference… Reply with quote
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:


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

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



Okey, Replace that code with this:

Quote:


$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.
Sun Dec 18, 2005 2:21 pm View user's profile Send private message MSN Messenger
Guest








Please login to hide the ads.

FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2857
Location: Germany

Post Reply with quote
Thanks, I will correct it in the download file. Smile
Sun Dec 18, 2005 3:09 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Bugs and errors All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.