Mikzi
Forum Replies Created
-
Forum: Plugins
In reply to: New version or replacement for Singular plugin?There are multiple threads around this issue and still no solutions available. I also found the Singular plugin and tried it out. As advertised, the plugin allows for duplicate slugs to be created, but then WP becomes unable to separate between the duplicated slugs, even though the permalinks are different. An update of the plugin is in order.
Thanks for the help, Frederick.
The problem has been solved so I’m closing this thread. It had to do with my custom .htaccess rules and the fact that my WP SiteUrl was incorrect.
Done.
To confirm, this problem appeared when switching from 0.9.1.2 to 0.9.1.3. I did some analyses of the code and believe the source of this issue to be the w3_get_document_root() function in define.php which has received some additional calls from /lib/W3/Plugin/Cdn.php in the new version.
For example, in the previous version of Cdn.php we had that the minify path was a constant “W3TC_CONTENT_MINIFY_DIR_NAME” defined as “wp-content/w3tc/min”. In the new version (line 1385) this path becomes the W3TC_CACHE_FILE_MINIFY_DIR subtracted from w3_get_document_root().
In my case the doc root /myhome/public_html is removed from the constant /myhome/public_html/mydir/wp-content/w3tc/min, leaving the path as mydir/wp-content/w3tc/min instead of the desired /wp-content/w3tc/min.
I believe w3_get_document_root() should have returned “/myhome/public_html/mydir” and not “/myhome/public_html”.
It seems the issue is not specific to minified CSS files. Theme files and WP-includes are also uploaded to the subdirectory mydir on Cloudfront, while their URL is rewritten without the mydir on the web pages.
No. Each site has a separate WP install and database, although they’re located on the same web host.
In the Minify settings the CSS file is specified as “wp-content/themes/mytheme/style.css”. The URI verifies correctly. Interestingly, specifying the URI as “mydir/wp-content/themes/mytheme/style.css” produces the exact same result. The URI verifies, the uploaded file gets prefixed with “mydir” while the rewritten CSS URL does not.