Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Forum: Reviews
    In reply to: [Virtue] Works also on PaaS
    Thread Starter faiello

    (@faiello)

    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__));

    Hi Ben

    Thank you very much for bug-fixing. Yes I was not very amused. I think wordpress should be plug and play whatever the underlying platform is…

    Have a look at the docker project: in future wordpress will be run isolated in a application-container. The consequence? Every plugin, every theme and every framework that was made in try/error-methodolgy and code/fix iterations probably will not work anymore…

    Best regards, Flavio

    There are many platforms out there like openshift, cloudfoundry etc.

    For all having troubles change as follows your “virtue/themeoptions/framework.php”:

    self::$_url     = trailingslashit(get_template_directory_uri()) . trailingslashit(basename(__DIR__));

    It’s a pitty that it doesnt work like all others themes.

    The init section you copied from here: https://pastebin.com/CP3Nw8MX does not work everywere:

    // Windows-proof constants: replace backward by forward slashes. Thanks to: @peterbouwmeester
    self::$_url     = trailingslashit( $wp_content_url ) . $relative_url;

    Please test and correct as follows your file “virtue/themeoptions/framework.php”:

    self::$_url     = trailingslashit(get_template_directory_uri()) . trailingslashit(basename(__DIR__));

    Thank you

    As you can see below, this are default platform-values:

    /* That's all, stop editing! Happy blogging. */
    
    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
      define('ABSPATH', dirname(__FILE__) . '/');
    
    /** Tell WordPress where the plugins directory really is */
    if ( !defined('WP_PLUGIN_DIR') && is_link(ABSPATH . '/wp-content/plugins') )
      define('WP_PLUGIN_DIR', realpath(ABSPATH . '/wp-content/plugins'));
    
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');

    This means the assets load not correctly. Here a comparison of what works and what not:

    Works:

    wp_register_style('icon_css', get_template_directory_uri() . '/assets/css/icons.css', false, null);

    Doesn’t work:

    [virtuedev-aiello.rhcloud.com themes]\> grep -ri "select2.min.js" virtue/
    virtue/themeoptions/framework.php:                self::$_url . 'assets/js/vendor/select2/select2.min.js',
    virtue/themeoptions/framework.php:                filemtime( self::$_dir . 'assets/js/vendor/select2/select2.min.js' ),
    [virtuedev-aiello.rhcloud.com themes]\> grep -ri "redux.min.js" virtue/
    virtue/themeoptions/framework.php:                if ( file_exists( self::$_dir . 'assets/js/redux.min.js' ) ) {
    virtue/themeoptions/framework.php:                        self::$_url . 'assets/js/redux.min.js',
    virtue/themeoptions/framework.php:                        filemtime( self::$_dir . 'assets/js/redux.min.js' ),
    etc.

    Thank you in advance for fixing…

    Other themes work correctly on openshift. Would you correct your theme if I take the premium version?

    There are no errors on the browser… I made a new instance from scratch having the same issue. see yourself:

    https://virtuedev-aiello.rhcloud.com
    username: admin
    Password: AFhsk2oij343

    This are openshift-default values: https://openshift.com

    I have not chrome installed – sorry.

    I tried till now:
    Plugins all disabled
    Virtue plugin enabled
    Virtue plugin disabled
    Etc.

    Instance is running on openshift platform.

    It worked in past with virtue theme – now from scratch it doesn’t.

    Same probleme here. The theme options are just blank. I’m using php 5.4 and mysql 5.5. I have tried two times on blank images from scratch.

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