Title: Works also on PaaS
Last modified: September 2, 2016

---

# Works also on PaaS

 *  [faiello](https://wordpress.org/support/users/faiello/)
 * (@faiello)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/does-not-work-on-openshift-platform/)
 * Cool it works now on RedHat Openshift PaaS

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/does-not-work-on-openshift-platform/#post-7847548)
 * Ha, I told you how to fix it… Just have to define your WP_CONTENT_DIR and WP_CONTENT_URL**
   correctly**.
 * Very easy to do in your wp-config file like I pointed out in the link:
 * [http://codex.wordpress.org/Editing_wp-config.php](http://codex.wordpress.org/Editing_wp-config.php)
 * Kadence Themes
 *  [jriddles](https://wordpress.org/support/users/jriddles/)
 * (@jriddles)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/does-not-work-on-openshift-platform/#post-7847549)
 * I use Virtue for one of my sites. What exactly does this mean?
 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/does-not-work-on-openshift-platform/#post-7847552)
 * Hey [@jriddles](https://wordpress.org/support/users/jriddles/),
    This most likely
   means nothing to you, if your theme options are working then you don’t have to
   even read on.
 * But you can see what [@faiello](https://wordpress.org/support/users/faiello/)
   is referring to here: [http://wordpress.org/support/topic/theme-options-are-blankmissing](http://wordpress.org/support/topic/theme-options-are-blankmissing)?
 * The virtue theme options panel is built using the redux options framework. The
   developers of redux use WP_CONTENT_DIR and WP_CONTENT_URL two core constants 
   defined by WordPress. If they are not correctly defined then the theme options
   don’t load correctly. For 99 percent of people this is done automatically and
   you don’t need to do anything. But for some they need to correctly define the
   path in their wordpress config file for the theme options to work. Apparently
   if you are running WordPress on openshift platform it means you need to define
   the paths. You can read more about do that here:
 * [http://codex.wordpress.org/Editing_wp-config.php](http://codex.wordpress.org/Editing_wp-config.php)
 * From the comment by [@faiello](https://wordpress.org/support/users/faiello/) 
   above it seems I was not able to correctly explain the fix in a timeframe to 
   their liking? I don’t know…
 * Ben Ritner
    Kadence Themes
 *  [purnam.dhyan](https://wordpress.org/support/users/purnamdhyan/)
 * (@purnamdhyan)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/does-not-work-on-openshift-platform/#post-7847566)
 * I still cannot get this working… I continue to get failed resource 404 errors,
   regardless of whether I use the Redux-Framework WP Plugin OR use existing redux
   framework integrated in the theme or try and update it to the latest version 
   available
 * Also, tried to define the WP CONSTANT on openshift, without a trailing slash…
   
   [@faiello](https://wordpress.org/support/users/faiello/), could you please share
   what changes helped you fix the problem in a little more details?
 * Many thanks and best regards,
 * Images
    [url=http://postimg.org/image/6qud1w4oz/][img]http://s29.postimg.org/
   6qud1w4oz/Dev_Trace_Chrome.png[/img][/url]
 * [url=http://postimg.org/image/gy8b0k1j7/][img]http://s29.postimg.org/gy8b0k1j7/
   Theme_options_weird.png[/img][/url]
 *  Thread Starter [faiello](https://wordpress.org/support/users/faiello/)
 * (@faiello)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/does-not-work-on-openshift-platform/#post-7847567)
 * hi
 * I made changes as follows on file virtue/themeoptions/framework.php”:
 * old:
 *     ```
       // Windows-proof constants: replace backward by forward slashes. Thanks to: @peterbouwmeester
       self::$_url     = trailingslashit( $wp_content_url ) . $relative_url;
       ```
   
 * new:
 *     ```
       self::$_url     = trailingslashit(get_template_directory_uri()) . trailingslashit(basename(__DIR__));
       ```
   
 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/does-not-work-on-openshift-platform/#post-7847568)
 * Hey purnam.dhyan
 * I have tested this version on openshift:
 * [http://wordpress.org/themes/download/virtue.2.1.9.zip](http://wordpress.org/themes/download/virtue.2.1.9.zip)
 * It’s not even live yet but I know that it works with openshift, so you can download
   and use.
 * Kadence Themes

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Works also on PaaS’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/virtue/3.4.15/screenshot.png)
 * Virtue
 * [Support Threads](https://wordpress.org/support/theme/virtue/)
 * [Active Topics](https://wordpress.org/support/theme/virtue/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/virtue/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/virtue/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/does-not-work-on-openshift-platform/#post-7847568)