I’ve found 2 bugs with Faked Folders 2.0.
1. implode() is called with the wrong number of arguments, which prevents this plugin from working on PHP < 4.3.0.
2. When doing a clean install of 2.0 (not an upgrade), the static_template_access
column is not created.
This patch fixes both issues.
Though I have gotten it installed, I have not managed to get it working. I’ve added a .htaccess that WP can modify, and it has all the correct mod_rewrite rules, but I’m unable to access any of my static pages.
I created a folder named ‘Static’, and added a page to it, ‘test’. When I go to https://www.mysite.com/Static/test , I get a 404.
I tried going to https://www.mysite.com/index.php?static=true&name=test – what the RewriteRule appears to redirect to – but I get a white page with some PHP errors:
Warning: fopen("1", "w") - Permission denied in /path/to/mysite/wordpress/wp-content/plugins/faked-folders.php on line 1171
Warning: Supplied argument is not a valid File-Handle resource in /path/to/mysite/wordpress/wp-content/plugins/faked-folders.php on line 1172
Warning: Supplied argument is not a valid File-Handle resource in /path/to/mysite/wordpress/wp-content/plugins/faked-folders.php on line 1173
Fatal error: Failed opening required '1' (include_path='.') in /path/to/mysite/wordpress/wp-content/plugins/faked-folders.php on line 1175
Any suggestions?