• Hi everyone. I updated the Virtue theme and toolkit today as I haven’t updated them in a few weeks. I also updated wordpress to 3.9.

    When I went to my Theme Options page I found that the interface was completely blank. From the Theme Options page on my WordPress back end I can see the vertical navigation menue starting from “Main Settings” and “Topbar Settings” down to “Import/Export.” However, the area where I would make my changes is now completely white.

    Would anyone be able to help me with this issue, or provide me with instructions to remove and re-install a fresh version of Virtue? Thanks

Viewing 13 replies - 16 through 28 (of 28 total)
  • What is your php max memory and max execution time?

    If you right click in chrome and click inspect does your site show any red errors?

    Kadence Themes

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

    I have not chrome installed – sorry.

    check with firefox or IE just right click and click inspect

    Kadence Themes

    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

    Your WP_CONTENT_DIR and WP_CONTENT_URL are not properly set up on your site, the theme options uses those to load certain js files.

    If you view in chrome and click inspect you can see the errors. The files can’t get access to the correct folder.

    https://codex.www.ads-software.com/Editing_wp-config.php

    Kadence Themes

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

    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…

    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

    My point is with your WP_CONTENT_DIR and WP_CONTENT_URL… not WP_PLUGIN_DIR.

    If you had those defined correctly then it would work (which they are supposed to for any normal wordpress setup). It’s all part of the redux framework: https://github.com/ReduxFramework/redux-framework

    You are welcome to change the core files though. And use get_template_directory_uri() instead.

    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.

    Hey faiello,
    I think I am confused… openshift doesn’t allow you to change your wp-config file? You can’t define the core WP_CONTENT_DIR and WP_CONTENT_URL???

    It’s really not a big deal for me to change the framework.php file. I’m actually happy to do it in the next update for virtue (I’m going to talk with the redux developers as they are the ones who did it the other way to begin with) But I assumed you wanted the immediate fix which would be to define the constants in your config file.
    If you want to wait for an update no problem especially if this helps people use the theme. I just don’t get why a wordpress core constant isn’t supported by openshift?

    I have apparently made you upset and I do apologies for that, I hope you enjoy the theme anyway.

    Ben Ritner
    Kadence Themes

    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

    athornburgh

    (@athornburgh)

    I’m having the same issue where the Theme Options page is completely blank. I first noticed the problem when my home page lost it’s main image and text. I’m using the Cloriato Lite theme by InkThemes.com.

    Here’s the url: https://ericbattertondds.com

    I am a novice at WordPress and web design in general so please dumb down any help you can provide.

    Thank you!

Viewing 13 replies - 16 through 28 (of 28 total)
  • The topic ‘"Theme Options" are blank/missing’ is closed to new replies.