WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. ausip
    Member
    Posted 1 year 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 -
    /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/

  2. ausip
    Member
    Posted 1 year 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 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"

  3. jamesckemp
    Member
    Plugin Author

    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic