Problem with lil

20 views
Skip to first unread message

Redemption

unread,
Aug 21, 2009, 6:02:37 AM8/21/09
to LilBlogs
Hi, i've installed lil and i've follow step to step the installation
but when charge main lil blog page it appear all white. Any ideas?

mmalca

unread,
Aug 28, 2009, 2:12:37 AM8/28/09
to LilBlogs
Try turning on debug (in APP/config/core.php or create custom APP/
config/config.php) and check your error message.

Redemption

unread,
Aug 29, 2009, 3:31:29 AM8/29/09
to LilBlogs
Turning on (at 1) the debug it works! I do not why, but it works!

Now i've try to instal the plugin in a different installation of
cakephp but it give me a warning and an error when i want to see a
post :

Warning (2): Division by zero [CORE\cake\libs\controller
\controller.php, line 1072]

Code | Context

$object = Post
Post::$name = "Post"
Post::$actsAs = array
Post::$belongsTo = array
Post::$hasMany = array
Post::$validate = array
Post::$useDbConfig = "default"
Post::$useTable = "posts"
Post::$displayField = "title"
Post::$id = false
Post::$data = array
Post::$table = "posts"
Post::$primaryKey = "id"
Post::$_schema = array
Post::$validationErrors = array
Post::$tablePrefix = ""
Post::$alias = "Post"
Post::$tableToModel = array
Post::$logTransactions = false
Post::$transactional = false
Post::$cacheQueries = false
Post::$hasOne = array
Post::$hasAndBelongsToMany = array
Post::$Behaviors = BehaviorCollection object
Post::$whitelist = array
Post::$cacheSources = true
Post::$findQueryType = NULL
Post::$recursive = 1
Post::$order = "Post.created DESC"
Post::$__exists = NULL
Post::$__associationKeys = array
Post::$__associations = array
Post::$__backAssociation = array
Post::$__insertID = NULL
Post::$__numRows = NULL
Post::$__affectedRows = NULL
Post::$_findMethods = array
Post::$_log = NULL
Post::$Blog = Blog object
Post::$Author = AppModel object
Post::$Comment = Comment object
Post::$Category = Category object
Post::$CategoriesPost = AppModel object
$scope = array()
$whitelist = array()
$assoc = null
$options = array(
"page" => 1,
"limit" => null,
"conditions" => array(
"Post.status" => 2,
"Post.blog_id" => "2"
),
"order" => "Post.created DESC",
"contain" => array(
"Category",
"Author",
"Blog"
)
)
$defaults = array(
"conditions" => array(
"Post.status" => 2,
"Post.blog_id" => "2"
),
"limit" => null,
"order" => "Post.created DESC",
"contain" => array(
"Category",
"Author",
"Blog"
)
)
$vars = array(
"fields",
"order",
"limit",
"page",
"recursive"
)
$keys = array(
"pass",
"named",
"plugin",
"controller",
"action",
"form",
"url",
"isAjax",
"blogname"
)
$count = 1
$i = 9
$recursive = 1
$page = 1
$limit = null
$order = "Post.created DESC"
$fields = null
$conditions = array(
"Post.status" => 2,
"Post.blog_id" => "2"
)
$type = "all"
$contain = array(
"Category",
"Author",
"Blog"
)
$extra = array(
"contain" => array(
"Category",
"Author",
"Blog"
)
)
$parameters = array(
"conditions" => array(
"Post.status" => 2,
"Post.blog_id" => "2"
)
)

$count = $object->find('count', array_merge($parameters,
$extra));
}
$pageCount = intval(ceil($count / $limit));

Controller::paginate() - CORE\cake\libs\controller\controller.php,
line 1072
PostsController::index() - APP\plugins\lilblogs\controllers
\posts_controller.php, line 57
Object::dispatchMethod() - CORE\cake\libs\object.php, line 116
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 227
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194
[main] - APP\webroot\index.php, line 88

Fatal error: Cannot redeclare class CakeSession in C:\wamp\www\cake
\cake\libs\session.php on line 778


Thank you so much!

mmalca

unread,
Aug 29, 2009, 5:04:45 AM8/29/09
to LilBlogs
I think your problem could be that you didn't include LilBlogs'
configuration with default configuration values for plugin.

You should add following line to your APP\config\core.php file:

require_once APP.'plugins'.DS.'lil_blogs'.DS.'config'.DS.'core.php';

btw... plugin got renamed to lil_blogs (form lilblogs). If I see
correctly, your plugin directory is still lilblogs (should be APP/
plugins/lil_blogs).

cheers, Miha

Redemption

unread,
Aug 29, 2009, 6:50:30 AM8/29/09
to LilBlogs
Thanks again for your willingness. I've followed the installation
instructions on http://www.lilcake.net/lil_blogs/cakephp/lilblogs-installation
, and i've insert in core.php and in routes.php the code
with "lilblogs" whitin "_" .
Other way i've try to rename directory and file but it doesn't work
becouse if you see for example app\plugins\lilblogs\config\routes.php
all the directory are named with "lilblogs".

I apologize for my terrible English :) . Bye

mmalca

unread,
Aug 29, 2009, 1:08:26 PM8/29/09
to LilBlogs
Obviously you're using an old version of LilBlogs...
Check http://code.google.com/p/lilblogs/source/browse/tags/LilBlogs-1.1/config/routes.php
- there is a "_" in plugin's name.

Download and try LilBlogs app from here: http://lilblogs.googlecode.com/files/LilBlogs-1.1.zip
And please, do report any issues you encounter using LilBlogs.

Cheers, m


On Aug 29, 12:50 pm, Redemption <m...@pausaxn.it> wrote:
> Thanks again for your willingness. I've followed the installation
> instructions onhttp://www.lilcake.net/lil_blogs/cakephp/lilblogs-installation

Redemption

unread,
Aug 30, 2009, 9:33:42 AM8/30/09
to LilBlogs
Thanks!
But ther is a bug in create a new blog, when i had create a new blog,
it's saved in db, but it not appear in lil_blogs/admin . Ther is
alwais and only the first blog.
Another question on permission on new author, how can i give a blog at
one user?
It's possible to give only one blog for each user (and give only at
the admin the chance to view and edit all blogs) ?

Sorry for all this question but i need this platform for university
thesis :) .
Cheers

On 29 Ago, 19:08, mmalca <m...@nahtigal.com> wrote:
> Obviously you're using an old version of LilBlogs...
> Checkhttp://code.google.com/p/lilblogs/source/browse/tags/LilBlogs-1.1/con...

mmalca

unread,
Aug 30, 2009, 12:19:51 PM8/30/09
to LilBlogs
I see your point.

When adding a new blog it doesn't appear in blog list because table
authors_blogs isn't updated automatically. You must manually add a new
line to this table with author_id and blog_id. When you'll do that,
blog will appear in blog list.

