Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • in reply to: Cannot open Swift Framework Shortcodes #113513
    jasonleerogers
    Member
    Post count: 4
    This reply has been marked as private.
    in reply to: Cannot open Swift Framework Shortcodes #113387
    jasonleerogers
    Member
    Post count: 4

    Hello,

    I am having the same issue as above, even after trying all of the fixes.

    Here is my config.php file:

    <?php
    	if (!function_exists('sf_wp_path')) {
    		function sf_wp_path() {
    			$wp_path = "";
    			if (strstr($_SERVER["SCRIPT_FILENAME"], "/wp-content/")) {
    				$wp_path = preg_replace("/\/wp-content\/.*/", "", $_SERVER["SCRIPT_FILENAME"]);
    			} else {
    				$wp_path = preg_replace("/\/[^\/]+?\/themes\/.*/", "", $_SERVER["SCRIPT_FILENAME"]);
    			}
    			
    		if (strpos($wp_path, 'interface.php') !== FALSE) {
    				$absolute_path = __FILE__;
    				$file_path = explode( 'wp-content', $absolute_path );
    				$wp_path = $file_path[0];
    			}
    			
    			return $wp_path;	
    		}
    	}
    	
    	$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 2 posts - 1 through 2 (of 2 total)