New Landing How can we help? Themeforest Theme Support Dante Error message in ShortCode builder

Viewing 3 posts - 1 through 3 (of 3 total)
  • Posted in: Dante
  • #45848
    merikoski
    Member
    Post count: 2

    Could you help on this? …just made an fresh installment and applied
    the Dante Theme…see the picture

    BR:Antti

    #46549
    Melanie – SUPPORT
    Member
    Post count: 11032

    Can you go to your server and set the permissions for the folder and files inside /swift-framework/sf-shortcodes/ to 755

    Cheers!

    #46550
    Melanie – SUPPORT
    Member
    Post count: 11032

    If that doesn’t work, try replacing /swift-framework/sf-shortcodes/config.php with:

    <?php 
        if (!function_exists('sf_wp_path')) {
            function sf_wp_path() {
                if (strstr($_SERVER["SCRIPT_FILENAME"], "/wp-content/")) {
                    return preg_replace("/\/wp-content\/.*/", "", $_SERVER["SCRIPT_FILENAME"]);
                } else {
                return preg_replace("/\/[^\/]+?\/themes\/.*/", "", $_SERVER["SCRIPT_FILENAME"]);
                }
            }
        }
        
        $wp_path = sf_wp_path();
        
        if (strpos($wp_path, '/') !== false) {
            require_once( $wp_path . '/wp-load.php' );
        } else {
            require_once( $wp_path . '\wp-load.php' );
        }
    ?>
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register