Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Image and file upload // unserialize() expects parameter 1
C00354
Posted on 17 Jun 2010, 14:45:45

Access: Member
Total Posts: 2
Joined: 2010-06-17

Hello,

I hope this problem wasn't solved in an other post by i didn't found any information.

I use N-13 with french language and when i try to access to the file upload or the picture upload i have the following msg :

Warning: unserialize() expects parameter 1 to be string, array given in /var/www/vhosts/2sker.com/httpdocs/news/functions.php on line 346

of course it's impossible to upload anything, the chmod of uplad is 777. I can't find a solution

Maybe someone have any solution, thanks in advance for your help.

Br

LT
#2516
Chris
Posted on 20 Jun 2010, 20:03:20

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

I can't seem to replicate this behavior. Does it always happen? does it happen when using another language?
#2525
Gregorymhk
Posted on 01 Jul 2010, 15:39:40

Access: Member
Total Posts: 3
Joined: 2010-03-29

thanks For This.
#2604
Last edited by Gregorymhk at 2010-07-01 15:40:05 Reason:
C00354
Posted on 01 Jul 2010, 15:42:46

Access: Member
Total Posts: 2
Joined: 2010-06-17

Just received the answer.

yes it 's appear in all the language and I can't find any solution.

Br

LT
#2605
Lsteffler
Posted on 07 Jul 2010, 18:27:42

Access: Member
Total Posts: 16
Joined: 2010-07-07

Boa Tarde!

Também estou com este problema, quando vou enviar uma imagem dá o seguinte erro:
Warning: unserialize() expects parameter 1 to be string, array given in /hsphere/local/home/extreme/extremecnp.com.br/news/functions.php on line 345

Já troquei a liguagem e o erro continua, por favor, preciso de uma solução.

Muito Obrigado!
_________________________________

Good evening!

I am also having this problem when I send an image gives the following error:
Warning: unserialize() expects parameter 1 to be string, array given in /hsphere/local/home/extreme/extremecnp.com.br/news/functions.php on line 345

I swapped the markup language and the error continues, please, I need a solution.

Thank you!
#2640
Chris
Posted on 07 Jul 2010, 21:25:43

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Lsteffler, I'm still unable to replicate this problem.

Can you tell me which version of PHP your server is running? and is it running windows or linux?
#2641
Lsteffler
Posted on 08 Jul 2010, 14:54:51

Access: Member
Total Posts: 16
Joined: 2010-07-07

Quote:
"The PHP setting 'register_globals' has been detected to enabled. It's recommended you disable this as it Can cause security issues and errors to occur."

This is what's causing the problem. You need to contact your server host and ask them to disable register_globals.

Edit:

I've edited a few files you can download here to fix the problem.

http://n-13news.googlecode.com/svn-history/r197/branches/37fixes/modules/modfileuploads.php

http://n-13news.googlecode.com/svn-history/r197/branches/37fixes/modules/modimageuploads.php

Grab a copy of both these files and replace your own copies in the modules directory. Log out then back into the system and the error messages should be gone.
#2646
Last edited by Chris at 2010-07-08 15:31:01 Reason:
Network-13.com © 2013