Blite 0.1-beta8 Available
Posted 21 May 2012, 11:30 am in Blite Development
This beta is now obsolete and should not be used.
This beta focuses primarily on commenting — how commenting is integrated into index.php and how submitted comments are processed.
Changes:
- Rewrite of index.php with respect to the integration of comment posting. This includes changes to how the comment form is built and populated with data, as well as changes to the use of cookies and the PHP session.
- Add basic 'flood protection' for comments. In Settings > Comments there's a new option "Wait between comments". Set it to something like 30 (seconds) to stop people posting rapid-fire comments.
- Add simple 'duplicate post' check for comments. A comment is refused if it (the comment body) is identical to the last comment posted. Of course this is easily circumvented, but it helps slow down the 'paste-and-post' spammers.
- Implement "close comments" for a post. I was going to postpone this feature until the next major version as it required a database change, and I've been trying to avoid database changes for v. 0.1. But when I looked again at the db I saw that I'd included a field specifically for this purpose, but forgotten about it. :)
- Moved the comment form layout to a subtemplate in items.php (in the theme).
- Rewrite of GET variable processing in index.php for better handling of URL manipulation.
- "Fix" word wrap for IE in the javascript editor (IE8 and IE9). But there's still an issue: the caret position is lost when word wrap is toggled.
- Various tweeks to the default theme.
Download:
- blite-0.1-beta8.tar.gz (63KB)
Install:
- Read INSTALL.txt
Upgrade from Beta 7 or earlier:
- Read UPGRADE.txt
If you have created a custom theme it will remain in place. However, if you are upgrading from an old beta you may notice display issues as the templates have changed slightly in the last two betas. Have a look at the default templates for comparison.
There are several new preferences on the Settings page which do not exist in your database. Immediately after upgrading you should go to Settings, review everything and click 'Save'. The new preferences are added to your database when you save.
Comments are closed for this post.
The data directory set in the configuration does not exist.
Sqlite is installed (how can I check if it is running)? The sqlite DB file is located in root and I have chmod to www-data (both folder and the file itself).
Any idea what might have gone wrong?
Sqlite doesn't run as a daemon like MySQL. It's called by PHP when needed. Once you get the above error fixed, you'll get a new error if sqlite isn't available. Hopefully you don't :)
// Absolute path to database directory (no trailing slash).
$cfg['datadir'] = "/root/sqlite";
And here is what I have in my setup:
# ls
blog.sqlite schema-01b8.sql
# pwd
/root/sqlite
The directory looks correct as far as I can tell....
/root is readable/writable only as the root user. Hence the PHP process cannot access it. /root is not a good location to store files that need to be accessed by any user other than root.
Move your database directory to another location that is read-accessible by all users, for example, /var/sqlite
/var is typically accessible by all users. So create /var/sqlite, put your sqlite database there, then as root do
chown -R www-data /var/sqlite, where www-data is the user under which PHP runs.Thanks for trying Blite and reporting back!
Unfortunately when I try to access the site my browser gets stuck in a redirect loop, is there a way to fix this?
Probably the same bug that ZAY noted above. Happens when you remove the test post and have an empty blog (no published posts). It's fixed for the next release.
Meanwhile you might replace your sqlite database with the one in the beta8 .tar.gz file, which has one post, then create a new published post of your own before removing the test post.
Its working amazing now though, and its incredibly fast. Good work with the development, I'm definitely going to keep using blite!
One note: don't invest a lot of time in theming yet. There's numerous theme-related changes in the next release. Hopefully after that it'll be stable.
Keep up the good work!