Title: Mage.php Path &#8211; Invalid URL
Last modified: August 20, 2016

---

# Mage.php Path – Invalid URL

 *  Resolved [ausip](https://wordpress.org/support/users/ausip/)
 * (@ausip)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/magephp-path-invalid-url/)
 * This seems like a common problem, but I have gone through the relevant support
   topics on the website and cannot work out where I have gone wrong.
 * This is a WordPress Multi-Site deployment on a Plesk server.
 * Mage.php Path – /var/www/vhosts/mydomian.com.au/subdomains/store/httpdocs/app/
   Mage.php
    Path confirmed from console session
 * functions.php Path & Extract –
    /var/www/vhosts/mydomian.com.au/store/httpdocs/
   app/code/local/Mage/Core/functions.php
 *     ```
       /**
        * Translator function
        *
        * @deprecated 1.3
        * @param string $text the text to translate
        * @param mixed optional parameters to use in sprintf
        */
       if(!function_exists('__')) { function __() { return Mage::app()->getTranslator()->translate(func_get_args()); } }
       ```
   
 * And I am still getting an Invalid URL error.
 * [http://wordpress.org/extend/plugins/magento-wordpress-integration/](http://wordpress.org/extend/plugins/magento-wordpress-integration/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [ausip](https://wordpress.org/support/users/ausip/)
 * (@ausip)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/magephp-path-invalid-url/#post-3280725)
 * We have found the issue. It was an open_basedir restriction issue.
 * Our httpd logs showed the following error
    `[Sat Dec 22 08:53:40 2012] [error][
   client 210.23.143.54] PHP Warning: file_exists() [<a href='function.file-exists'
   >function.file-exists</a>]: open_basedir restriction in effect. File(/var/www/
   vhosts/mydomain.com/subdomains/store/httpdocs/app/Mage.php) is not within the
   allowed path(s): (/var/www/vhosts/mydomain.com/httpdocs:/tmp) in /var/www/vhosts/
   mydomain.com/httpdocs/wp-content/plugins/mage-enabler/mage-enabler.php on line
   70, referer: http://mydomain.com/wp-admin/`
 * Inserting this line into our vhost.conf file rectified the issue.
    `php_admin_value
   open_basedir "/var/www/vhosts/mydomain.com/httpdocs:/var/www/vhosts/mydomain.
   com/subdomains/store/httpdocs"`
 *  Plugin Author [jamesckemp](https://wordpress.org/support/users/jamesckemp/)
 * (@jamesckemp)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/magephp-path-invalid-url/#post-3280727)
 * Not seen that one before, thanks for the follow up!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Mage.php Path – Invalid URL’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/magento-wordpress-integration_1f262e.
   svg)
 * [Magento Wordpress Integration](https://wordpress.org/plugins/magento-wordpress-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/magento-wordpress-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/magento-wordpress-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/magento-wordpress-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/magento-wordpress-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/magento-wordpress-integration/reviews/)

## Tags

 * [invalid URL](https://wordpress.org/support/topic-tag/invalid-url/)

 * 2 replies
 * 2 participants
 * Last reply from: [jamesckemp](https://wordpress.org/support/users/jamesckemp/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/magephp-path-invalid-url/#post-3280727)
 * Status: resolved