WordPress.org

Ready to get started?Download WordPress

Forums

Simple Real Estate Pack
Use SRP in WordPress Multisite (2 posts)

  1. sunreca
    Member
    Posted 2 years ago #

    Hello, I am not sure if anyone notice this or not. When you use this plugin with wordpress multisite enable + subdomain configuration and if you mapped your subdomain to the different domain, for example blog1.domain.com ==> http://www.anotherdomain.com, when you click the 'View Result' link, the loading may be hung there. The problem because in the srp.php, the SRP_URL use the PLUGIN_URL as default. The server may use the wordpress default domain's PLUGIN_URL and redirecting the request to the blog1.domain.com if different from your mapping domain http://www.anotherdomain.com. You can replace SRP_URL with plugin_url() to fix the problem.

    http://wordpress.org/extend/plugins/simple-real-estate-pack-4/

  2. Max Chirkov
    Member
    Plugin Author

    Posted 2 years ago #

    @sunreca - Hi there! I haven't had a chance to test my plugin in the environment like yours. Although I'm using it on a regular MU setup without domain mapping and it seem to work just fine.

    I tried your solution and simply using plugins_url() function doesn't work on my end, since it returns the root plugins folder. What works is this:

    define("SRP_URL", plugins_url(SRP_BASENAME));

    Can you test that for me in your environment and let me know if it works. If so, I'll assume it's work for everyone (since it work in a single site setup) and will commit to the next update.

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic