A few problems

5 views
Skip to first unread message

plin25

unread,
Nov 30, 2008, 1:00:32 AM11/30/08
to habari-users
Hi guys,

I have been using Habari for a bit more than a week and loving it, but
I am running into a few problems.

For clarification, I am running Habari 0.52 on NearlyFreeSpeech with
SQLite database

1) I am trying to use the $tag variable, but I am getting a 'variable
does not exist' problem.
2) I am also trying to use the markUp plugin, but nothing is happening
in the admin area.
3) Habari Media Silo is not working for me. I can't upload to it.

Thanks in advance,
Patrick

Colin

unread,
Nov 30, 2008, 4:09:29 AM11/30/08
to habari...@googlegroups.com
Hi Patrick

Welcome to the world of Habari.

I'm commented in line below...

On Sun, Nov 30, 2008 at 6:00 AM, plin25 <pat...@flowoflogic.com> wrote:

Hi guys,

I have been using Habari for a bit more than a week and loving it, but
I am running into a few problems.

For clarification, I am running Habari 0.52 on NearlyFreeSpeech with
SQLite database

1) I am trying to use the $tag variable, but I am getting a 'variable
does not exist' problem.

We're going to need more information on how exactly you are trying to use the $tag variable.  This variable isn't defined by default in the Habari code, so you'd need to do something like assign all tags for a post to $tags within your theme.php and then iterate through the array in the locations you want the tags to be displayed.

Check out the default themes or some of the other downloadable ones to see how other themes do it.
 

2) I am also trying to use the markUp plugin, but nothing is happening
in the admin area.

Sorry, I can't really comment on this one other than suggesting checking the habari logs to see if there's anything specific to this plugin mentioned.


3) Habari Media Silo is not working for me. I can't upload to it.

Sounds like you may not have set the correct permissions or missed step 3 in the installation guide ( http://wiki.habariproject.org/en/Installation#Step_3:_Setting_Filesystem_Permissions)

Run through this step again and check you've got the correct permissions set.

HTH
Colin
 


Thanks in advance,
Patrick





--
Colin Seymour
Blog: http://www.colinseymour.co.uk
Tech Stuff: http://www.lildude.co.uk

rick c

unread,
Nov 30, 2008, 9:42:36 AM11/30/08
to habari-users
Welcome to Habari, Parick.

Your issues with $tag should be taken care of by now.

The version of the markUp plugin that is available for download from
Habari's website is compatible with Habari version 0.6-alpha (svn
head). I don't believe it will work with Version 0.52. There is a
version that you can use, but you would have to view the source code
on habari-extras, navigate to the 0.5-0.3 tag for markUp, then
download the files individually. I can also create a zip file and make
it available from my site by tomorrow if you would like.

Rick
Message has been deleted

Colin

unread,
Nov 30, 2008, 2:53:40 PM11/30/08
to habari...@googlegroups.com
Cool. Good to hear it.


On Sun, Nov 30, 2008 at 7:09 PM, plin25 <pat...@flowoflogic.com> wrote:

Hi Colin, regarding the $tag variable, I was provided an alternate
solution by Richard Cockrum


On Nov 30, 1:09 am, Colin <lild...@gmail.com> wrote:
> Hi Patrick
>
> Welcome to the world of Habari.
>
> I'm commented in line below...
>
> On Sun, Nov 30, 2008 at 6:00 AM, plin25 <patr...@flowoflogic.com> wrote:
>
> > Hi guys,
>
> > I have been using Habari for a bit more than a week and loving it, but
> > I am running into a few problems.
>
> > For clarification, I am running Habari 0.52 on NearlyFreeSpeech with
> > SQLite database
>
> > 1) I am trying to use the $tag variable, but I am getting a 'variable
> > does not exist' problem.
>
> We're going to need more information on how exactly you are trying to use
> the $tag variable.  This variable isn't defined by default in the Habari
> code, so you'd need to do something like assign all tags for a post to $tags
> within your theme.php and then iterate through the array in the locations
> you want the tags to be displayed.
>
> Check out the default themes or some of the other downloadable ones to see
> how other themes do it.
>
>
>
> > 2) I am also trying to use the markUp plugin, but nothing is happening
> > in the admin area.
>
> Sorry, I can't really comment on this one other than suggesting checking the
> habari logs to see if there's anything specific to this plugin mentioned.
>
> > 3) Habari Media Silo is not working for me. I can't upload to it.
>
> Sounds like you may not have set the correct permissions or missed step 3 in

> )
>
> Run through this step again and check you've got the correct permissions
> set.
>
> HTH
> Colin
>
> > Thanks in advance,
> > Patrick
>
> --
> Colin Seymour
> Blog:http://www.colinseymour.co.uk
> Tech Stuff:http://www.lildude.co.uk

