Magento WordPress Integration
[resolved] Mage.php Path - Invalid URL (3 posts)

  1. ausip
    Posted 3 years ago #

    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 -

     * 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.


  2. ausip
    Posted 3 years ago #

    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] 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"

  3. jamesckemp
    Plugin Author

    Posted 3 years ago #

    Not seen that one before, thanks for the follow up!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Magento WordPress Integration
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic