function drupal_encode_path


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 drupal_encode_path($path)
cle7 drupal_encode_path($path)
elmsmedia7 drupal_encode_path($path)
icor7 drupal_encode_path($path)
meedjum_blog7 drupal_encode_path($path)
mooc7 drupal_encode_path($path)

Encodes a Drupal path for use in a URL.

For aesthetic reasons slashes are not escaped.

Note that url() takes care of calling this function, so a path passed to that function should not be encoded in advance.


$path: The Drupal path to encode.

Related topics

4 calls to drupal_encode_path()
DrupalPublicStreamWrapper::getExternalUrl in includes/
Overrides getExternalUrl().
file_create_url in includes/
Creates a web-accessible URL for a stream to an external or local file.
url in includes/
Generates an internal or external URL.
_filefield_paths_replace_path in sites/all/modules/ulmus/filefield_paths/filefield_paths.module
Run regular expression over all available text-based fields.


includes/, line 639
Common functions that many Drupal modules will need to reference.


function drupal_encode_path($path) {
  return str_replace('%2F', '/', rawurlencode($path));



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.