Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2021-04-15 15:10:28

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,269
Website GitHub

Re: Fatal error

A casualty of recent Textpattern architectural changes, I’m afraid. Hack the plugin for now. Look for the _cbe_fa_auth() function and on line 680ish add:

include txpath.'/lib/txplib_admin.php';

That should fix it (untested).

EDIT: I raised an issue on the plugin’s repo.

Last edited by Bloke (2021-04-15 15:14:48)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#14 2021-04-15 15:13:29

gavnosis
Member
From: Milton Keynes, UK
Registered: 2005-03-12
Posts: 151
Website

Re: Fatal error

Sadly, no Bingo noises

Textpattern version: 4.8.5 (fe6df0487f1a92cf562eafddc1260096)
PHP Version 7.3.27

And the same error when I re-enable cbe_frontauth (cbe_frontauth 0.9.7) …but I can’t see this from within my website, and have to directly manipulate the plugin status from PHPMyAdmin, which would seem to suggest a bigger problem

Offline

#15 2021-04-15 15:15:08

gavnosis
Member
From: Milton Keynes, UK
Registered: 2005-03-12
Posts: 151
Website

Re: Fatal error

Sorry, I missed your second piece of magic, and shall hack the plugin now… only I can’t see it??

Any idea what other wheels might have fallen off that I can’t see the installed plugin listed anymore

Last edited by gavnosis (2021-04-15 15:17:45)

Offline

#16 2021-04-15 15:16:32

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,269
Website GitHub

Re: Fatal error

Hmmm, that is worrying. Does Diagnostics say everything else is tickety boo? And is your /texptattern/plugins directory writable?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#17 2021-04-15 15:21:26

gavnosis
Member
From: Milton Keynes, UK
Registered: 2005-03-12
Posts: 151
Website

Re: Fatal error

Pre-flight check All checks passed
textpattern directory has permission 705

And when you say “hmm worrying” I know it’s bad

Oh, hang on you said ‘plugins’ directory: 705 also

The only active plugins are these:

smd_calendar-0.53
smd_gallery-0.62
smd_lib-0.36

What else should I try to even see the ‘Plugins’ listed (This is from diagnostics)

Last edited by gavnosis (2021-04-15 15:43:03)

Offline

#18 2021-04-15 15:27:14

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,269
Website GitHub

Re: Fatal error

Can’t say I’ve ever seen 705 as a permission strategy on a host: that’s a new one! Is there anything in that /textpattern/plugins directory? You should have a subdir per plugin installed.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#19 2021-04-15 15:32:19

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,137
GitHub

Re: Fatal error

gavnosis wrote #329850:

Pre-flight check All checks passed
textpattern directory has permission 705

Switch that to 755.

Makes no sense that everyone has higher access privileges (5) than the owner group (0).

Offline

#20 2021-04-15 15:49:06

gavnosis
Member
From: Milton Keynes, UK
Registered: 2005-03-12
Posts: 151
Website

Re: Fatal error

‘Textpattern’ now has 755

(Thank you, that was going to be my next question)

…and plugins directory the same? (all subdirectories are there per plugin, and at 705)

And do I hack the plugin and leave the original txp_auth.php in place, too?

// -------------------------------------------------------------------
function cbe_frontauth( $atts, $thing = null )
{
    include txpath.'/lib/txplib_admin.php';
    include_once( txpath.'/include/txp_auth.php' ) ;

Last edited by gavnosis (2021-04-15 15:54:36)

Offline

#21 2021-04-15 15:51:07

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,269
Website GitHub

Re: Fatal error

gavnosis wrote #329853:

…and plugins directory the same? (all subdirectories are there per plugin, and at 705)

Yep. Just give that a go and see if things pick up. When you edit+save a plugin from the Admin>Plugins panel, it should write to that dir and you’ll see the relevant datestamps change if the server manages it.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#22 2021-04-15 16:08:36

gavnosis
Member
From: Milton Keynes, UK
Registered: 2005-03-12
Posts: 151
Website

Re: Fatal error

Well, I get a different error now… so sort of progress
(but still can’t see my plugins listed within textpattern itself)

Fatal error: Cannot redeclare send_account_activation()

Offline

#23 2021-04-15 17:26:28

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,269
Website GitHub

Re: Fatal error

gavnosis wrote #329855:

Fatal error: Cannot redeclare

Oops, I meant:

include_once(txpath.'/include/txp_admin.php');

Sorry.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#24 2021-04-15 22:00:44

gavnosis
Member
From: Milton Keynes, UK
Registered: 2005-03-12
Posts: 151
Website

Re: Fatal error

Thank you Stef…

Alas, that revised improvement to Claire’s plugin takes me back to my original error, and I can’t help but think something else is seriously wrong. Why (O-Y-O-Y) would installed plugins not be listed within Textpattern itself (I can see them in the database and also the sub directories on the web server–now with the correct permissions), but on Textpattern itself there are (apparently) none installed :-(

Offline

Board footer

Powered by FluxBB