No header in part of plugins caused by s2member, probably

Hello,

Have free s2member installed with bbpress on enfold theme…

Suddenly within admin panel, part of plugins including s2member despaired due to error, the plugin does not valid header…

Error log shows:
[10-Mar-2018 19:59:21 UTC] PHP Fatal error: Uncaught Error: Call to undefined function plugin_dir_path() in /home/domain.com/wp-content/plugins/s2member/s2member-o.php:1
Stack trace:
#0 {main}
thrown in /home/domain.com/wp-content/plugins/s2member/s2member-o.php on line 1

It happened 2nd time, have no idea what is a problem here?

Please assist

Thanks and regards, Mikhail

Something on your site is having a problem, and that is causing s2Member not to work. Try deactivating all your plugins except s2Member and switch to a default theme. Clear all caches. If it works then, you know that it’s a problem with your theme or a plugin. Turn them back on one by one and test to see which is the culprit.

Hello Tim,

Many thanks,

The below the plugin being immediatelly deatctivating when I in to Plugin section of admin bar…:

The plugin admin-bar-disabler/admin-bar-disabler.php has been deactivated due to an error: The plugin does not have a valid header.

The plugin autoptimize/autoptimize.php has been deactivated due to an error: The plugin does not have a valid header.

The plugin basic-user-avatars/init.php has been deactivated due to an error: The plugin does not have a valid header.

The plugin baw-login-logout-menu/bawllm.php has been deactivated due to an error: The plugin does not have a valid header.

The plugin bbpress-private-replies/bbp-private-replies.php has been deactivated due to an error: The plugin does not have a valid header.

The plugin bbpress/bbpress.php has been deactivated due to an error: The plugin does not have a valid header.

The plugin image-upload-for-bbpress/bbp-image-upload.php has been deactivated due to an error: The plugin does not have a valid header.

The plugin imagify/imagify.php has been deactivated due to an error: The plugin does not have a valid header.

The plugin s2member/s2member.php has been deactivated due to an error: The plugin does not have a valid header.

The plugin sidebar-login/sidebar-login.php has been deactivated due to an error: The plugin does not have a valid header.

The plugin updraftplus/updraftplus.php has been deactivated due to an error: The plugin does not have a valid header.

The plugin wp-optimize/wp-optimize.php has been deactivated due to an error: The plugin does not have a valid header.

May be you know which one is causing problem?

Here is the error log info:

PHP Fatal error: Uncaught Error: Call to undefined function plugin_dir_path() in /home/wp-content/plugins/s2member/s2member-o.php:1
Stack trace:
#0 {main}

Have been lost there…

?

That looks like a caching issue to me. Are you running some sort of object caching or server-level caching?

Hello,

I use comet cache (recomended by s2member), auoptinize and wp-optimize.

?

WP Optimize doesn’t do caching. Autoptimize can certainly cause problems, depending on what functionality you have running on your site. You need to clear its cache and then deactivate it. Comet Cache isn’t the cause of thir problem, but you need to clear its cache and deactivate it in order to make troubleshooting possible.

But the sort of caching I was thinking of is caching that is being applied by your host. You need to check with them what caching they are doing.

Thanks a lot, Tim,

Will check with hosting company.