plin25

unread,
Nov 30, 2008, 7:01:19 PM11/30/08
to habari-users
Hi Richard,

I tried downloading the entire Revision 1269 from the tracker, and
extracting markUp from it, but it's still not working. I think I'll
wait for your zip file.

Sorry for the trouble,
Patrick

plin25

unread,
Dec 5, 2008, 9:41:54 PM12/5/08
to habari-users
Okay, this is extremely strange

A few days ago MetaSEO tripped balls and stopped working.

I'm apparently getting an 'object does not exist error' on this piece
of code:

if( strlen( $this->theme->post->info->html_title ) ) {


which is making me extremely confused as this worked perfectly before.

Thoroughly befuddled,
Patrick

Matt Read

unread,
Dec 8, 2008, 9:38:41 AM12/8/08
to habari...@googlegroups.com
On Fri, Dec 5, 2008 at 9:41 PM, plin25 <pat...@flowoflogic.com> wrote:
>
> Okay, this is extremely strange
>
> A few days ago MetaSEO tripped balls and stopped working.
>
> I'm apparently getting an 'object does not exist error' on this piece
> of code:
>
> if( strlen( $this->theme->post->info->html_title ) ) {
>

$theme->post is a strange thing, but in some themes it can actually
not be set, or be a Posts object not a Post object. Most likely your
theme is using a custom theme class and theme->post is actually a
Posts object which does not have the 'info' property.
--
Matt Read
http://mattread.com

S-M-G

unread,
Dec 18, 2008, 1:40:18 AM12/18/08
to habari-users
hi guys,

i am having trouble with the media silo too. followed the file
permission instructions, and have tried manually changing the file
permissions on the files folder. but nothing shows up in the admin
area where the images should be displayed.

regarding the tag variable question, i found the tag_slug variable
worked for me. here is a little snippet (thanks to arthus for getting
me going in the right direction) that shows the 5 most recent posts
tagged news (using it in the sidebar):

<?php
$array = array('limit' => '5', 'tag_slug' => 'news', 'status' =>
Post::status('published'));
foreach (Posts::get($array) as $post ) {
echo '<li><a href="' . $post->permalink . '" title="' . $post-
>title . '">' . $post->title_out . '</a></li>' . "\n"; }
?>

anyone have any ideas on how to get media silo working? using version
0.6

cheers
simon
http://www.blizzardboy.net/

Andy C

unread,
Dec 18, 2008, 3:19:44 AM12/18/08
to habari-users
Hi Simon

So are you able to upload files into the media silo but can not see
what you have uploaded ?

Can you see the Root, Browse, Upload and Craete Directory options ?

The thumbnails are stored in '/user/files/.deriv' (not the leading
dot) directory'. Has this directory been created ?

If you have uploaded an image, can you see it in a Web browser using
the full blown URL ?

http://example.com/user/files/<image>.png

Do you have any 'php.ini' or '.htaccess' files in the '/user/files/'
directory ?

0.6 hasn't been released yet so I assume you're running SVN head ?
What revision ?
--
Andy

S-M-G

unread,
Dec 24, 2008, 11:36:05 PM12/24/08
to habari-users
Hi Andy,

> So are you able to upload files into the media silo but can not see
> what you have uploaded ?
No, I can't upload files. I can copy them in there via the command
line.

> Can you see the Root, Browse, Upload and Craete Directory options ?
I can only see the Root option. It links to a # url - is this a
rewrite problem?
If I type something in the box - anything - it either deletes the
current post, or if it is already deleted, publishes it.

> The thumbnails are stored in '/user/files/.deriv' (not the leading
> dot) directory'. Has this directory been created ?
The .deriv dir was created. But it is empty. User / group for files
and files/.deriv are www-data, i changed permissions to 777 to see if
that would help.

> If you have uploaded an image, can you see it in a Web browser using
> the full blown URL ?
>
> http://example.com/user/files/<image>.png
I haven't uploaded any files - I copied a couple in there to test, and
they can be seen.

> Do you have any 'php.ini' or '.htaccess' files in the '/user/files/'
> directory ?
No.
> 0.6 hasn't been released yet so I assume you're running SVN head ?
> What revision ?
0.06-alpha

Thanks for your help with this!

Simon

S-M-G

unread,
Jan 12, 2009, 11:39:54 PM1/12/09
to habari-users
Hi all,

Got it fixed - didn't have GD installed on the server.

apt-get install php5-gd

fixed the problem.

Andy C

unread,
Jan 12, 2009, 11:57:09 PM1/12/09
to habari-users
Thanks for persevering and the resolution.

I have taken the liberty of adding 'GD' to the list of pre-reqs in the
Habari Wiki.

http://wiki.habariproject.org/en/Installation
Reply all
Reply to author
Forward
0 new messages