hughworm
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Reroute Email] Not working on WP 5.5Quick fix: I commented out all lines referencing switchbutton() in wp-reroute-email.js.
Forum: Plugins
In reply to: [Easy Updates Manager] File permissions after update break siteForget it! Nothing to do with EUM! …
Forum: Plugins
In reply to: [Fast Velocity Minify] Broken course paths for CSS and JS filesI put site_url and home_url from /wp-admin/options.php into my post from a couple of days ago (see above). To recap, values from /wp-admin/options.php:
“siteurl” is “http://localhost/wp”
“home” is “http://localhost”To complete the picture, the site root contains wp/, wp-content/ and index.php.
Since the intent seems to be to get a file path from a URL a simple fix I tried which seems to work is:
Replace all cases of
$handlepath = str_ireplace($wp_home, $wp_home_path, $hurl);
with
$handlepath = str_ireplace(home_url(), $_SERVER['DOCUMENT_ROOT'], $hurl);This works fine whether handling a file under /wp or /wp-content.
Forum: Plugins
In reply to: [Fast Velocity Minify] Broken course paths for CSS and JS filesRight… Here is code reproducing line 603 in fvm.php clearly reproduces the problem (4 dots indicates characters omitted for brevity):
$wp_home = 'http://domain.com/wp'; $wp_home_path = '/var/www/domain.com/www/wp/'; $hurl = 'http://domain.com/wp-content/plugins/....js'; $handlepath = str_ireplace($wp_home, $wp_home_path, $hurl); print $handlepath; /var/www/domain.com/www/wp/-content/plugins/....jsYou can see that wp-content has been replaced with wp/-content in the path of the js file.
The correct path is
/var/www/domain.com/www/wp-content/plugins/….jsForum: Plugins
In reply to: [Fast Velocity Minify] Broken course paths for CSS and JS filesOK I guess that’s up to you.
Forum: Plugins
In reply to: [Fast Velocity Minify] Broken course paths for CSS and JS filessiteurl is http://localhost/wp
(which is the container of wp-admin)home is http://localhost
(which is the site home page and container of wp and wp-content.)Magic quotes not enabled.
I’ll try the function when I have more time as I’ve uninstalled the plugin for now.
Cheers,
HughForum: Plugins
In reply to: [Fast Velocity Minify] Broken course paths for CSS and JS filessiteurl…
- This reply was modified 9 years, 3 months ago by hughworm.
Forum: Plugins
In reply to: [Fast Velocity Minify] Broken course paths for CSS and JS filesHi Raul
Thanks for your response. My site root contains /wp (for core) and /wp-content (for everything else) which is fairly common.
I did track the problem down to the point where I could see the path looking good before the call to fastvelocity_min_get_hurl() and looking broken after.
It’s my own inhouse dev server running Ubuntu 16.04 and php 5.6.
Cheers,
HughI’ve actually already fixed it by manually re-entering all videos.
Was the upgrade meant to automatically migrate the videos?