• Resolved Chris Anderson

    (@bluecaboosestudio)


    After I hit submit I get a 500 Server Error in Chrome, or a blank page in Firefox. I removed the full address from the error, but my server log says “PHP Fatal error: Call to a member function wp_rewrite_rules() on null in [address removed]/rewrite.php on line 449” I tried copying the signup sheet and using the new one, and it allowed me to signup once, then 500 errors every time after that. I tried disabling permalinks in WordPress and reviewing my .htaccess file for errors. I’ve used the plugin without problems in the past on the same server, so I can’t think of what’s changed except WP/plugin versions. I’m not sure where to go with this one and was wondering if you had any ideas.

    https://ww.wp.xz.cn/plugins/pta-volunteer-sign-up-sheets/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Chris Anderson

    (@bluecaboosestudio)

    I forgot a link to the page here, the signup sheet is in the middle. http://ddsdogtraining.com/event/dream-big-training-center-workshop-3516/

    Plugin Author DBAR Productions

    (@dbar-productions)

    I have no idea what’s going on there.

    I opened Firebug in Firefox, and there are quite a few things happening in the background after the page is loaded… some ajax stuff happening, Google Maps, lots of content from Cloudflare, etc…

    I did a test signup, and although the resulting page is blank, I can see with the developer tools that all the POST fields had been set correctly.

    The rewrite.php is in the includes folder for WordPress, in the url_to_postid function, and it is somehow getting called while the global $wp_rewrite object has not been created yet, because that is what is being referenced in line 449 that you mentioned in your error.

    Perhaps some of the posted fields from my plugin, or the query variables in the URL, are confusing one of the other plugins? It’s totally crapping out before WordPress headers are sent, so that’s about the only thing I can think of. The function in my plugin that processes the signup form is attached to the WordPress wp_loaded action hook, but doesn’t create any output of its own (stores results in a class variable which are then displayed when the shortcode function is called… but, we aren’t making it that far).

    At this point, you probably need to do a process of elimination, turning off a bunch of those other plugins that are loading all the extra stuff on that page… or, turning off all plugins except mine, and then turning them on one at a time and testing again until the problem happens again… at which point you will know what is conflicting, and then I could try installing the same plugin on my system to see if I could recreate the issue and have access to error logs and such.

    Also, you say it worked before on the same server, but has it worked at all on this particular site yet? If so, what changed since it was working? If it hasn’t worked on this particular site, then we definitely need to figure out what the conflict is… most likely a plugin or theme.

    Thread Starter Chris Anderson

    (@bluecaboosestudio)

    Narrowed it down to a conflict with Anti-Spam by CleanTalk. Must have been an update to that plugin that caused it since I was using the same site & plugins (as far as I can recall) since the last signup sheet that worked. Eventually I’ll need to be able to use that plugin again, but at least I can get this event covered and debug it more after everyone signs up. Hopefully Akismet can handle the spam by itself for awhile… I’ll post back if I find out exactly what’s going on. Thank you for the suggestion!

    Plugin Author DBAR Productions

    (@dbar-productions)

    My signup form has a simple, honey pot style spam protection. There’s a hidden text input named “website”. If that’s filled with the form is posted, you’ll get a spambot error message. Perhaps that other plugin is seeing the hidden input field on my form (which would be empty when submitted)?

    Hello,

    we have updated Anti-spam by CleanTalk to fix issue with 500 Server Error. Please update the plugin via WordPress console or use this,

    https://downloads.wp.xz.cn/plugin/cleantalk-spam-protect.5.36.1.zip

    Does it help?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Server Error’ is closed to new replies.