Updated but comments cause errors!

Updated but comments cause errors!

Postby ohmster on Sat Apr 03, 2010 12:06 am

Well, I downloaded the two upgrade zip files, added them to lifetype and allowed overwrite, and it looks nice. Plugins actually work now, version 1.2.8 was just not a good version I guess. The authimage shows and even the smile bar shows (Is it possible to get a full, rich text editing bar when commenting instead of just the plain "textarea" box?). The problem is that the blog owner would like others to comment so there is only one blog user, the owner himself, however, anyone can post a comment. When I try to post a comment in Firefox, it seems to work okay, although the comment failed to actually post properly. It looks good when you submit it, but go back later and only see an error code.

If you try to comment as a non blog user in IE, you see the very same error message right away and never get the chance to actually try and post.

This is the error message:

Topic
Text (Required)
Fatal error: Call to a member function isEnabled() on a non-object in /home/content/j/c/b/jcboutrouille/html/lifetype/tmp/1/%%3F^3F2^3F2BCD9C%%commentform.template.inc on line 18

This happens if the commentform.template has been modified for smilies or if it is original. Line 18 is only an "else" statement.

Section of commentform.template with line numbers:

(15) {if $authuser}
(16) <span id="AuthUser">{$authuser->getUsername()} ({$locale->tr("form_authenticated")})</span>
(17) <input type="hidden" name="userName" id="userNameHidden" value="{if $authuser}{$authuser->getUsername()}{/if}" /></div>
(18) {else}
(19) <input type="text" name="userName" id="userName" value="" /></div>
(20) {/if}

This sucks and we cannot get comments at all now, even though all of the plugins seem to work now with this new version 1.2.10.

When I do a file check, there are many, many files that show up in red as not belonging to that version file set. I only applied the update zip files as recommended by John.

Please help.

Thank you,
Paul
ohmster
 
Posts: 35
Joined: Thu Sep 10, 2009 10:18 am
LifeType Version: lifetype-1.2.8_r6440

Re: Updated but comments cause errors!

Postby jondaley on Sat Apr 03, 2010 12:57 am

1.2.8 was a fine version, and one that we used for quite a while, so I suspect that you have files that weren't uploaded properly or something.
And having files that show up as modified sound bad. Though it might be simply that they were uploaded with the carriage returns modified, etc. You shouldn't have any red files on an installation you didn't modify.

Note that the line 18 the error message is referring to is not for the original template file, but for the file in the tmp directory.

My guess would be that you have a 1.1 version of a plugin or something like that? If you remove all of the plugins (you can leave badbehavior since that is there by default) you shouldn't get that error, and then if you add them back one at a time, you can see which one is causing that error.

This error message has nothing to do with what browser you are using, so I suspect you are seeing a caching issue which is confusing the problem, and making you think it is something like which browser you use when it isn't.

What error code do you see, and what do you mean by "go back later"? If a comment doesn't post, you will see an error code immediately, not later.

Oh, my guess is that you put the smilies stuff inside the {dynamic} tag, which is the one place you can't put plugins.
jondaley
Lifetype Expert
 
Posts: 6142
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch

Re: Updated but comments cause errors!

Postby marcotics on Sat Apr 03, 2010 7:33 pm

I was using a newly installed version 1.2.10, and i get the exact same error when applying the smiley plugin. Searching the lifetype forums here offers a variety of errors wich i think are related to this plugin. Enough reason for me to not use the smiley plugin at this point, as i found no fix or solution.
marcotics
 
Posts: 42
Joined: Wed Mar 17, 2010 1:02 pm
LifeType Version: 1.2.11

Re: Updated but comments cause errors!

Postby ohmster on Sat Apr 03, 2010 10:01 pm

marcotics wrote:I was using a newly installed version 1.2.10, and i get the exact same error when applying the smiley plugin. Searching the lifetype forums here offers a variety of errors wich i think are related to this plugin. Enough reason for me to not use the smiley plugin at this point, as i found no fix or solution.


Thank you. I have had nothing but trouble with what appears to be a very simple, widely used feature, that for some reason or another, was not included in the lifetype software. Somebody made a plugin for it, the smilies are limited and not that great, look at the smilies available here for example. What is this, phpBB by the way? Why yes it is, very good software and coding went into phpBB but a large development team of open source writers worked on it, not sure what the LifeType history is. If jondaley wrote this all by himself, then I have to give the guy a hell of a lot of credit for doing an excellent job!

But enough is enough for me. Smilie plugin is out and not to be used. What I need now is this "global commentform.template file," that you can use for authimage. When I first upgraded to 1.2.10, authimage worked but I had stuff in my default commentform.template file and I do not have a global one that is spoken of on the authimage page here:
http://wiki.lifetype.net/index.php/Plugin_authimage

