Website and server errors, and how to fix them
Site down or an error on screen? Find the message here: the cause, the fix step by step, and how to stop it coming back.
127topics
Most searched
- 500500 Internal Server Error: how to find the cause and fix itA 500 Internal Server Error is a generic message meaning the server hit an unexpected error while handling the request and couldn't finish the page. On hosting accounts the usual causes are a bad line in .htaccess, a PHP fatal error from a plugin or theme, an exhausted memory_limit, or wrong file permissions. The real reason is written in the error log.
- How to fix "Error establishing a database connection" in WordPress
- ERR_TOO_MANY_REDIRECTS: an endless redirect loop
- 508508 Resource Limit Is Reached: your site hit its resource limits
- Why are my emails going to spam?
HTTP status codes
22- 400400 Bad Request: causes and fixesA 400 Bad Request error means the server received a request it could not understand or process because something in it is malformed. The usual culprits are corrupted or oversized cookies, a badly formed URL, or invalid data sent by an app or API client.
- 401401 Unauthorized: why the site asks you to log inA 401 Unauthorized error means the server wants proof of who you are before showing the page, and it didn't receive a valid username and password or access token. Fix it by entering the right credentials, removing the folder protection in cPanel, or sending a correct Authorization header with API requests.
- 403403 Forbidden: why the server won't show the pageA 403 Forbidden error means the server understood the request but refuses to fulfil it because you're not allowed to access that file or folder. On hosting accounts it is usually caused by wrong file permissions, a missing index file, a deny rule in .htaccess, or a firewall block.
- 404404 Not Found: the page doesn't existA 404 Not Found error means the server is working but found no page or file at the requested URL. Common causes are a mistyped link, a page that was deleted or moved, files uploaded to the wrong folder, or missing WordPress rewrite rules.
- 405405 Method Not AllowedA 405 Method Not Allowed error means the server found the URL but doesn't accept the HTTP method used, for example a POST sent to a route defined for GET only. Fix it by matching the method to the route definition, or by avoiding redirects that turn POST into GET.
- 408408 Request Timeout: the request took too long to arriveA 408 Request Timeout means the server waited for the browser or app to finish sending its request, then closed the connection because it took longer than allowed. It's usually caused by a slow or unstable connection or a large upload, not by a slow website.
- 413413 Request Entity Too Large: the upload is over the limitA 413 Request Entity Too Large error means the data you sent, usually an uploaded file, is bigger than the server or a proxy in front of it accepts. Fix it by raising PHP limits such as upload_max_filesize and post_max_size, uploading another way such as FTP, or making the file smaller.
- 414414 URI Too Long: the URL is over the limitA 414 URI Too Long error means the URL, including the parameters after the ?, is longer than the server is willing to read. It's usually caused by sending large data in the URL with a GET request, or by a redirect loop that adds parameters each time. Move the data into a POST request body.
- 429429 Too Many Requests: too many requests too fastA 429 Too Many Requests error means something, the site's server, a firewall or an API, allows only a set number of requests in a time window and you went over it. Visitors should wait and retry later; site owners should find the source of the excess requests, limit it, and add backoff to their code.
- 500500 Internal Server Error: how to find the cause and fix itA 500 Internal Server Error is a generic message meaning the server hit an unexpected error while handling the request and couldn't finish the page. On hosting accounts the usual causes are a bad line in .htaccess, a PHP fatal error from a plugin or theme, an exhausted memory_limit, or wrong file permissions. The real reason is written in the error log.
- 501501 Not ImplementedA 501 Not Implemented error means the server doesn't support the functionality needed to fulfil the request. Most often it doesn't recognise the HTTP method at all, or an app returns 501 for a feature that isn't built yet. Fix it by using a standard method, running the app on a real application server, or finishing the missing code.
- 502502 Bad Gateway: an invalid response from the backendA 502 Bad Gateway error means a server acting as a gateway or proxy passed the request to the server or app behind it and got an invalid response, or the connection dropped. It's usually an app that stopped or crashed mid-request, such as Node.js, Python or a PHP process, or a problem between Cloudflare and your server.
- 503503 Service Unavailable: the service is temporarily downA 503 Service Unavailable error means the server is running but can't process the request right now, because it's in maintenance mode, the site has hit its resource limits, or the app behind it is temporarily unavailable. It's temporary by nature and is fixed by removing the load or finishing the maintenance.
- 504504 Gateway Timeout: the response didn't arrive in timeA 504 Gateway Timeout means a gateway or proxy, such as Cloudflare or the web server, passed the request to the server or app behind it and waited, but no response arrived before the timeout. It's usually a slow script, a heavy database query, or an external API call that never answers.
- 508508 Resource Limit Is Reached: your site hit its resource limits508 Resource Limit Is Reached appears on CloudLinux servers when a hosting account hits one of its LVE resource limits, most often Entry Processes, the number of requests handled at the same moment. Fix it by finding the heavy plugin or process, enabling caching, blocking abusive traffic, or moving to a plan with more resources.
- 520Cloudflare error 520: Web server is returning an unknown errorCloudflare error 520 means Cloudflare connected to your origin server but got back an empty, unknown or unexpected response. It's a catch-all that usually points to a process crashing on the server mid-response, a firewall cutting Cloudflare's connections, or headers that are too large.
- 521Cloudflare error 521: Web server is downCloudflare error 521 means Cloudflare tried to connect to your server and the server refused, so no web server accepted the request on that address and port. It's usually a wrong IP in the A record after a migration, a firewall refusing Cloudflare's IPs, or a stopped web server.
- 522Cloudflare error 522: Connection timed outCloudflare error 522 means Cloudflare tried to open a connection to your server and the server didn't answer in time, or accepted it and then never responded to the request. It's usually a server or account under heavy load, a firewall silently dropping Cloudflare's connections, or an A record pointing to an address that doesn't respond.
- 523Cloudflare error 523: Origin is unreachableCloudflare error 523 means Cloudflare can't find a route to your origin server, so it can't even start a connection. It's usually an A or AAAA record in Cloudflare pointing to a wrong, old or private IP address, a server that's offline, or a routing problem between Cloudflare and the data center.
- 524Cloudflare error 524: A timeout occurredCloudflare shows error 524 when it connected to your origin server but didn't receive an HTTP response within its timeout, about 100 seconds by default. The usual cause is a slow script or database query; the fix is to speed it up or move the long task to the background.
- 525Cloudflare error 525: SSL handshake failedCloudflare shows error 525 when it tries to open an HTTPS connection to your origin server in Full or Full (strict) mode and the SSL handshake fails. The most common cause is that the server has no certificate for the domain; the fix is to issue one on the server and keep the mode on Full (strict).
- 526Cloudflare error 526: Invalid SSL certificateCloudflare shows error 526 when SSL mode is Full (strict) and the certificate on your origin server isn't valid: it has expired, is self-signed, or doesn't cover the hostname. The fix is to install a valid certificate on the server, such as a free AutoSSL one, not to lower the encryption mode.
Browser messages
11- "This site can't be reached": what it means and how to fix it"This site can't be reached" is a general heading Chrome shows when it fails to connect to a site; the real cause is the code printed underneath, such as DNS_PROBE_FINISHED_NXDOMAIN, ERR_CONNECTION_TIMED_OUT or ERR_CONNECTION_REFUSED. Read the code first: it tells you whether the problem is DNS, the network or the server.
- ERR_ADDRESS_UNREACHABLE: the address can't be reachedERR_ADDRESS_UNREACHABLE means your device found no network route to the site's IP address, so the request never reached the server. The cause is usually the visitor's connection, such as the router, a VPN or a local network, or a DNS record pointing to a wrong address, like a private network IP or a broken IPv6 record.
- ERR_BLOCKED_BY_CLIENT: the browser blocked the requestERR_BLOCKED_BY_CLIENT means the browser itself stopped a file or request from loading, usually because of an ad blocker or privacy extension. It doesn't come from the server; it typically shows in the DevTools Console for files that look like ads or tracking, and it can break part of a page.
- ERR_CACHE_MISS and Confirm Form ResubmissionERR_CACHE_MISS is a Chrome message that usually appears when you go back to or reload a page produced by a form submission (POST): the browser has no saved copy, so it asks you to confirm sending the data again. Visitors can reload and confirm; the lasting fix for site owners is to redirect after processing the form (the Post/Redirect/Get pattern).
- ERR_CONNECTION_REFUSED: the server refused the connectionERR_CONNECTION_REFUSED means your browser reached the server's address, but the server rejected the connection on the requested port, either because nothing is listening there or because a firewall refused it. Start by checking the URL, port and proxy settings; site owners should then check DNS records and server status.
- ERR_CONNECTION_RESET: the connection was resetERR_CONNECTION_RESET means the connection to the site started and was then cut off before the page finished loading, because one side sent a reset signal (TCP RST). The cause can be on the visitor's side, such as antivirus, a VPN or a network blocking the site, or on the server, such as a crashed process or a security rule stopping the request.
- ERR_CONNECTION_TIMED_OUT: the site took too long to respondERR_CONNECTION_TIMED_OUT means your browser tried to connect to the server and got no reply before the timeout, so it gave up. It happens when the visitor's IP is blocked, the domain points to the wrong address, the server is down or overloaded, or the visitor's network has a problem.
- ERR_EMPTY_RESPONSE: the site didn't send any dataERR_EMPTY_RESPONSE means the browser connected and sent its request, but the server closed the connection without sending anything back. Usually the process handling the request died on the server because of a PHP error, a resource limit or a timeout; sometimes antivirus or a browser extension on the visitor's side is to blame.
- ERR_HTTP2_PROTOCOL_ERROR in ChromeERR_HTTP2_PROTOCOL_ERROR means Chrome received a response from the server that broke the HTTP/2 protocol rules, or the response was cut off midway, so it refused to show the page. Usually the cause is invalid headers or a truncated response from a server-side error or timeout; sometimes it's antivirus inspecting HTTPS on the visitor's device.
- ERR_NAME_NOT_RESOLVED: the server's IP address could not be foundERR_NAME_NOT_RESOLVED means the browser couldn't translate the domain name into an IP address, so it didn't know which server to contact. The cause is either a typo, a domain that has expired or lacks correct DNS records, or a DNS problem on the visitor's device or network.
- ERR_TOO_MANY_REDIRECTS: an endless redirect loopERR_TOO_MANY_REDIRECTS means the site keeps redirecting the browser from one URL to another in a loop, so the browser gives up after a number of hops. The usual causes are Cloudflare's Flexible SSL mode combined with forced HTTPS on the server, conflicting .htaccess rules, or mismatched WordPress URLs. The fix is one redirect rule and Full (strict) mode.
SSL and certificates
10- ERR_SSL_PROTOCOL_ERROR: this site can't provide a secure connectionERR_SSL_PROTOCOL_ERROR means the browser couldn't set up a secure (HTTPS) connection with the site because the server's answer wasn't a valid TLS connection. The usual cause is that no SSL certificate is active for the domain on the server, or the domain points to the wrong server; on the visitor's side, a wrong device clock or antivirus intercepting traffic.
- ERR_SSL_VERSION_OR_CIPHER_MISMATCH: unsupported protocolERR_SSL_VERSION_OR_CIPHER_MISMATCH means the browser and the server couldn't agree on a shared TLS version or cipher, so the secure connection stopped before it began. It usually happens with a server that only supports old versions like TLS 1.0, or when there's no certificate for the requested name, including a new Cloudflare domain whose certificate isn't active yet.
- How to fix "Your connection is not private""Your connection is not private" appears when the browser can't validate a site's SSL certificate, because it expired, was issued for a different name, isn't from a trusted authority, or your device clock is wrong. The site owner fixes it by installing a valid certificate for the domain; visitors shouldn't enter sensitive data until then.
- How to fix a mixed content warningA mixed content warning appears when a page loads over HTTPS but requests files such as images, scripts or fonts over unencrypted http://. Browsers block scripts and stylesheets, so parts of the page break; the fix is to replace every http:// URL with https://.
- NET::ERR_CERT_AUTHORITY_INVALID: the certificate issuer isn't trustedNET::ERR_CERT_AUTHORITY_INVALID means the browser doesn't trust the authority that issued the site's SSL certificate, because it's self-signed, it's a Cloudflare Origin certificate being reached without Cloudflare, or the certificate chain is incomplete. The fix is a certificate from a trusted authority, such as AutoSSL or Let's Encrypt, installed with its full chain.
- NET::ERR_CERT_COMMON_NAME_INVALID: the certificate doesn't match the site nameNET::ERR_CERT_COMMON_NAME_INVALID means the SSL certificate the server presented was issued for a different name than the one you opened, for example a certificate for example.com when you visit www.example.com or a subdomain. The fix is a certificate covering every name you use, and making sure the domain points to the right server.
- NET::ERR_CERT_DATE_INVALID: an expired certificate or a wrong clockNET::ERR_CERT_DATE_INVALID means the SSL certificate the site presented is outside its validity period according to your device's clock: either it really expired and wasn't renewed, or the device's date is wrong. If many devices see it, the problem is the site, and the fix is renewing the certificate on the server.
- SSL handshake failed: causes and fixes"SSL handshake failed" means the negotiation that precedes an encrypted connection broke down: the two sides couldn't agree on a TLS version or cipher, or the server didn't present a valid certificate for the requested name. Start by checking the certificate on the server, then the client's TLS version, then any proxy such as Cloudflare.
- Why AutoSSL failed to issue an SSL certificate, and how to fix itAutoSSL fails to issue a certificate when it can't complete Domain Control Validation. The usual reasons are that DNS doesn't point to the server yet, a CAA record doesn't allow Let's Encrypt, or an .htaccess rule blocks the validation file. Fix the cause, then click Run AutoSSL.
- Why does the browser say "Not secure" next to your site?Browsers show "Not secure" next to the address when a page loads over unencrypted HTTP or when its SSL certificate is invalid. The fix is to issue an SSL certificate for the domain, redirect all traffic to HTTPS, and update any internal links that still use http://.
Domain and DNS
5- Changed your nameservers but nothing happened? Here's whyA nameserver change usually looks stuck because of propagation: the extension's servers and ISP resolvers keep the old values cached for up to 24-48 hours. If it takes longer, check that you changed them at the registrar rather than inside a DNS zone, that the domain isn't locked against updates, and that no old DS record remains.
- Domain not pointing to your hosting: causes and fixesA domain isn't pointing to your hosting when its DNS records return an IP address other than your server's, or nothing at all. It usually happens because the nameservers weren't changed at the registrar, the A record is wrong, or the change hasn't propagated yet. Fix the nameservers or A record, then verify with a DNS lookup tool.
- How to fix "DNS server isn't responding""DNS server isn't responding" means your device sent DNS queries and got no reply, so it can't look up websites even though the network connection works. The problem is usually the router, the ISP's DNS server or local settings; the quickest fix is restarting the router, then switching DNS to 1.1.1.1 or 8.8.8.8.
- How to fix DNS_PROBE_FINISHED_NXDOMAINDNS_PROBE_FINISHED_NXDOMAIN means a DNS server answered that the domain doesn't exist (NXDOMAIN), so the browser never learned the site's IP address. The cause is either on the visitor's side, like a typo or stale DNS cache, or the owner's side, like an expired domain, wrong nameservers or a missing A record.
- What does DNS SERVFAIL mean, and how do you fix it?SERVFAIL is a DNS response meaning the resolver tried to get an answer for the domain and failed, not that the domain doesn't exist. The usual causes are a DNSSEC problem (a DS record that doesn't match the zone's keys), nameservers that don't answer or don't know the domain, or a wrong glue record. Diagnose it with dig +cd, then by querying the nameservers directly.
WordPress
17- Cannot modify header information - headers already sent: how to fix itThis warning means a PHP file printed output, even a single space, before WordPress sent HTTP headers such as a redirect or a cookie. The guilty file is the one after "output started at" in the message; the fix is usually removing whitespace before <?php or after ?>, or saving the file without a BOM.
- How to fix "Briefly unavailable for scheduled maintenance" in WordPress"Briefly unavailable for scheduled maintenance. Check back in a minute." appears while WordPress or its plugins update, because WordPress creates a temporary .maintenance file in the site folder. If the update is interrupted, the file stays and so does the message; delete .maintenance in File Manager, then rerun the update that stopped.
- How to fix "Error establishing a database connection" in WordPress"Error establishing a database connection" appears when WordPress fails to connect to its database. The most common cause is wrong credentials in wp-config.php after a migration or password change; others are a user without privileges on the database, corrupted tables, or a database server under heavy load.
- How to fix "The link you followed has expired" in WordPress"The link you followed has expired. Please try again." appears when WordPress can't verify the security token (nonce) sent with a form. It most often happens when uploading a theme or plugin larger than PHP's post_max_size, which wipes the form data entirely. Raise post_max_size and upload_max_filesize, or upload the file through File Manager.
- How to fix "The uploaded file exceeds the upload_max_filesize directive in php.ini""The uploaded file exceeds the upload_max_filesize directive in php.ini" appears when the file you upload to WordPress is larger than PHP's upload limit. Raise both upload_max_filesize and post_max_size in cPanel's MultiPHP INI Editor, or upload the large file directly through File Manager.
- How to fix "There has been a critical error on this website""There has been a critical error on this website" appears when PHP stops on a fatal error, usually from a plugin or theme after an update or a PHP version change. The quickest fix is the recovery mode link WordPress emails to the site admin; otherwise find the failing file in debug.log and disable it.
- How to fix the WordPress memory exhausted error"Allowed memory size of ... bytes exhausted" appears when WordPress or a plugin needs more memory than PHP's memory_limit allows. Raise the limit in cPanel's MultiPHP INI Editor and set WP_MEMORY_LIMIT in wp-config.php; if the error keeps coming back, track down the plugin that's using the memory.
- How to fix the WordPress white screen of deathThe WordPress white screen of death is a blank page shown when PHP stops on a fatal error and the error isn't displayed to visitors. It's usually caused by an incompatible plugin or theme, exhausted PHP memory, or an incomplete update. Turn on WP_DEBUG_LOG to find the file responsible, then disable that plugin or theme from File Manager.
- 404How to fix WordPress posts and pages returning 404When the WordPress homepage works but posts and pages return 404, the rewrite rules in .htaccess are usually missing or broken, which is common after a migration. Quick fix: go to Settings » Permalinks and click Save Changes; if that doesn't work, put the default WordPress rules back into .htaccess.
- WooCommerce checkout errorsWooCommerce checkout errors appear when the order request fails on the server or returns a response the page can't read. Common causes are a PHP error in a plugin or theme, a cached checkout page, wrong payment gateway keys, or a security rule blocking the request. Check WooCommerce › Status › Logs, and test with Cash on Delivery to see whether the gateway or the site is at fault.
- WordPress "HTTP error" when uploading images"HTTP error" means WordPress got an unexpected response from the server while uploading or processing the image. The most common cause is PHP running out of memory while creating thumbnails of a high-resolution photo, followed by the execution time limit or a security rule blocking the request. Resize the image, raise the memory limit, then check the error log.
- WordPress "Maximum execution time exceeded": causes and fixesThe error means a PHP script ran longer than max_execution_time allows, so PHP stopped it before it finished. The quick fix is raising the value in Select PHP Version or MultiPHP INI Editor; the lasting fix is splitting heavy work such as imports or image processing into smaller batches.
- WordPress "Missing a temporary folder" errorThe message means PHP couldn't create the temporary file that holds an upload before handing it to WordPress. The usual causes are a full disk or inode quota, or an upload_tmp_dir setting that points to a folder that doesn't exist. Free up space first, then check the PHP settings.
- WordPress "Update failed": causes and fixesA WordPress update fails when the site can't download the package, unzip it or copy the new files into place. The usual culprits are wrong permissions on wp-content, a full disk or inode quota, or a stuck earlier update. Back up, fix the cause, then retry or update manually.
- WordPress keeps sending you back to the login page: how to fix itA WordPress login loop happens when the login succeeds but the browser doesn't keep the auth cookie, or sends it to a different address, so WordPress returns you to wp-login.php. The usual causes are a site URL mismatch between http and https or www and non-www, caching, a security plugin, or a wrong SSL mode in Cloudflare.
- WordPress REST API error and "The response is not a valid JSON response"A REST API error appears when WordPress doesn't get a clean JSON response from your site's /wp-json/ path. Common causes are broken rewrite rules in .htaccess, a security plugin blocking the API, a firewall rule rejecting the request, or a PHP warning printed into the response. Open /wp-json/ in your browser first, then re-save permalinks.
- WP-Cron not working: "Missed schedule" and late eventsWP-Cron doesn't run on a real clock: it only fires when someone loads a page that PHP processes. So tasks run late or never on low-traffic sites, when pages are served from cache, or when the site's request to itself fails. The reliable fix is adding DISABLE_WP_CRON to wp-config.php and creating a cPanel cron job that runs wp-cron.php every 5 to 15 minutes.
PHP and Laravel
13- "Allowed memory size of ... bytes exhausted": causes and fixesThe error means a PHP script used all the memory memory_limit allows, so PHP stopped it. The first number is the limit in bytes (134217728 = 128 MB). Raise the limit in Select PHP Version or MultiPHP INI Editor if the task is genuinely heavy; if the error returns at the higher limit, the code is loading too much data at once.
- "No application encryption key has been specified" in LaravelThe error means APP_KEY in your .env file is empty or the file is missing, so Laravel can't encrypt sessions and cookies. Create .env if it doesn't exist, run php artisan key:generate, then php artisan config:clear. Don't generate a new key for a live site with encrypted data without a plan.
- "open_basedir restriction in effect": what it means and how to fix itThe error means code tried to read or write a file outside the folders allowed by the open_basedir setting. Most often it's an old absolute path, from a previous server or your own computer, stored in a config or cache file. Fix the path so it points inside your account, or build paths with __DIR__.
- cURL error 60: SSL certificate problem: unable to get local issuer certificatecURL error 60 means cURL couldn't verify the SSL certificate of the site or API your code connects to. Usually the remote server is missing an intermediate certificate, PHP on a development machine has no CA bundle configured, or the certificate is expired or self-signed. Fix the certificate or set curl.cainfo; don't turn verification off.
- Fix "Target class does not exist" in LaravelLaravel throws this when it is asked to build a class (a controller, middleware or service) that the autoloader can't find. The usual causes are the old 'HomeController@index' route syntax in Laravel 8 and later, or a filename whose letter case doesn't match the class name on a Linux server.
- Fix the Composer memory limit errorComposer ran out of memory while resolving dependencies, hitting either PHP's limit or your account's limit. The reliable fix is to run composer update on your own machine, commit composer.lock, and run composer install on the server, which needs far less memory.
- Laravel "Vite manifest not found": causes and fixesThe error means Laravel couldn't find public/build/manifest.json, the file Vite writes when it builds your CSS and JavaScript. Usually npm run build was never run for production, or public/build wasn't uploaded because Git ignores it. Run npm ci and npm run build, or build on your computer and upload the folder.
- 419Laravel 419 Page Expired: causes and fixes419 Page Expired means Laravel rejected a POST request because the CSRF token was missing or didn't match the session. Common causes are a form without @csrf, an expired session, a session cookie that isn't saved because of domain or HTTPS settings, or a cached page. Add @csrf and check the SESSION_ settings in .env.
- 500Laravel 500 error caused by storage and bootstrap/cache permissionsLaravel throws a 500 error when it can't write to storage or bootstrap/cache, and then fails even to log the error. Make sure the required folders exist, set their permissions with chmod -R 775 storage bootstrap/cache, and clear stale cache files with php artisan optimize:clear.
- PHP "Call to undefined function": causes and fixesThe error means the code called a function PHP doesn't know at that moment. The three usual causes are a PHP extension that isn't enabled (such as mbstring, gd or intl), a function removed from modern PHP like mysql_connect(), or a file defining the function that was never loaded. Enable the extension in Select PHP Version or update the code.
- PHP "Class not found": causes and fixes"Class not found" means PHP couldn't find the class definition when the code used it. In Composer projects it's usually a missing vendor folder or stale autoload files, a namespace that doesn't match the file path, or the wrong filename case on a Linux server. Run composer install, then composer dump-autoload, and check the path.
- PHP Fatal error: how to read it and fix itA PHP Fatal error means PHP hit a problem it can't recover from and stopped the whole script, so visitors see a blank page or a 500 error. The message gives the error type, file and line; the fix depends on the type: an undefined function, a missing class, exhausted memory, or null where an object was expected.
- PHP Parse error: syntax error, unexpected: causes and fixesA Parse error means PHP couldn't understand how the code is written, so the file never ran at all. The cause is usually a missing semicolon, an unclosed bracket or quote, or code using newer syntax than the server's PHP version. Open the file at the reported line and check the line before it.
Databases
11- Fix "file too large" when importing in phpMyAdminphpMyAdmin runs on PHP, and your file is bigger than the upload limit (upload_max_filesize and post_max_size) shown next to the file picker. The quickest fix is compressing it as .sql.gz or .zip; if it's still too big, split it or import it over SSH with the mysql command.
- 1366Fix "Incorrect string value" and Arabic text showing as ???Error 1366 appears when the column or connection character set can't hold the characters you send, such as Arabic into a latin1 column, or emoji into a utf8 column. Convert the database and tables to utf8mb4 with utf8mb4_unicode_ci, and set your app's connection charset to utf8mb4.
- 2006Fix "MySQL server has gone away"Error 2006 means your app tried to use a connection the MySQL server had already closed. It usually happens when an import or query is bigger than max_allowed_packet, or when a long-running script leaves its connection idle past wait_timeout. Shrink the statements or reconnect before use.
- 1203Fix MySQL 1203: already has more than max_user_connectionsError 1203 means a database user reached its maximum number of simultaneous connections (max_user_connections). The server is fine, but your site opens connections faster than it closes them; the fix is closing connections, avoiding persistent ones and sending fewer requests to the database.
- 1040Fix MySQL error 1040: Too many connectionsError 1040 means the number of open connections to MySQL reached max_connections, so new ones are refused until others close. It's usually caused by slow queries, connections that never close, or uncached traffic, and the fix is using fewer connections, not only raising the limit.
- 1045Fix MySQL error 1045: Access denied for userError 1045 means MySQL refused the login because the username, password or host doesn't match a registered user. On cPanel, use the full prefixed name such as cpuser_shop and the host localhost, then reset the password and update it in your site's config.
- 1062Fix MySQL error 1062: Duplicate entryError 1062 means the row you're inserting has a value that already exists in a PRIMARY KEY or UNIQUE column. The message names the duplicate value and the key, so find the existing row first, then decide: update it, skip the duplicate, or fix the AUTO_INCREMENT counter.
- 1064Fix MySQL error 1064: SQL syntax errorError 1064 means MySQL's parser stopped at something it couldn't understand. The text after near is where it stopped, and the mistake is usually just before it: a reserved word like order without backticks, a missing comma or quote, or an empty variable.
- 1146Fix MySQL error 1146: Table doesn't existError 1146 means your app connected to the database successfully, but the table named in the message isn't in it. Common causes are an import that didn't finish, a wrong WordPress table prefix, a letter-case mismatch in the table name, or a connection to the wrong database.
- 1215Fix MySQL error 1215: Cannot add foreign key constraintError 1215 means MySQL refused to create a foreign key because the two columns are incompatible or the referenced table isn't ready. The usual causes are a type mismatch such as INT versus BIGINT UNSIGNED, different collations, or creating the table before the one it points to.
- 2002Fix MySQL error 2002: Can't connect to local MySQL serverError 2002 means the application couldn't reach the MySQL server at all, so the problem happens before any username or password check. The usual causes are a wrong DB_HOST, a socket file that isn't where PHP expects it, or a stopped MySQL service.
- 535535 Authentication failed (Incorrect authentication data)535 means the outgoing mail server refused your login: the username, password or authentication method is wrong. Use the full email address as the username, re-enter the current password, and match the server, port and encryption to your provider's settings.
- 552552 Mailbox full (mailbox over quota)552 means the receiving server refused the message because the recipient's mailbox is full (over its storage quota) or, in another form of the message, because the email is larger than the server accepts. The mailbox owner fixes it by freeing space or raising the quota; the sender can only wait or reach the person another way.
- DKIM fail (signature did not verify)DKIM fail means the receiving server checked the message's DKIM signature against the public key published in your DNS and they didn't match. The usual causes are a missing, wrong or truncated DKIM record, a new mail server signing with a key DNS doesn't have yet, or a message changed after it was sent.
- DMARC fail (dmarc=fail)DMARC fails when the message has no SPF or DKIM result that both passes and matches (aligns with) the domain in the From address. It usually happens when a third-party service sends as your domain without its own authentication, when SPF and DKIM are both broken, or when someone spoofs your domain.
- 550Fix 550 5.7.1: Delivery not authorized, message refused550 5.7.1 means the message was refused because the sender isn't authorized under the server's policy, not because the address doesn't exist. The text after the code names the policy: Relaying denied means sending without logging in, unsolicited mail means it looked like spam, and block list means the sending IP is blocked.
- 550Fix Gmail 550 5.7.26: sender is unauthenticatedGmail returns this error for messages that pass neither SPF nor DKIM, or that fail the DMARC policy of the From domain. The fix is a single SPF record covering every server that sends as you, DKIM signing turned on, and a From address on your own domain.
- 421Fix SMTP error 421: Service not availableA 421 code means the server is refusing the connection for now and asking you to retry later, so the message hasn't failed permanently. Your server retries automatically for a while and the message usually gets through. If it keeps happening, the cause is usually sending too much too fast or a weak IP or domain reputation.
- 553Fix SMTP error 553 when sending emailA 553 code means the server rejected one of the addresses in the message: it's malformed, or you're not allowed to use it as the sender. The most common causes are a From address that differs from the mailbox you logged into SMTP with, or a space or hidden character inside the address.
- 554Fix SMTP error 554 when sending emailA 554 code means the server permanently rejected the whole transaction, usually after checking the sending IP or the message content. The usual causes are a blacklisted IP, content the spam filter judged dangerous, or a forwarding loop between two addresses; the text after the code tells you which.
- Mail delivery failed: returning message to senderMail delivery failed is an automatic report (a bounce) from your mail server saying a message couldn't be delivered. The important part is the line with the SMTP code and reason, such as 550 user unknown or 552 mailbox full: it tells you whether to fix the address, your domain's records, or simply wait.
- Not receiving emails on your domainIf emails don't reach your domain, the cause is usually DNS (MX records pointing to another server), a full or missing mailbox, a filter or forwarder moving the mail, or a cPanel email routing setting that doesn't match your MX. Ask the sender for the bounce, check MX, then follow the message in Track Delivery.
- 451SMTP error 451 (temporary failure, try again later)SMTP 451 is a temporary error: the receiving server couldn't accept the message right now and asked the sending server to retry later. Most deferred messages are delivered on a later attempt; when 451 keeps repeating, the usual causes are rate limiting, greylisting, a DNS problem or weak sender reputation.
- 550SMTP error 550: why your email was rejected and how to fix itA 550 code means the recipient's server permanently rejected the message, so resending it unchanged won't work. The reason is in the sub-code and text that follow: 5.1.1 is an unknown address, 5.7.x is a policy, authentication or blacklist rejection, and relay or SMTP Authentication means you're sending without logging in.
- SPF PermError (permanent error in the SPF record)SPF PermError means the receiving server found your SPF record but couldn't evaluate it, so SPF counts as failed and DMARC usually fails too. The three usual causes are two SPF records on the same domain, more than 10 DNS lookups, or a syntax error; the fix is one corrected record.
- Why are my emails going to spam?Emails go to spam when the receiving provider doesn't trust the message: the domain lacks valid SPF, DKIM and DMARC records, the sending IP or domain has a poor reputation, or the content and sending pattern look like bulk mail. Fix authentication first, then reputation, then content.
Node.js and Python
12- Error: connect ECONNREFUSEDECONNREFUSED means your Node.js app reached the host but nothing accepted the connection on that port: the database, API or cache isn't running there, or the app uses the wrong host or port. Check the address in the message, confirm the service is listening, and fix the value in your configuration or `.env` file.
- Error: listen EADDRINUSE: address already in useEADDRINUSE means your Node.js app tried to listen on a port that another process is already using, often an older copy of the same app. Find the process with `lsof -i :3000`, stop it with `kill`, or start the app on another port; on managed hosting, listen on `process.env.PORT` instead of a fixed number.
- FATAL ERROR: JavaScript heap out of memoryJavaScript heap out of memory means the Node.js process used all the memory V8 allows for its heap and crashed. During builds, raise the limit with `NODE_OPTIONS=--max-old-space-size=2048` (in MB) if the machine really has that memory, or build on a bigger machine; at runtime, it usually points to a leak or to loading too much data at once.
- Fixing the Disallowed intents error in a Discord botYour bot requested a privileged intent (Message Content, Server Members or Presence) that isn't enabled for its application in the Discord Developer Portal, so Discord closes the gateway connection with code 4014. Turn the intent on under Bot → Privileged Gateway Intents, or remove it from your code if you don't need it.
- ModuleNotFoundError: No module namedModuleNotFoundError: No module named 'x' means the Python interpreter that runs your code can't find that package. Usually it was installed for a different Python or outside the virtual environment, so activate the right environment and run `pip install -r requirements.txt`, or install with `python -m pip` using the same interpreter that runs the app.
- n8n webhook not workingMost of the time you're calling the test URL (webhook-test) instead of the production URL (webhook), the workflow isn't active, or n8n doesn't know its public address and hands out localhost links. Activate the workflow, use the Production URL, set WEBHOOK_URL to your public https address and restart n8n.
- Node.js Error: Cannot find moduleError: Cannot find module means Node.js looked for a package or file your code imports and didn't find it. For a package name such as 'express', the dependencies aren't installed where the app runs, so run `npm install` or `npm ci`; for a path such as './utils', the file name, case or extension is wrong.
- npm ERR! code EACCES (permission denied)npm EACCES means npm tried to create or change files in a folder your user has no permission to write, most often the global `node_modules` directory or a `~/.npm` cache created earlier with sudo. Don't fix it with sudo: install packages locally or use `npx`, point npm's global prefix to your home folder, and correct ownership of the folders involved.
- npm ERR! ERESOLVE unable to resolve dependency treeERESOLVE means npm couldn't build a dependency tree that satisfies every package's peer dependencies, for example a library that wants React 17 in a React 18 project. The clean fix is to upgrade (or downgrade) the package named in the error; `--legacy-peer-deps` makes the install succeed by ignoring the conflict, at the risk of runtime bugs.
- Phusion Passenger error: Web application could not be started"Web application could not be started" means Phusion Passenger tried to launch your Node.js or Python app and the process crashed, exited or didn't respond in time. The real cause is in the app's log: usually a missing package, a wrong startup file, a missing environment variable, or a Node app that doesn't listen on `process.env.PORT`.
- pip error: externally-managed-environmentexternally-managed-environment means pip refused to install into the operating system's own Python, because the OS manages those packages (PEP 668). Create a virtual environment with `python3 -m venv .venv`, activate it and install there; use `pipx` for command-line tools, or the distribution's package (`apt install python3-xyz`).
- 409Telegram bot error 409 Conflict409 Conflict means Telegram received getUpdates requests from more than one place with the same bot token, or a getUpdates request while a webhook is active. Run exactly one instance in one mode: stop the duplicate process (often a copy on your own computer), call `deleteWebhook` if you use polling, or stop polling if you use a webhook.
Server and cPanel
11- "This account has been suspended": why your site is down and how to restore itYour hosting provider has temporarily suspended the account, so visitors see a suspension page instead of the site. The most common reason is an unpaid renewal invoice; it can also be a violation such as malware or spam. Pay the open invoice or contact support to learn the reason, and the site returns with its files intact.
- cPanel login failed (The login is invalid)cPanel shows The login is invalid when the username or password doesn't match the account. The usual culprit is typing your email or domain instead of the cPanel username, or using an old password. On ArabyHost you don't need the password at all: open cPanel with one click from the Araby Panel.
- Cron job not running? How to diagnose and fix itMost cron jobs that seem dead are actually running and failing silently: a relative path, a PHP version different from the site's, an unescaped %, or output thrown away to /dev/null. Use full paths, redirect output to a log file, and read that log after the first scheduled run.
- Fixing "Disk quota exceeded" on your hostingYour account has reached its storage limit, so the server refuses to write anything new: uploads, sessions, cache files, even incoming email. Find the largest folders in cPanel's Disk Usage, delete old backups, logs and cache, or move to a plan with more space.
- Fixing "Host key verification failed"The server's identity key (host key) doesn't match the one saved in known_hosts on your computer, or the server is unknown and the connection can't ask you about it. If you know the server changed, for example after a migration or reinstall, remove the old entry with ssh-keygen -R and reconnect, checking the new fingerprint.
- Fixing "Permission denied (publickey)" in SSHThe server only accepts key authentication and found no authorized public key matching the one your computer offered. Create a key with ssh-keygen -t ed25519, add the public half to the server (in cPanel: SSH Access → Manage SSH Keys → Authorize), and connect with the correct account username.
- Fixing "Permission denied" when writing filesThe user running the code, whether PHP, a script or a terminal command, isn't allowed to write to that file or folder. On cPanel hosting the fix is usually permissions of 755 for folders and 644 for files, making sure the files belong to your account's user, and writing only inside your own account.
- 403Fixing a ModSecurity 403 Forbidden blockThe request matched a rule in a web application firewall (WAF) such as ModSecurity or Imunify360, so the server rejected it with 403 before it ever reached your site. It usually happens when submitting a form or saving a page containing text that looks like attack code. Pin down the blocked request and its time, then change the request or ask support to review the rule.
- Git push rejected: causes and fixesThe remote refuses your push, usually because it contains commits your local copy doesn't have, and accepting it would throw them away. The safe fix is git pull --rebase to fetch those commits and replay yours on top, then git push again. Other causes are a protected branch, an oversized file or a secret inside the commit.
- Inode limit reached: "Disk quota exceeded" with free space leftAn inode is the record for a single file or folder, and every account has a maximum number of them. Once you reach it, the server refuses to create new files and shows Disk quota exceeded even when there's space left. Find the folders holding thousands of small files, such as cache, email and node_modules, and clean them out.
- SSH "Connection refused" on port 22: causes and fixYour connection reached the address, but nothing accepted it on port 22, or a firewall explicitly rejected it. Check that your plan includes SSH, that you're connecting to the real server address and the right port, and that your IP address isn't blocked.
No matching topics.
Ready to put your idea online?
Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.