Here’s what worked for me: My Hostgator WordPress site was throwing the same error until I commented out the top-level .htaccess
file. Like so:
My website is a subdomain, so it had it’s own .htaccess
, so that’s where the php version was specified (cpanel did this automatically). I didn’t have to edit wp-config.php
or anything else.
In the comments of this post is where I found this solution:
https://wordpress.org/support/topic/php-7-3-errors/#post-12720824
Related Posts:
- Notice: Constant already defined in wp-config.php on (non-existent) line?
- WordPress White Screen Error
- Should I use spl_autoload_register() in my plugin?
- WP-CLI – Selecting PHP version
- error_log() output for print_r() appearing on page
- When to use Exceptions vs Error Objects vs just plain false/null
- Hide php Notices in Dashboard
- WordPress “Link has expired” error on updating posts
- How To Make Connection To WordPress Data Base In A Plugin?
- Fix 403 error on WordPress multisite network using subdomains
- error_log is not working as expected in functions.php file
- “Can’t use function return value in write context” error
- Fatal error: Call to undefined function wpsc_cart_item_count()
- Why when I instantiate wp_error in a validation method my user registration method stops working?
- Error when requesting password reset email – wp authentication
- “Notice: Undefined variable: content” is showing [closed]
- No wp-config.php file on local install of wordpress – site still displays
- After upgrading to PHP 7.0 my contact form outputs error
- How can I change WordPress domain from remote to localhost?
- Why am I getting ERR_NAME_NOT_RESOLVED when I add a site to my multisite installation? [closed]
- integrating external php library into wordpress- the right way
- Does WordPress have a built in reference to the PHP version its running under? [closed]
- Force SSL using FORCE_SSL_ADMIN
- How can I resolve the php notice “Constant EMPTY_TRASH_DAYS already defined”
- How to find error in my code when the error message is pointing to WP core file?
- get_term_link() returns correct – But illogical error-messages disturb
- PHP Warning: Attempt to read property “term_id” on bool
- Mute Debug Messages from Plugins
- WordPress Script stops suddenly
- A non-numeric value encountered in /wp-includes/functions.php on line 68
- Error on wp_default_style After upgrade to php 7
- Getting error when using wp_insert_post()
- Error: options page not found
- Headers already sent in Pluggable.php / homepage and wp-login error
- Which is the correct way to conditionally enqueue a CSS file?
- “Undefined index” error when saving empty array with checkboxes
- How to add API security keys into JS of wordpress securely
- What is the difference in the WP memory limits?
- Preg_Match(): compilation failed unknown property name
- Warning: Illegal string offset on theme options page [closed]
- customize wordpress database error page
- PHP if statement works in template files, but not header
- PHP-warning in post-template.php and no loading content on pages
- How to end a while loop when used in a fetch assoc function [closed]
- After adding my website to a new server, I keep getting a unexpected end of file error, but the file is identitcal to it’s original source
- Parse error: syntax error, unexpected ‘}’ [closed]
- Array to string conversion error in PHP 7.2 when returning user role as class
- javascript variable to wordpress php variable
- PHP E_WARNING being shown despite php.ini [closed]
- Angular not defined [closed]
- How to decrease the max file upload size without using php.ini or htaccess?
- Trying to display terms from custom taxonomy within function
- Help with accessing wp-admin page and resolving error messages
- Blog suddenly shows Archive instead of index page
- Programmatically revert to backup .htaccess a possibility?
- Prevent post from being published and show error
- Illegal string offset in PHP function in via Theme Customizer
- Cannot find the php_ini configuration file to find my error log to see why my code is not working
- Fatal error login WordPress [duplicate]
- I am having errors with checkout on wordpress
- Intermittent 503 Service Unavailable Error
- How can I redefine WordPress wp-content directory programmatically?
- Trying to get property ‘ID’ and ‘post_author’ of non-object error
- HELP: cannot log into wordpress. PHP error
- PHP error on local server install
- WordPress files break if I edit them, but adding a closing PHP tag fixes it
- Site title not showing. Please help me
- PHP Error in WordPress Theme
- WordPress database error only while loading page for 1st time
- This occurs when I open admin or front on localhost
- Is there a way to search for a missing endif?
- Serve cookie free URLs in WordPress without using a CDN
- style.min.css code issue
- Local WordPress from Git repo, where to set document root?
- PHP is_embed error showing up
- How to send logs to plugin owner for a plugin?
- WordPress 3.0 PHP Error – notice WordPress_product_Type was called incorrectly
- I changed the password for the database user of my website, updated wp-config.php and wordpress asks to be reinstalled
- Resource 404 error on multisite subdirectory install
- Headers Already Sent
- Too few arguments for printf() [closed]
- syntax error unexpected ‘}’ at 364 line
- WordPress won’t display errors at all
- Troubleshooting “loopback requests that take too long”
- Data inserted in database, but ajax calls error function
- Parse error: syntax error, unexpected ‘}’ in C:\wamp64\www\Proiect\aplicatie\user_check.php on line 18 [closed]
- Query Concatenation
- What does that mean: cannot use a scalar value as an array [closed]
- problem with php function error
- How to handle PHP parse errors?
- PHP warning Invalid argument supplied for foreach() on custom page template
- wordpress.org disallowing my plugin becuase of loading core files in cron cpanel file
- Please help! Parse error: syntax error, unexpected ‘
- Not able to see the error [closed]
- PHP warning $post->ID is null
- Changing WP_MEMORY_LIMIT doesn’t affect actual memory limit
- Execute multiple PHP Snippets causes error?
- Use of undefined constant issue
- WordPress 6.1.1 shows deprecated errors with PHP 8.1 & 8.2
- WordPress @include( ‘template-config.php’ );