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 [function.getimagesize]
1 2
Ausius
Posted on 17 Oct 2009, 14:04:01

Access: Member
Total Posts: 3
Joined: 2009-10-17

[function.getimagesize]: failed to open stream: Invalid argument C:/.../ bbparser.php on line 6on line 6

Image is uploaded and folder exist.

Any ideas ? Thanks in advance !
#1000
Chris
Posted on 17 Oct 2009, 21:21:49

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

This is strange, the image you've uploaded, did you upload it using the script? does the error happen with only this image for with any you upload?
#1001
Ausius
Posted on 18 Oct 2009, 06:47:16

Access: Member
Total Posts: 3
Joined: 2009-10-17

Yes, i've uploaded image using script and this happens with other images too.
#1010
Chris
Posted on 18 Oct 2009, 09:06:40

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

Did you install the script locally, either localhost or 127.0.0.1, then move it to another server/domain by any chance?
#1017
Ausius
Posted on 18 Oct 2009, 09:49:00

Access: Member
Total Posts: 3
Joined: 2009-10-17

I've installed it on my 127.0.0.1 and it's still there.
#1033
Chris
Posted on 18 Oct 2009, 09:51:34

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

Is this you?
#1034
Ronald
Posted on 18 Oct 2009, 21:15:38

Access: Member
Total Posts: 45
Joined: 2009-09-11

Hi nice work.

I get the next warning

Warning: getimagesize() [function.getimagesize]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /users/ronald167/www/news/bbparser.php on line 6

Warning: getimagesize(http://ronald167.bplaced.net/news/uploads/4.jpg) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in /users/ronald167/www/news/bbparser.php on line 6

News is new. Upload the image jet but i don't understand the warning.
I am trying something, maby you have an idea
#1041
Chris
Posted on 19 Oct 2009, 11:10:20

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

Hi Ronald,

You need to edit the php.ini on your server or ask your host to do so. What you're searching for is allow_url_fopen which needs to be set to ON

Code:
allow_url_fopen = On
#1046
Ronald
Posted on 19 Oct 2009, 16:34:30

Access: Member
Total Posts: 45
Joined: 2009-09-11

Is there an other option to do this maby some changes that i can made in the script.
They said its a huge security risk for there server.
In the version 3.2 there was no problem.
I saw somewhere something like curl ? already thanks for your help.
#1051
Last edited by Ronald at 2009-10-19 16:47:24 Reason:
Chris
Posted on 19 Oct 2009, 16:50:19

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

The reason this didn't happen with 3.2 is because a new feature was added in 3.3 that automatically resizes images if you want them to.

One way around this would be, when you add your news then insert an image, it'll look like this

Code:
[img="http://domain.com/news/uploads/image.jpg"][/img]


you could change that to

Code:
[img="news/uploads/image.jpg"][/img]


which should stop the error from showing. Doing this will mean that if you preview the news the images won't show correctly because of the path but once you post them and view the news from domain.com you should be able to see the images fine.
#1052
Last edited by Chris at 2009-10-19 16:50:40 Reason:
1 2
Network-13.com © 2013