Support » Plugin: Magento WordPress Integration » Mage.php Path – Invalid URL

  • Resolved ausip


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

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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/ is not within the allowed path(s): (/var/www/vhosts/ in /var/www/vhosts/ on line 70, referer:

    Inserting this line into our vhost.conf file rectified the issue.
    php_admin_value open_basedir "/var/www/vhosts/"

    Plugin Author jamesckemp


    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.