After updating to the latest s2member version (170524) my site crashed leaving only the following message:
Notice: Use of undefined constant DIR - assumed ‘DIR’ in /home/fairfa9/public_html/wp-content/plugins/s2member/src/vendor/autoload.php on line 5
Warning: require_once(DIR/composer/autoload_real.php) [function.require-once]: failed to open stream: No such file or directory in /home/fairfa9/public_html/wp-content/plugins/s2member/src/vendor/autoload.php on line 5
Fatal error: require_once() [function.require]: Failed opening required ‘DIR/composer/autoload_real.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/fairfa9/public_html/wp-content/plugins/s2member/src/vendor/autoload.php on line 5
The server is using php version 7.1.8. I flushed the OPCache, and found this in the debug.log file:
[29-May-2017 20:12:22] PHP Notice: Trying to get property of non-object in /home/fairfa9/public_html/wp-content/plugins/hide-title/dojo-digital-hide-title.php on line 127
[29-May-2017 20:17:39] PHP Notice: Use of undefined constant DIR - assumed ‘DIR’ in /home/fairfa9/public_html/wp-content/plugins/s2member/src/vendor/autoload.php on line 5
[29-May-2017 20:17:39] PHP Warning: require_once(DIR/composer/autoload_real.php) [function.require-once]: failed to open stream: No such file or directory in /home/fairfa9/public_html/wp-content/plugins/s2member/src/vendor/autoload.php on line 5
[29-May-2017 20:17:39] PHP Fatal error: require_once() [function.require]: Failed opening required ‘DIR/composer/autoload_real.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/fairfa9/public_html/wp-content/plugins/s2member/src/vendor/autoload.php on line 5
[29-May-2017 20:17:45] PHP Notice: Trying to get property of non-object in /home/fairfa9/public_html/wp-content/plugins/hide-title/dojo-digital-hide-title.php on line 127
[29-May-2017 20:17:45] PHP Notice: Use of undefined constant DIR - assumed ‘DIR’ in /home/fairfa9/public_html/wp-content/plugins/s2member/src/vendor/autoload.php on line 5
[29-May-2017 20:17:45] PHP Warning: require_once(DIR/composer/autoload_real.php) [function.require-once]: failed to open stream: No such file or directory in /home/fairfa9/public_html/wp-content/plugins/s2member/src/vendor/autoload.php on line 5
[29-May-2017 20:17:45] PHP Fatal error: require_once() [function.require]: Failed opening required ‘DIR/composer/autoload_real.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/fairfa9/public_html/wp-content/plugins/s2member/src/vendor/autoload.php on line 5
[29-May-2017 20:17:47] PHP Notice: Use of undefined constant DIR - assumed ‘DIR’ in /home/fairfa9/public_html/wp-content/plugins/s2member/src/vendor/autoload.php on line 5
[29-May-2017 20:17:47] PHP Warning: require_once(DIR/composer/autoload_real.php) [function.require-once]: failed to open stream: No such file or directory in /home/fairfa9/public_html/wp-content/plugins/s2member/src/vendor/autoload.php on line 5
I would appreciate any help. Thank you.
Bob