What the hell are they talking about, "global commentform.template file"? This is what is said about it:

If you're running LifeType 1.2, there is no need to perform any additional steps as long as your blog is using the site-wide commentform.template file located under templates/main/.

Huh? I have no templates/main/ directory and don't see one in the LifeType zip file. Anybody familiar with this or do I need to post a new thread for it?

...time to shitcan smilie plugin once and for all!

Thanks,
Paul
ohmster
 
Posts: 35
Joined: Thu Sep 10, 2009 10:18 am
LifeType Version: lifetype-1.2.8_r6440

Re: Updated but comments cause errors!

Postby marcotics on Sun Apr 04, 2010 6:35 pm

ohmster wrote:
marcotics wrote:I was using a newly installed version 1.2.10, and i get the exact same error when applying the smiley plugin. Searching the lifetype forums here offers a variety of errors wich i think are related to this plugin. Enough reason for me to not use the smiley plugin at this point, as i found no fix or solution.


Thank you. I have had nothing but trouble with what appears to be a very simple, widely used feature, that for some reason or another, was not included in the lifetype software. Somebody made a plugin for it, the smilies are limited and not that great, look at the smilies available here for example. What is this, phpBB by the way? Why yes it is, very good software and coding went into phpBB but a large development team of open source writers worked on it, not sure what the LifeType history is. If jondaley wrote this all by himself, then I have to give the guy a hell of a lot of credit for doing an excellent job!

But enough is enough for me. Smilie plugin is out and not to be used. What I need now is this "global commentform.template file," that you can use for authimage. When I first upgraded to 1.2.10, authimage worked but I had stuff in my default commentform.template file and I do not have a global one that is spoken of on the authimage page here:
http://wiki.lifetype.net/index.php/Plugin_authimage

What the hell are they talking about, "global commentform.template file"? This is what is said about it:

If you're running LifeType 1.2, there is no need to perform any additional steps as long as your blog is using the site-wide commentform.template file located under templates/main/.

Huh? I have no templates/main/ directory and don't see one in the LifeType zip file. Anybody familiar with this or do I need to post a new thread for it?

...time to shitcan smilie plugin once and for all!

Thanks,
Paul


This forum is phpbb indeed, but it's like comparing apples and peanuts, phpbb is a mega project, mega development team, and lifetype is a bit smaller, but jondaley and his team deserve every bit of credit. I was using Blogger.com for moblog features, but they are quitting FTP access. So i was forced to use theyre BlogSpot shit, wich i don't want. Should have used lifetype from the start, if only i knew it was out here.

As for the 'global' commentform.template. I'm just starting to use lifetype a couple of weeks now, i'm no expert, but like to help. The template i use, did not have that file in it. So it got me thinking, where the hell is it, because some plugins required me to edit it. Just did a quick search for it. Guess what? Look under templates/default/ , Commentform.template is the only file in there ;) Modifying it modifies the look and working of my template, so nthis file must be the global one they talk about.
marcotics
 
Posts: 42
Joined: Wed Mar 17, 2010 1:02 pm
LifeType Version: 1.2.11

Re: Updated but comments cause errors!

Postby ohmster on Mon Apr 05, 2010 8:18 am

Agreed, phpBB is a monster project and one cannot compare Lifetype to it. Jondaley did do a fine job with it. The default commentorm.template in default is the one I was working with too. Still not able to get these plugins to do what I want and the red files that show up in the version check bother me, but I guess Jon is too busy to help anymore. He did help me a lot by showing me where the wiki was and there is a LOT of information there. Perhaps I can plod along with the wiki and get done what I need.

Thanks for your comments.
Paul
ohmster
 
Posts: 35
Joined: Thu Sep 10, 2009 10:18 am
LifeType Version: lifetype-1.2.8_r6440

Re: Updated but comments cause errors!

Postby jondaley on Mon Apr 05, 2010 11:16 am

I came to the project in 2003 or so, and have worked 10 hours a week on it since then, though this last year has been busier with my own things, so I am not working as much any more, though I have no plans of stopping work, and I put in some good work on the 2.0 version the other week. I don't check the forums over the weekends, and unfortunately, most of the other developers have run out of time or lost interest for whatever reason. We used to have a good round-the-clock support, as I am the only developer who lives in the US, everyone else was in various countries, so that worked out well.

I've always read every post on the forums, so I will get to it eventually, but it is great to have other help each other out.

