On these pages are my WordPress plugins, the odd article and my Support Forum.

For my random rantings on everything else please visit my blog at Yellow Swordfish

WP Plugins


Articles

If you find any of my plugins useful, please comsider a donation towards my running costs.

Thank you

In preparation for the release of Simple:Press Version 4.0, the Support Forum has moved to a new site dedicated to the plugin. This will also be the future home for Simple:Press Forum.


Version 3.1.4 will still be available for download here in the short term.


For the support forum - and to visit our new site and to get details of version 4.0, click on the logo to take you to simplepressforum.com

This forum is currently locked - access is read only
Current User: Guest
Please consider registering

 
Search Forums:


 




Error warning displayed when uploading images, functionality still working

UserPost

1:03 am
17 Jul 2008


yorkhoh

Member

Perth, Australia

posts 19

1

I'm logged in as administrator for wordpress/forum and I go to add a topic/post.

I choose to insert an image - and then click on the icon on the right of Image URL to be able to choose a file on the server or upload my own.

In the top left of the new popup window I get this:

Images:
Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/..) is not within the allowed path(s): (/home/…../:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/…../public_html/wp-content/plugins/simple-forum/forum/uploader/sf-uploader.php on line 75

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/.) is not within the allowed path(s): (/home/…../:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/…../public_html/wp-content/plugins/simple-forum/forum/uploader/sf-uploader.php on line 75

Obviously “…..” is the my home directory.

I hadn't noticed this before until recently - I don't think it was there. The time I noticed was after a 4+ hour outage by the server/webhost I'm with (3ix). After that occurrence, the warning pops up.

I am still able to view the images inside that directory and I'm still able to upload my own images. Functionally, things still work - although that error just pops up.

This is what happens and what it looks like:


Any idea what it is, if it's detrimental and how to get rid of it?

3:23 am
17 Jul 2008


Mr Papa

Moderator

Arizona, USA

posts 1602

2

this has been discussed before… its a hosting issue…

See this thread for more information…

2:59 am
18 Jul 2008


yorkhoh

Member

Perth, Australia

posts 19

3

Thanks Papa!!!

Yes, I had a similar problem that required the same solution. Although my server has always been on PHP 5 since I've started with them.

I don't have that vhost.conf file so I asked my webhost - I asked them to enable openbasedir again. It turned out they had to disable openbase dir function rather than enable it.

Again, thank you for identifying the solution. Even after reading that linked post - I cannot see the relation between that problem and mine. So I never would have guessed to seek that solution.

3:35 am
18 Jul 2008


Mr Papa

Moderator

Arizona, USA

posts 1602

4

its not really a php4 or php5 issue…  it can be misconfigured in either… 

for others with this issue, it can be set in either the vhost.conf (for vps setups) or in the php.ini file for shared hosting…  the other thread shows the proper virtual host solution…  in shared hosting, just comment out (which is the default) the open_basedir= statement in php.ini

10:25 pm
14 Aug 2008


Charlie

Guest

5

Hi, i have the same pb. but i have never be on php4.

I found php.ini and the ligne : open_basedir= ??????

What do i have to do next ?

thank for your help :)

4:42 am
15 Aug 2008


Mr Papa

Moderator

Arizona, USA

posts 1602

6

depends… what kind of host are you on?  shared or vps?  btw, its not php version specific…

for shared hosting, in php.ini it should simply be

open_basedir=

makes sure its not set to anything… 

for vps, you need to edit your vhost.conf as indicated in the the link in post #2

if those dont fix it, you will have to ask your host to set it for you…

9:47 am
15 Aug 2008


Charlie

Guest

7

thank it's working now :) but another pb appears, i can't send .jpg image, it's working with  png, gif… but not jpg.

Is there a way to allow jpg ? and how can i set the maximun size ?


EDIT: It's working now, i changed the ligne :

if ($size[mime] == 'image/jpg' || $size[mime] == 'image/gif' || $size[mime] == 'image/png' || $size[mime] == 'image/bmp')

if ($size[mime] == 'image/jpeg' || $size[mime] == 'image/gif' || $size[mime] == 'image/png' || $size[mime] == 'image/bmp')

10:24 am
15 Aug 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

8

Was just about to send that to you!


3:24 pm
15 Aug 2008


Mr Papa

Moderator

Arizona, USA

posts 1602

9

yeah, its a bug already documented here in the forum and fixed for the next version…



Reply to Topic: Error warning displayed when uploading images, functionality still working

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 10 + 3        (Required)

Topic Reply:


 
 

About the Stuff at Yellow Swordfish forum

Currently Online:

20 Guests

Maximum Online: 71

Forums:

Groups: 3

Forums: 16

Topics: 2068

Posts: 14091

Members:

There are 1003 members

There are 837 guests


Yellow Swordfish has made 5252 posts

Top Posters:

Mr Papa - 1602

-Radio- - 558

ovizii - 114

jfv - 82

angelic007 - 72

Administrator: Yellow Swordfish | Moderators: Yellow Swordfish, Mr Papa, -Radio-


© Simple:Press Forum - Version 3.1.4 (Build 357)