404 error on css and js files
-
Hello,
I’m running a fresh install of WordPress from the bitnami helm chart using persistent storage on an NFS share. The path used by the containers is /bitnami/wordpress/wp-content/ to pull in plugins/etc. When I install bbPress, all of the css files and js files use the wrong path to include the assets.
Here’s an example:
<link rel='stylesheet' id='bbp-default-css' href='https://example.com/bitnami/wordpress/wp-content/plugins/bbpress/templates/default/css/bbpress.min.css'> <script type='text/javascript' src='https://example.com/bitnami/wordpress/wp-content/plugins/bbpress/templates/default/js/editor.min.js?ver=2.6.5'>
I haven’t had any issues with other plugins thus far, but for some reason bbPress is wanting to use the full installation path instead of the web root. Is there a way of fixing this with some WP constant that I’m not setting? The installation of wordpress is in /opt/bitnami/wordpress and wp-content/ and wp-config.php are symlink’d to /bitnami/wordpress/wp-content and /bitnami/wordpress/wp-config.php.
I have a temporary fix right now which will be wiped out when bbPress updates.
File: wp-content/plugins/bbpress/includes/core/template-functions.php
function bbp_enqueue_style( $handle = '', $file = '', $deps = array(), $ver = false, $media = 'all' ) { // Attempt to locate an enqueueable $located = bbp_locate_enqueueable( $file ); //Ghetto fix $located = str_replace('/bitnami/wordpress', '', $located);
function bbp_enqueue_script( $handle = '', $file = '', $deps = array(), $ver = false, $in_footer = false ) { // Attempt to locate an enqueueable $located = bbp_locate_enqueueable( $file ); //Ghetto fix $located = str_replace('/bitnami/wordpress', '', $located);
- You must be logged in to reply to this topic.