ohmster: it sounds like there is some out-dated documentation somewhere - where did you see the reference to "templates/main"? marcotics is right, "templates/default" is the right place, and any changes you make there will show up in all templates (unless the template overrides the commentform.template file (some templates do, so you need to erase the one in the template directory, or set the administration option to look in the default directory before looking in the template specific directory (I believe the default is the other order)).
jondaley
Lifetype Expert
 
Posts: 6142
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch

Re: Updated but comments cause errors!

Postby jondaley on Mon Apr 05, 2010 11:17 am

I'll take a look at the smiley plugin - I wasn't aware that it was broken.
jondaley
Lifetype Expert
 
Posts: 6142
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch

Re: Updated but comments cause errors!

Postby jondaley on Mon Apr 05, 2010 11:26 am

I just posted a comment perfectly fine...

http://jeanclaudearts.com/lifetype/inde ... 2&blogId=1
jondaley
Lifetype Expert
 
Posts: 6142
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch

Re: Updated but comments cause errors!

Postby ohmster on Mon Apr 05, 2010 11:02 pm

jondaley wrote:I came to the project in 2003 or so, and have worked 10 hours a week on it since then, though this last year has been busier with my own things, so I am not working as much any more, though I have no plans of stopping work, and I put in some good work on the 2.0 version the other week. [..]

ohmster: it sounds like there is some out-dated documentation somewhere - where did you see the reference to "templates/main"? marcotics is right, "templates/default" is the right place, and any changes you make there will show up in all templates (unless the template overrides the commentform.template file (some templates do, so you need to erase the one in the template directory, or set the administration option to look in the default directory before looking in the template specific directory (I believe the default is the other order)).


I know that the life of an open source developer is a very hard live. The workload is unbearable and the pay stinks because there is none, other than personal satisfaction and that can be a mighty great reward in itself. I by no means intend to come down on you or be hard on you Jon, and yes, I do believe that you are incredibly busy.

The templates/main thing I am talking about is right on the wiki page where you directed me to go for answers. You advised me to check the wiki and when I did check it for the "authimage" plugin, here:
http://wiki.lifetype.net/index.php/Plugin_authimage

This is what it says in the Configuration section:
If you're running LifeType 1.2, there is no need to perform any additional steps as long as your blog is using the site-wide commentform.template file located under templates/main/.

In LifeType 1.2.10 there is no \templates\main\ but there is a \templates\default\ and I am assuming that is the template in question. But that is not what it says, literally, on the wiki page.

I see that I have two other message reply emails in my inbox so hopefully one of them has to do with hidden input. I cannot get that plugin to work, show a field, provide instructions that make sense to me (So I will know what to expect and see and how to use it). If not, I will post again with specific questions and be patient. Thanks Jon!

Paul
ohmster
 
Posts: 35
Joined: Thu Sep 10, 2009 10:18 am
LifeType Version: lifetype-1.2.8_r6440

Re: Updated but comments cause errors!

Postby jondaley on Tue Apr 06, 2010 8:44 am

fixed the wiki.
jondaley
Lifetype Expert
 
Posts: 6142
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch

Re: Updated but comments cause errors!

Postby ohmster on Tue Apr 06, 2010 10:38 pm

jondaley wrote:fixed the wiki.


Thank you!

Hey, can the LifeType comment form have a rich text toolbar like you get when you make a post or no? It is not really a big thing and I don't want to make a big thing about it, I just saw no option for it. Thanks!

Paul
ohmster
 
Posts: 35
Joined: Thu Sep 10, 2009 10:18 am
LifeType Version: lifetype-1.2.8_r6440

Re: Updated but comments cause errors!

Postby jondaley on Wed Apr 07, 2010 9:49 am

I don't think anyone has written a plugin for that.
jondaley
Lifetype Expert
 
Posts: 6142
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch

Re: Updated but comments cause errors!

Postby ohmster on Wed Apr 07, 2010 9:28 pm

jondaley wrote:I don't think anyone has written a plugin for that.


That would be kind of a cool feature to incorporate into LifeType 1.3 as well as a default set of similes that can be enabled or not, depending upon the blog owner's wishes. Just like they do in phpBB.

But don't take this the wrong way, I LOVE Lifetype, the price is right, the php code is very nicely written, and I can tell that the author really gives a shit about his project and that is quite refreshing. Ahhhhhhh!

No need to reply, I got my answer and you got a couple of slips to drop into the wish list bucket. Thanks Jon.

Paul
ohmster
 
Posts: 35
Joined: Thu Sep 10, 2009 10:18 am
LifeType Version: lifetype-1.2.8_r6440

Re: Updated but comments cause errors!

Postby jondaley on Fri Apr 09, 2010 11:57 am

I took a look at the smiley plugin, and it worked fine for me.
I updated the default template to include the smiley code, so now all that you need to do is to copy the smiley plugin into the directory and enable it (provided your template uses the default/commentform.template and doesn't provide one of its own, which would override the default one.

You can try out my new template here:
http://devel.lifetype.net/svn/plog/plog ... m.template
jondaley
Lifetype Expert
 
Posts: 6142
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch


Return to Other Problems