Textpattern CMS support forum

You are not logged in. Register | Login | Help

#81 2017-04-07 07:29:08

BernieO
New Member
Registered: 2017-04-07
Posts: 1

Re: [plugin] [ORPHAN] peg_nested_comments

Is this plugin compatible with textpattern 4.6.2? I did install it, but couldn’t get it to work with the installation instructions provided on github.com/bloatware/peg_nested_comments

Any help is really appreciated.
Best wishes, BernieO

Offline

#82 2017-04-07 18:43:02

etc
Developer
Registered: 2010-11-11
Posts: 2,363
Website

Re: [plugin] [ORPHAN] peg_nested_comments

Hi Bernie, welcome to the forum.

It looks like the plugin type was wrong, sorry. Please try v.0.2.5


etc_[ query | search | pagination | date | tree | cache ]

Offline

#83 2017-05-28 08:38:45

gilibaus
Member
Registered: 2013-08-14
Posts: 38

Re: [plugin] [ORPHAN] peg_nested_comments

I am trying to uninstall ver 0.2.5 from Textpattern 4.5.7. This is the message I get upon deleting from Plugin tab:

Fatal error: Class ‘Txp’ not found in /home/mhd-01/www.mindfulnessbergamo.net/htdocs/textpattern/lib/txplib_misc.php(615) : eval()’d code on line 1

How can I complete uninstall?

Thanks.

Offline

#84 2017-05-28 12:02:12

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 782
Website

Re: [plugin] [ORPHAN] peg_nested_comments

gilibaus wrote #305782:

How can I complete uninstall?

I can’t reproduce on 4.6 so there could be something wrong anywhere else but If the plugin is still there on a fresh plugins page and you want to force the deletion, you should do it via the db (usually with phpMyAdmin); after removing the plugin row in the txp_plugin table, you’ll also need to remove the peg_children column in the txp_discuss table.


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#85 2017-05-28 13:30:23

gilibaus
Member
Registered: 2013-08-14
Posts: 38

Re: [plugin] [ORPHAN] peg_nested_comments

NicolasGraph wrote #305785:

you should do it via the db (usually with phpMyAdmin); after removing the plugin row in the txp_plugin table, you’ll also need to remove the peg_children column in the txp_discuss table.

Thank you. The same error had appeared upon install. That’s probably why I could not find a peg_children column in the txp_discuss table. My guess is that the installation process had probably aborted before writing that database table.

Offline

#86 2017-05-28 14:45:39

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 782
Website

Re: [plugin] [ORPHAN] peg_nested_comments

gilibaus wrote #305786:

My guess is that the installation process had probably aborted before writing that database table.

Probably.

I think the error comes from the tags registering; it was added in the last compiled file and it calls a class which does not exist before Txp 4.6. without testing it.
You can wrap the related code like so to test if the class does exist:

+ if (class_exists('\Textpattern\Tag\Registry')) {
  Txp::get('\Textpattern\Tag\Registry')->register('peg_comments')
      ->register('peg_reply_to')
      ->register('peg_reply_link');
+ }

…or you can remove this code but it should be updated if you use 4.6+ in the future.
I’m not sure if there are any other differences between peg_nested_comments 0.2.4 and 0.2.5.


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

Board footer

Powered by FluxBB