Suddenly PHP plugins aren't loading functions?

This could be a plugin issue, but as I think it may be more generally a server config failure, posting here.

After making some routine adjustments to MySQL settings, I'm now having an issue with the behavior of certain plugins. For instance, registration - with anti-splog enabled - now fails. At signup, users are redirected to a blank page. Looking at our error logs, I can see why:

2010/12/16 23:53:25 [error] 28680#0: *580936 FastCGI sent in stderr: "PHP Fatal error:  Call to undefined function validate_username() in /home/noisepages/www/wp-content/plugins/buddypress/bp-core/bp-core-signup.php on line 326" while reading response header from upstream, client: 24.215.173.157, server: noisepages.com, request: "POST /makenoise/ HTTP/1.1", upstream: "fastcgi://unix:/dev/shm/php-fastcgi.sock:", host: "noisepages.com", referrer: "http://noisepages.com/makenoise/"<br />

<strike>And, in fact, tail -f /usr/local/nginx/logs/noisepages.error.log and I see we're getting tons of these errors.

Oddly, most stuff is still working fine, but I am getting some errors with fastcgi. All I changed was MySQL query caching, but aside from it not making intuitive sense that would be involved, I'm not sure if it's coincidental (we also rebooted the system).

Generally, what would cause plugins not to find their functions? I'm just trying to work through how to even troubleshoot this.

(As the error suggests, this is an nginx + PHP-FPM setup.)</strike>

Answer to my own question:

This is what happens if caching is enabled *in wp-config* for a plugin like W3TC or wp-supercache, and the plugin gets disabled. Good to know, so rather than delete, editing this. :slight_smile:

  • peterkirn

    Oops, actually, this has still left a lot of problems - the caching setting being wrong may have been a factor, but lots of other issues.

    Symptoms: can't upload media, registration still isn't working (validation fails), validation fails in comments.

    Really unsure what's going on, why it suddenly cropped up for me, or how to begin troubleshooting. Example errors:

    2010/12/17 11:22:56 [error] 28681#0: *971131 FastCGI sent in stderr: "PHP Fatal error: Call to undefined function sc_comp_start() in /home/noisepages/www/wp-content/themes/CDNoise/footer.php on line 13" while reading upstream, client: 66.249.72.100, server: noisepages.com, request: "GET /groups/shameless-plugs/calendar/2010/10/01/ HTTP/1.1", upstream: "fastcgi://unix:/dev/shm/php-fastcgi.sock:", host: "noisepages.com"
    2010/12/17 11:22:58 [error] 28681#0: *971195 FastCGI sent in stderr: "PHP Fatal error: Call to undefined function bb2_display_denial() in /home/noisepages/www/wp-content/plugins/bad-behavior/bad-behavior/core.inc.php on line 64" while reading response header from upstream, client: 188.165.237.96, server: noisepages.com, request: "GET /robots.txt HTTP/1.0", upstream: "fastcgi://unix:/dev/shm/php-fastcgi.sock:", host: "createdigitalmusic.com"

    So there's still some function that isn't loading somewhere.

  • peterkirn

    I'm kind of thinking the PHP session isn't getting started right in the header/footer?

    While this is plugin related, that's what this and the footer point to for me--
    2010/12/17 11:26:35 [error] 28680#0: *973600 FastCGI sent in stderr: "PHP Warning: session_start() [function.session-start]: open(/var/lib/php/session/sess_3mtj1qanaobumtcegshmgshhi5, O_RDWR) failed: Permission denied (13) in /home/noisepages/www/wp-content/plugins/si-contact-form/si-contact-form.php on line 1138" while reading response header from upstream, client: 69.10.181.12, server: noisepages.com, request: "GET /feed/ HTTP/1.1", upstream: "fastcgi://unix:/dev/shm/php-fastcgi.sock:", host: "designingsound.org"