#13268 closed defect (bug) (invalid)
Website URL as plain text causes error
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | General | Version: | 2.9.2 |
| Severity: | minor | Keywords: | slash url |
| Cc: |
Description
When an URL appears in the post as clear text (not as a link) with the http:// the slashes cause an PHP warning when viewing the article (warning text below) and the post doesn't get viewed.
Removing the "" from the URL or formatting the string as a URL with the editor fixes the problem.
Noticed from version 2.9.2
Warning: wp_oembed_get() [function.wp-oembed-get]: open_basedir restriction in effect. File(/usr/share/php5class-oembed.php) is not within the allowed path(s): (.:/srv/www/vhosts/xxx.com/httpdocs/:/tmp:/usr/share/php5/) in /srv/www/vhosts/xxx.com/httpdocs/blog/wp-includes/media.php on line 1282
Warning: wp_oembed_get(class-oembed.php) [function.wp-oembed-get]: failed to open stream: Operation not permitted in /srv/www/vhosts/xxx.com/httpdocs/blog/wp-includes/media.php on line 1282
Change History (4)
comment:3
Viper007Bond — 3 years ago
- Milestone Unassigned deleted
- Resolution set to invalid
- Status changed from new to closed
Yeah, this has been fixed already. The require_once() path is absolute in 3.0.
comment:4
Viper007Bond — 3 years ago
BTW, your server is configured improperly.

This should be fixed in 3.0.
2.9 code block:
function wp_oembed_get( $url, $args = '' ) { require_once( 'class-oembed.php' ); $oembed = _wp_oembed_get_object(); return $oembed->get_html( $url, $args ); }trunk code block:
function wp_oembed_get( $url, $args = '' ) { require_once( ABSPATH . WPINC . '/class-oembed.php' ); $oembed = _wp_oembed_get_object(); return $oembed->get_html( $url, $args ); }Can't find a ticket for this at the moment.