• Resolved ausip

    (@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/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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ausip

    (@ausip)

    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

    (@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.