Digital experiences for all disciplines
Forum Replies Created
-
Posted in: We hit Power Elite.
-
This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.
Hi, I edited it correctly this time and still getting an error on line 17
Please help.
<?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( sf_wp_path() . ‘\wp-load.php’ );
}
?>Hi – I am having the same issue as the others
Warning: require_once(D:\Hosting\5068133\html\wp-content\themes\dante\swift-framework\sf-shortcodes\interface.php/wp-load.php) [function.require-once]: failed to open stream: No such file or directory in D:\Hosting\5068133\html\wp-content\themes\dante\swift-framework\sf-shortcodes\config.php on line 17
Fatal error: require_once() [function.require]: Failed opening required ‘D:\Hosting\5068133\html\wp-content\themes\dante\swift-framework\sf-shortcodes\interface.php/wp-load.php’ (include_path=’.;C:\php5\pear’) in D:\Hosting\5068133\html\wp-content\themes\dante\swift-framework\sf-shortcodes\config.php on line 17
I’ve follow the directions and edited line 17 as you can see:
<?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( sf_wp_path() . ‘/wp-load.php’ );
}
?>But still getting same error message as above. Please advise.
Thanks
Hi – I am having the same issue as the others
Warning: require_once(D:\Hosting\5068133\html\wp-content\themes\dante\swift-framework\sf-shortcodes\interface.php/wp-load.php) [function.require-once]: failed to open stream: No such file or directory in D:\Hosting\5068133\html\wp-content\themes\dante\swift-framework\sf-shortcodes\config.php on line 17
Fatal error: require_once() [function.require]: Failed opening required ‘D:\Hosting\5068133\html\wp-content\themes\dante\swift-framework\sf-shortcodes\interface.php/wp-load.php’ (include_path=’.;C:\php5\pear’) in D:\Hosting\5068133\html\wp-content\themes\dante\swift-framework\sf-shortcodes\config.php on line 17
I’ve follow the directions and edited line 17 as you can see:
<?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( sf_wp_path() . ‘/wp-load.php’ );
}
?>But still getting same error message as above. Please advise.
Thanks
-
Posted in: We hit Power Elite.