I have the following problem when I am validating a field with the Advanced Custom Fields plugin in wordpress. What happens is that the field is validated correctly but the error appears on a new page instead of going out on the same page above the field to which I am validating. The code to validate is the following: function validate_fields_contact() { add_filter('acf/validate_value/name=phone_contact', 'validate_phone_number', 10, 4); } function validate_phone_number($valid, $value, $field, $input) { if (!$valid) { return $valid; } if(!preg_match("/^\+XX(\s|\d){8,12}$/", …
I have access to the admin panel, and everything works fine. I can click settings->reading and change anything I want to. But if I click settings->permalinks I get a 500 internal server error. Here's what I've tried: I deleted the .htaccess file - nothing changed. I edited the .htaccess (because I am migrating this site to a new domain) and now I have all the page links working on the front end AND all the admin links EXCEPT permalinks. In …
calling admin-ajax.php via jquery ajax calls were failing from my site but postman calls to the same url were successfull. After some looking at headers it seems that the referer being set is the difference that calls the failure (500). What would possibly cause admin-ajax.php to care about whether or not a referer is being sent and fail if it is? The error logs just say that memory is running out but why would the referer header change how much …
Edit: I have fixed my original issue, please skip to the body for my last remaining issue. I need to make a plugin. That displays an input field to the user, takes that input field data and passess it to a php function, and then reloads that page and displays what ever the user has typed in. What I have in my plugin file function testytest($val1,$val2) { return $val1; } function awepop_add_view() { $idPageToTest = 55; if ( isset($GLOBALS["post"]) && …
So my wordpress site keeps going down from a 500 error, about once a day now. The entire site, including the wp-admin, will go down and stop responding to all requests with a 500 error. If I enable WP_Debug I only get a warning: Warning: Illegal offset type in ...../wp-includes/cron.php on line 99 The warning is the ONLY thing that appears on the site when WP_Debug is enabled, nothing else. All requests are blank except for that warning. When I …
After our hosting provider moved our site to a new Windows 2016 server I have been struggling with an intermittent error: PHP Notice: Undefined index: a:1:{s:3:"ssl";b:1;} in E:\WebContent\site-name\wp-includes\class-requests.php on line 213 We see this occasionally on the login screen. A refresh of the browser will usually fix it. The rest of the site seems to be running fine. This happens EVERY TIME when I try to update plug-ins or WordPress. Based on reading many posts, it seems to be an …
I have a multi-site Wordpress installation for a client, and for one of the forms I need to do some manual database interaction as the feature is separate. The problem I'm having however, is that any simple PHP script I uploaded to anywhere on the site is throwing an "end of script output before headers" error according to the logs. The script is literally only echo-ing "hello world", and the permissions are set to 755. Is there something to do …
Recently, without changing anything on my website, Google search console started flagging 80 index coverage errors, shown as "Server error (5xx)". When I go look into it, what it's flagging are php files in the /wp-includes/ folder, which Google shouldn't be even trying to index. My xml sitemap doesn't include these files. I don't understand why google is trying to index and then flagging them. Any ideas on why this is happening and what I can do to stop it?
I am getting 502/ 504 errors on the website randomly, and have tried all the methods to debug the issue but unable to fix it When getting 5xx errors, I tried renaming the plugins folder to check if website is loading, and is loading. Then I tried installing each plugin one by one to find the faulty plugin but unable to find any issue as all plugins are being installed successfully but after some time it is throwing 5xx errors. …
new here and to wordpress plugins development, go easy on me :D Anyway, I am trying to create a new plugin and I am getting a 500 error. I changed WP_DEBUG in config.php to true in order to see what is causing the 500 error and got this message: Fatal error: Uncaught Error: Call to undefined function is_woocommerce() in... This is my code currently: <?php /** * Plugin Name: * Plugin URI: * Description: * Author: * Author URI: * …
The error I am getting is: Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wptexturize' not found or invalid function name in /home/ifd6vop3yes7/public_html/thematchcandleco.com/wp-includes/class-wp-hook.php on line 294 Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wptexturize' not found or invalid function name in /home/ifd6vop3yes7/public_html/thematchcandleco.com/wp-includes/class-wp-hook.php on line 294 Fatal error: Uncaught Error: Call to undefined function wptexturize() in /home/ifd6vop3yes7/public_html/thematchcandleco.com/wp-includes/general-template.php:1240 Stack trace: #0 /home/ifd6vop3yes7/public_html/thematchcandleco.com/wp-includes/general-template.php(1261): wp_get_document_title() #1 /home/ifd6vop3yes7/public_html/thematchcandleco.com/wp-includes/class-wp-hook.php(292): _wp_render_title_tag('') #2 /home/ifd6vop3yes7/public_html/thematchcandleco.com/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array) #3 /home/ifd6vop3yes7/public_html/thematchcandleco.com/wp-includes/plugin.php(484): WP_Hook->do_action(Array) #4 /home/ifd6vop3yes7/public_html/thematchcandleco.com/wp-includes/general-template.php(3009): …
I suddenly can't access company.co.za/wp-admin, as it redirects to http://company.co.za/wp-login.php?redirect_to=http%3A%2F%company.co.za%2Fwp-admin%2F&reauth=1 with error 500 What should I do to resolve this? I know I can try disabling all plugins, but how do I do that without loggin into wp dashboard? Is there some other step I should take? Thank you
A new client of me can't login to his old(er) Wordpress website: wp-login gives a 404 error and wp-admin gives a 500 error. Here are the links (removed) I came across this issue before, but this time nothing seems to help. What I have tried so far (one by one so they don't affect eachother): rename plugins-folder through ftp rename active theme folder through ftp rename .htaccess file added the following lines of code to wp-config.php: define('WP_HOME','https://###'); define('WP_SITEURL','https://###'); I have …
I uploaded a brand-new wp install to my host. I am able to access the admin, and all its settings just fine, but I get a 500 internal error on the front-end. I have tried solving this issue by: checking .htaccess checking wp-config.php checking for missing core files doing a permalink reset checking file permissions switching themes disabling all plugins using a default theme server config (i have a vps with other sites working just fine under the same config). …
I have inherited a wordpress site that mysteriously broke the dev in charge left and I'm helping to piece together what's going wrong. I told my PM that I have experience as a wordpress user and he's like, "You're on this project." So here I am trying to figure it out. I am a software engineer with decades of experience, but not wordpress dev. So when I hit the site from the root I get a 500 error. How do …
I’ve got a pretty weird behavior on my site that I’d like to resolve. From time to time (no recognized pattern), my site shows a 500 error, on the front pages or on some admin pages. When this 500 error shows on the front pages, the admin pages are still usable. I’ve found by chance a way to fix this: by going to the Permalinks settings page (/wp-admin/options-permalink.php) without submitting anything! The simple fact of going to this page resolves …
I have a single Wordpress 4.9.16 website that is throwing Error 500s when taking many actions in the admin interface. When I try to do things like add a new category, nothing happens in the front end and my web inspector shows the error. I have tried: Renaming my .htaccess file and letting WP rebuild a new one Increasing Wordpress memory limit Increasing PHP memory limit Disabling all plugins Re-uploading core files in wp-admin and wp-includes And after taking each …
We are facing this error: PHP Fatal error: Uncaught Error: Call to undefined function get_locale() in /var/www/html/wp-includes/l10n.php:137 Stack trace: #0 /var/www/html/wp-includes/l10n.php(828): determine_locale() #1 /var/www/html/wp-includes/class-wp-fatal-error-handler.php(46): load_default_textdomain() #2 [internal function]: WP_Fatal_Error_Handler->handle() #3 {main} thrown in /var/www/html/wp-includes/l10n.php on line 137 The error occurs since the major update to 5.5, or 5.5.1 respectively. A hotfix we found is replacing the l10n.php file on the webserver with the freshly downloaded one from wordpress, but after some time (roughly a day) the error will come up …
So I've got the dreaded error too it seems. Apparently it's a very common issue but I can't really seem to get a hang on the fix. One of the plugins my theme uses is causing the error as per the log I got in the email WordPress sent to my admin email. Here's the full log Error Details ============= An error of type E_ERROR was caused in line 8 of the file /home/younited/domains/younitedsupport.com/public_html/wp-content/plugins/rb-essentials/metaboxes/rb_metaboxes.php. Error message: Uncaught Error: Call to …