The same is with blog permissions. You must manually link author and
blog in authors_blog (yeah, it's stupid I know)...

But wait... I can implement a superuser author, which will have an
ability to add blogs and new authors. Give me a day or two..

cheers, m

Redemption

unread,
Aug 30, 2009, 12:26:22 PM8/30/09
to LilBlogs
Awesome!!! I can wait! Thanks so much!

mmalca

unread,
Aug 30, 2009, 1:46:59 PM8/30/09
to LilBlogs
Fix mentioned above has been commited to code.google.com/p/lilblogs.

There's an additional field 'admin' in authors table. Only admin
author can add blogs and authors (and link the two together).

Redemption

unread,
Aug 30, 2009, 2:06:19 PM8/30/09
to LilBlogs
Wow!!! Can i download directly the version in google code home page or
file to file in updated http://code.google.com/p/lilblogs/updates/list
?

Thanks!

mmalca

unread,
Aug 30, 2009, 2:51:56 PM8/30/09
to LilBlogs
http://lilblogs.googlecode.com/files/LilBlogs-1.2.zip

On Aug 30, 8:06 pm, Redemption <m...@pausaxn.it> wrote:
> Wow!!! Can i download directly the version in google code home page or
> file to file in updatedhttp://code.google.com/p/lilblogs/updates/list
> ...
>
> read more »

bluon3

unread,
Sep 9, 2009, 6:52:21 AM9/9/09
to LilBlogs
I have a problem with the plugin on new installation of CakePHP
(stable and dev), after i've followed all the steps in http://lilblogs.googlecode.com
(i've take only the te directory lil_blogs in plgins) they give me
this error:

Warning (512): SQL Error: 1054: Unknown column 'Blog.theme' in 'field
list' [CORE\cake\libs\model\datasources\dbo_source.php, line 549]
Code | Context

$out = null;
if ($error) {
trigger_error("<span style = \"color:Red;text-
align:left\"><b>SQL Error:</b> {$this->error}</span>",
E_USER_WARNING);

$sql = "SELECT `Blog`.`theme` FROM `blogs` AS `Blog` WHERE
`Blog`.`short_name` = 'marco-blog' LIMIT 1"
$error = "1054: Unknown column 'Blog.theme' in 'field list'"
$out = null

DboSource::showQuery() - CORE\cake\libs\model\datasources
\dbo_source.php, line 549
DboSource::execute() - CORE\cake\libs\model\datasources
\dbo_source.php, line 216
DboSource::fetchAll() - CORE\cake\libs\model\datasources
\dbo_source.php, line 354
DboSource::read() - CORE\cake\libs\model\datasources\dbo_source.php,
line 680
Model::find() - CORE\cake\libs\model\model.php, line 2067
Model::field() - CORE\cake\libs\model\model.php, line 1126
PostsController::beforeRender() - APP\plugins\lil_blogs\controllers
\posts_controller.php, line 124
Controller::render() - CORE\cake\libs\controller\controller.php, line
812
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 243
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 206
[main] - APP\webroot\index.php, line 83


how can i resolve this problem?

cheers.
> ...
>
> leggi tutto

malamalca

unread,
Sep 9, 2009, 7:34:54 AM9/9/09
to LilBlogs
Oh, I see I forgot to add theme field into LilBlogs' sql script.

I've, fixed this problem now.

Please add theme field and all should work fine:
ALTER TABLE `blogs` ADD `theme` VARCHAR( 100 ) NULL DEFAULT NULL
AFTER `description`;

cheers


On Sep 9, 12:52 pm, bluon3 <alari.ma...@gmail.com> wrote:
> I have a problem with the plugin on new installation of CakePHP
> (stable and dev), after i've followed all the steps inhttp://lilblogs.googlecode.com
> > > > > > > > > > >        ...
>
> read more »

Redemption

unread,
Sep 9, 2009, 10:10:16 AM9/9/09
to LilBlogs
Hi again, I've a very weird question about lil_blogs : it's possible
that the plugin work with a 1.2.0.4451alpha of cake php ?

Now the plugin give me a fatal error about "Configuration" .

Tnx
> ...
>
> read more »

malamalca

unread,
Sep 10, 2009, 1:51:19 AM9/10/09
to LilBlogs
Unfortunately it isn't.
I've checked CakePHP rev 4451 and it doesn't use Configure class at
all (configuration settings are implemented via define() and
constants).

I rely heavily on Configure class and rewrite/refactor to an older
version of CakePHP is not an option. I am focused on developing new
features LilBlogs users might need and enjoy.

cheers
> > > > > > > > > > > > >         "Post.blog_id" => "2"...
>
> read more »

Redemption

unread,
Sep 10, 2009, 2:55:17 AM9/10/09
to LilBlogs
Yes, I know my question is a little bit weird :D . Thank u again.
cheers.
> ...
>
> read more »
Reply all
Reply to author
Forward
0 new messages