Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

gilibaus
Member
From: Milan, Italy
Registered: 2013-08-14
Posts: 73
Website

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: 860
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