Tag: how to

  • Error 500 in WordPress: What It Means and How to Fix

    Error 500 in WordPress: What It Means and How to Fix

    Having to deal with any kind of issues on WordPress could be stressful but nothing compares to your website being completely down . Internal Server Error or in other words Error 500 is one of the biggest culprits for that. We will cover the most important things to know about the error, what it’s connected to and how to fix it with the more common solutions.

    What is Error 500 and how to check where it’s coming from?

    In simple terms, the error connects to something unexpected happening on the server side. The cause for it is almost always logged on the hosting side. Most Internal Server Errors come from plugins/themes, missing core WordPress files or incorrect coding. 

    The first thing to do is not panic. You will need to understand where the error is coming from and what caused it. To do that, as mentioned before, each error on the server side is logged somewhere. At WPX, you can log in your account and check the Error Logs by following this simple guide to determine where the issue lies.

    Error 500 internal server error in WordPress

    Most Common Reasons for Error 500 in WordPress

    We will go through all the common issues that may lead to an unexpected error. 

    • Different Plugin or Theme Conflicts

    This can happen when you have more or less multiple plugins or themes that have the same functionalities and can conflict with each other. Most basic examples of that are cache plugins. If you are looking for performance, most people tend to go for a quick cache plugin install and add on top with other variations. The issue with that is, that having multiple cache plugins could lead to possible conflict which results in Error 500, and you may experience cache problems where the changes you make do not appear.

    • Incorrect Coding of .htaccess file

    This issue is caused when making changes and editing the core WordPress file .htaccess. If you have made changes to the file, make sure to check that the added code firstly, is correct and secondly, is added on new lines in the file and not on top of existing code. If either of the two is not done properly, then the file breaks the website configuration, leading to an Internal Server Error.

    • PHP Memory Limit Threshold

    Another cause for downtime is when certain operations that run on your website exceed the given Server Limit for Memory or in simple terms RAM. 

    That specific resource is displayed on most hosting plans that are offered online. The error consists of having a request run for far too long on the website, reaching a threshold limit for the allocated memory of your website and plan.

    At WPX, each plan has a set of specific resources and one of them is connected to memory. That is caused in most cases by heavy duty plugins such as Elementor or different page builders which take up a lot of resources. Another case would be multiple requests done from one website, if for example you have a team of people working on it simultaneously.

    The best course of action would be to check with WPX Support to see if that is the root of the issue or something else is playing a role. If in fact is confirmed and the case is a website that has outgrown its hosting plan, you do have an option with our custom plans available on our site.

    • Installing a new plugin which breaks the website configuration

    More common issues come from specific plugins which could potentially break the website and cause Error 500. This issue however is not specific. There aren’t any lists of potential plugins or themes that could cause it, since it depends heavily on the individual website setup. In most cases it happens when updating a plugin or enabling a feature. When you make a certain action with them and the website crashes immediately afterwards, you could guess that most likely that would be the cause. Again, the solution here would be to verify the root through the Error Logs as explained earlier.

    • WordPress Core Update or PHP Update

    Last but not least, any kind of general big updates that are scheduled could crash and be the cause for Error 500. That is not connected directly to the update itself, but rather the core WordPress running on a higher version which is not compatible with the setup of plugins or themes that are running lower ones. There is a risk of conflict and a certain plugin not being able to work on the newer version of WordPress. That is why, we recommend creating a website backup before making general changes on your website.

    Fixing the issue with Internal Server Error in WordPress happens when you determine the root from the Error Logs of your website and disabling the specific theme/plugin that is causing it. Once that is done, you can try to re-install them again to see if that fixes the issue. If you need any help during the process, do not hesitate to contact WPX Support.

  • Can’t Upload Images? Fixing WordPress Image Upload Problems

    Can’t Upload Images? Fixing WordPress Image Upload Problems

    Working and updating your site is very important when it comes to maintaining online presence and providing something constantly new for your visitors. Uploading images is one of the keys to making your pages more readable and making people “catch interest” in what they are reading. There are a lot of common issues connected to uploading a specific image to your WordPress website and we will go through all of them with the common solutions.

    Possible causes for WordPress Image Upload Issues

    Like every issue we stumble upon in WordPress, we need to first understand it, before we try to tackle it with different fixes. This issue in most cases would be caused from incorrect file permissions or lack of disk space on your hosting plan. 

    To go in more detail, the file permissions on your website can be changed at any time and they can either allow external access, meaning uploading an external image which is part of the task you would be doing and block not only updating but editing any kind of files without root access to the server.

    Other more rare causes are connected to specific plugins or builders which affect the built-in WordPress Importer Tool for images.

    How to fix Image Upload issue

    The first thing to do is check and set the correct website file permissions. To do that, you can simply use our built-in File Manager and locate the main Uploads folder which holds all of your images. The path should be within the main installation of your site: public_html/wp-content/uploads:

    image upload issue

    Once you have located your uploads folder, the next thing is to set the correct file permissions for it. To do that, you need to Select (1) the folder by ticking the white box next to it and going through the built in Tools (2) option and select Chmod Selected (3):

    fix image upload issue

    You will see a pop-up field with all the permissions which can be customized or a specific code can be set up to automatically fill them in. File Permissions have specific codes that represent a pre-set of rules that allow or blow certain access. The main goal here is to allow permissions for external uploads to the website such as images.

    The correct file permission code that we recommend for that is 744. This code allows external image uploads to the folder but restricts access to it through the browser for non-logged in users or external visitors which is optimal for security. You need to input the code (1) and select Change (2) to propagate the changes:

    code 744 - external image upload

    Job well done. You will have the correct permissions for the folder responsible for all image uploads on your WordPress site.

    If the issue persists, you need to check if you have enough disk space on your hosting plan. To check if your disk space is full or not, you can again use the File Manager or check the main server details in your WPX Account.

    To check them through the File Manager, you simply need login your WPX Account, navigate to File Manager and then check the top bar, where all the options, including disk usage used and free are displayed:

    fixing image upload issue

    Another topic of discussion is having very large images which can be the cause of another issue connected to an uploading error. For that to be fixed, you need to manage and upgrade your Maximum Upload File Size Limit. That usually is set by default for most hosting providers at 32 or 64 MB. Anything larger than that, will trigger an error and will not upload on your WordPress website.

    To upgrade your size limit, you need to contact WPX Support Agents which are available 24/7, so that they can do it for you. The reason for that is the server file php.ini which has restricted access for security reasons and has most of the server/site limits.

    Another common error connected to uploading images is “Installation failed: Could not create directory“.

    That’s it! We went through and covered most of the common issues and fixes for uploading images on WordPress.

  • Fixing the WordPress Login Page Refreshing and Redirecting Issue

    Fixing the WordPress Login Page Refreshing and Redirecting Issue

    Having access to your WordPress Dashboard is essential for maintaining your website and working on it in general. This article will cover a well known issue connected to the login page not working and redirecting without providing any errors. We will go through the most common causes and how you can fix each one of them.

    Accessing the WordPress Login Page

    Before we dive in the root of the issue, you need to make sure that you are loading your Login Page correctly. On most common WordPress installations your wp-admin URL is the same and does not change, for example:

    Yourwebsite.com/wp-admin/

    Yourwebsite.com/wp-login.php/

    Another note for accessing your login page would be if the website is a subdomain or a subdirectory. To access that, you would need to tweak your wp-admin URL, for example:

    Your.subdirectory.com/wp-admin/

    Your.subdirectory.com/wp-login.php/

    Keep in mind that if you have customized your login page, you will need to use the specific name that is set through plugin or code.

    Most common denominators causing issues with the WP Login Page

    In most cases, the issue is connected to incorrect wordpress settings or an issue with the browser cache and cookies. To put it in simple terms, when you attempt to login your website, the browser sets a specific login cookie, which redirects you to the Dashboard if done successfully.

    That is set and validated after you input the correct username and password in order to login. In this case, if it fails to set it up from an incorrect username or password, or the WordPress Login URL is incorrect, then it will fail and loop you back to the login screen.

    Alternative reasons for the login page not working or redirecting you in a loop would be various WordPress errors connected to the database of your website or specific server errors causing downtime.

    How to fix WordPress Login Page Issue

    There are a couple of things you can do, to get your login page to work and start working on your website. One of them we already covered a few clicks back with accessing the correct WP-Admin URL.

    We will go through a list of the main things to do before attempting to login again:

    • Clear your browser cache and cookies;
    • Check and update wp-admin settings for login page;
    • Deactivate all website plugins.

    The first method is covered by accessing your browser settings and deleting browsing data cache and cookies altogether. In Google Chrome, you can use the search bar for quick access and type in Cache (1) and select Delete Browsing Data (2):

    fix wordpress login page issue

    You will get a pop-up menu with options of what exactly you want to delete. Since we are aiming to clear both cache and cookies entirely, you need to select All time (1) and finish the process with Delete Data (2):

    delete browsing data

    Once that is done, you can go ahead and try to access your Website Dashboard to check if that fixed the issue. Keep in mind that by doing so, you might get logged out automatically of other websites where you have saved passwords and login set up.

    The second one is connected to checking the wp-admin settings through an FTP Client. If you are using WPX, you can use our built-in File Manager for easy access to complete the task without the need of downloading or using external clients and connecting via FTP.

    The first step would be to locate wp-config.php, the file responsible for holding the wp-admin settings. That can be done with navigating through your website files. Most common path would be: public_html/wp-config.php:

    check wp-admin settings

    Once you double-click on the file, you will enter it in Edit Mode. You can scroll down all the way to the end, where you will see the following code: “That’s all, stop editing! Happy publishing.”

    Just before that line, you can input two lines that will define the correct name of your website:

    define(‘WP_HOME’,’https://www.example.com’);

    define(‘WP_SITEURL’,’https://www.example.com’);

    Please note that you will need to change the “example.com” part with the specific name of your website in order to work.

    Once you have pasted the code with the correct name of your domain, then you can proceed with saving the file and changes:

    fixing wordpress login page issue

    When the changes are saved, you can check and try to login your website to see if that fixed the issue.

    The third and final most common fix for the issue is connected to disabling your website plugins. Another thing that may be causing issues with your Login Page is a plugin that is not working as expected. If you do not see a specific error and it keeps redirecting you, then you will need to stop all of them in order to troubleshoot if that is the issue.

    To do that, you can use an FTP Client or our built-in File Manager as in the previous steps with locating and adjusting wp-admin settings. The main step here would be to locate the plugins folder. In most cases, it is located within the specific WordPress path: public_html/wp-content/plugins:

    disable plugins

    Once you have located the plugins folder, you can simply select it by ticking the white box next to it:

    disable plugins

    The final step would be to rename the folder in order to disable all the plugins currently installed on your website. That can happen by right-clicking on the folder and selecting option Rename:

    rename folder

    You will see a pop-up tab, where you can simple input the following name: plugins-stop and OK in order to make it work:

    rename folder

    Once that is completed, you can try to access and login your website to see if that fixed the issue.

    That’s it! These are the most common fixes which you can implement in order to resolve the redirect of the Login Page. If you are still not seeing progress or in need of any help for your website, do not hesitate to contact our WPX Support which are available 24/7 via chat or ticket.

  • How to Fix LCP Issue in WordPress

    How to Fix LCP Issue in WordPress

    In this article, we will cover one of the main metrics that is a part of Google Core Vitals. Having a good overall score and performance is very important for each online business and website for that matter. We will go through the main things you need to know about the given metric and how to go about fixing any potential issues or bad scores you may have due to it.

    What is LCP

    Before we dive in detail on what can be done and what are the main issues connected to the metric, we need to understand its meaning and what it stands for. LCP or in other words Largest Contentful Paint, together with INP and CLS is a main part of three general metrics – that Google uses to check your website performance and speed, including end user experience. LCP is strictly connected to the time it takes for the biggest element of your page to load and become visible for the visitor. 

    In most cases that element is a big image or a block of text that is created by you on any given page. It could also be a video, if you have embedded one that is long and is big by size or a serious animation that takes up the entire page. Keep in mind that the biggest element may be different depending if you are performing a mobile speed test or a desktop page speed one.

    As for the element itself, the purpose for the metric is to determine both it’s load speed and user experience depending on the load time, and finally, grade it.

    What are the good and bad LCP metrics

    To start off, you need to keep in mind that these metrics are fixed and are not individual for a given site. That being said, anything under 2.5 seconds to load is considered to be Good by LCP standard:

    LCP score

    From the given screenshot directly from Google Web Core Vitals, you can see that everything between 2.5 seconds and 4.0 seconds is considered Still Good but needs a bit of improvement on the load time. Everything over that is considered Not Good as far as Google’s standard goes.

    The main parameters that form LCP are:

    • TTFB (Time to First Byte) 
    • Resource Load Delay
    • Resource Load Duration
    • Element Render Delay

    These parameters form 100% of your LCP score. The most important ones as far as percentage of importance goes are TTFB and Resource Load Duration.

    Different types of elements connected to LCP

    To continue the topic, we need to go through all the common elements that may be considered biggest in terms of LCP metric.

    • The first one would be any kind of animated Gifs or images in PNG format. The main reference in code would be <img>;
    • Large images that are loaded on your website page <image>;
    • Large videos that are embedded on your website page <video>;
    • Any kind of custom elements that have an image loading in the background through CSS code or theme customization;

    These are the most common elements that fall under the LCP category. The next step would be to explain how the metric actually measures their size and chooses the biggest one. 

    It gets kind of tricky when trying to explain how LCP measures the elements since it is complex. On one side, it measures the sheer size of the element, meaning visible size and how much space it takes on the page. On the other hand, it also takes into consideration the actual image dimensions and scalability on the given website page.

    How to check your website LCP score

    You can check your website with all three metrics of Google Web Core Vitals through PageSpeed Insights. That is the main tool that is trusted by Google and can be used to both view your mobile speed performance grades and score, including the desktop version of your website.

    To do that, you simply need to add in the full domain name of your website. Keep in mind that it may take a few moments to complete the entire test since it goes through all the metrics and it is also affected by the size of your website and number of pages.

    To start the process, you need to review the results that are given once it is complete:

    google web core vitals

    From the test results you can see that the load time of LCP is 0.5 seconds and that is well in range of the Good score measures that we explained in step 2. When you click on Expand view, you will be able to see additional information and links to every metric shown in the test.

    What are the most common things that affect LCP score?

    We will cover the most common issues that can affect LCP score negatively. Keep in mind that these parameters are overall and do not take part of every individual setup and hosting environment.

    • Slow Server Response Time;
    • Optimize LCP sub-parts;

    The first one is Slow Server Response Time. This one is strictly connected to the specific server setup the website is hosted on. When loading a website, the browser that is used will send a request to the server to open it up. If that request takes too much time, it will affect the loading time overall, thus LCP score will be affected in a negative way.

    This issue can be mended by using a CDN Network to cache and improve TTFB (Time to First Byte) in order to improve the overall score and LCP. In that matter, we provide our own built-in XDN which can be used on all of your websites hosted at WPX for free, included in each hosting plan.

    The second common issue is connected to tackling a serious task of every part that makes LCP a metric. To do that, you need to start with different criteria which can be viewed on your PageSpeed Insights test. 

    TTFB or Time to First Byte is extremely important and forms around 40% of the LCP score. Depending on the load time of the first element on your website, can give you a good or bad score at the end. 

    To fix this issue, the first and most simple step would be to activate a CDN Network for your website to cache all the requests. That way, TTFB will be gradually improved and the load time overall as well.

    The next big parameter would be Resource Load Duration. That is strictly connected to the resources of your website loading time. To fix that, you would need to lower the loading time of any resources that may be large or not cached. 

    On top of using CDN, we recommend using another layer of cache with a cache plugin such as W3TC. We at WPX provide recommended settings which are optimal for the website and our servers compatibility.

    Once these two main parameters are completed with a successful cache setup and preload of your resources, then the time and LCP score will jump up and provide a good result.

    Additional recommendations would be to optimize your images and make them smaller in size so that they take less time to load. Everything connected to making the website fast will affect TTFB and of course that will connect to LCP score directly. Make sure to use less external loading resources such as ads and third-party links that may not be optimized since that will hinder the loading time and lower the results.

    That’s it! You have read through all the basics that need to be known regarding LCP, what it means and how to handle results that are not that great from Google Web Core Vitals.

  • How to Fix CLS Issue in WordPress

    How to Fix CLS Issue in WordPress

    Having good grades and even better performance is essential for any online website. In this article, we will uncover one of the main Google Core Web Vitals. We will cover the basics and explain what are the best tips to do in order to keep that metric in check when testing your website.

    What is CLS?

    In order to better understand how Google Web Core Vitals work, you need to understand each component. In this case, we will review CLS or in other words Cumulative Layout Shift. To put it simply, it is strictly connected to the stability of your web pages. How quickly they shift, moving components like a sliding bar for example or if you have any moving objects on your page through custom code or theme that you may be using.

    It basically serves as a count metric of how many moving objects you have not just by clicking on something to move it on the current page but in general, even when hovering over an icon for example with an animation, counts as a layout shift.

    The sum of all the shifts count in the overall score that you get on that specific metric from Google.

    What counts as a good and bad CLS score?

    Before we dive into the numbers and good and bad scores, we need to look at the whole idea of using this metric and why it’s one of the three main ones that Google uses when making a performance check. 

    Firstly, it is connected to unexpected layout shifts. That means that every move of your content on a given page is tested. If you have ads running for example and they squeeze the content or start moving it up and down, depending on their location, it would affect the end user experience. 

    So, the end goal of the metric is to determine if you have too many shifts and moving objects that would obstruct the user when visiting your website page. The number would directly affect the score positively or negatively.

    How can I find out what my CLS score is?

    You can use various tools to check the main Google Core Vitals. The main one that we recommend is directly connected to them and that is PageSpeed Insights. 

    To use it properly, you need to input the full name of your website. Once that is done, the application will make a request to that specific address and display the results that you are looking for.

    To start the process, simply test the website and review the main results as shown in this example:

    CLS score

    You can see from the example test, that the website has no issues connected to CLS score and that is shown in the results. When you scroll down, you will see all the other issues at hand that may be problematic.

    What are the main issues causing a bad CLS score?

    Once the performance test is done, we will go through all the biggest and most common things that affect the positive score which we recommend avoiding.

    • Images and Videos
    • Ads and Embeds
    • Web Fonts and Content

    The first one is pretty simple and it connects to any images and videos you have on your webpage. If you do not specify the correct width and size, then the browser does that for you automatically and tries to fit and shift them every time it loads with the content. That amounts to unnecessary layout shifts that count on the negative side when it comes to user experience and CLS score.

    The next one is something that we mentioned earlier, and that are all the different ads or embeds that may be running on your website. The same thing applies to them as to images and videos. You need to have allocated space for them to fit correctly with both the content on the page. If not done correctly, the same unexpected layout shifts will occur and get you a bad score on Google Core Vitals.

    The third common issue is connected to the way your fonts and content loads overall on your website. If the process is not seamless and the text for example loads first, then the images and fonts, that would again cause different layout shifts since the page loads partially different parts that shift and move.

    How to fix CLS issue on your WordPress site?

    The logical way is to check and correct any common issues that were mentioned previously on the topic. 

    • Add width and specific size for your Images and Videos
    • Fixed dimensions for your Ads and most free space
    • Optimize your Fonts

    The first one is to correct and add width and correct size on all of your images and videos to fit correctly with your content and page. That is the quickest way to check and go through them by using the built-in WordPress CMS. 

    To do that, you need to log in your WordPress Dashboard of the specific site and check your Media Library (1), Select (2) the specific image you want to check and re-size:

    fix cls issue on wordpress site

    Once you select the image, you will be redirected to the editing options. From there you need to select Scale (1) and the image dimensions will show next to it. Once you are done with the size, again select the button Scale (2) and WordPress will automatically do it based on the numbers you set:

    scale image

    The next one is to manage the size and space that your Ads take up on your website page to avoid layout shifts. The best recommendation here would be to use fixed dimensions for all of them in order to embed them properly to each page. That would save you the headache of doing it individually for each ad and wondering about what space you have to free up to fit it properly.

    When arranging the main layout of your page, make sure to save the biggest free spaces for the ads. That would minimize the chance of an unexpected layout shift.

    Make sure to use ads that do not “stick” to the content of the page, especially if they are in the middle of it. Make sure that the ads are embedded with the option to move freely while scrolling through.

    The last step is to optimize your website fonts. You can do that through various caching plugins. The only inconvenience of this method is that it mostly includes paid options which are not available on free versions of the plugins mentioned below.

    For example, if you are using the W3TC Pro version of the cache plugin, you have an option that can be enabled to Preload your website fonts. To complete the process, you need to login to your WordPress Dashboard. From there, you need to navigate through the Performance tab (1) of the plugin and select User Experience section (2):

    optimize website fonts

    Once that is done, you can check the box Preload Requests and that would automatically include the website fonts that load on each page. Additionally, you can add specific fonts and choose which one to pre-load if you want to. Other cache plugins can offer the same functionality such as WP-Rocket and Litespeed. The whole purpose of having that option is to ensure that the text is loaded alongside your website fonts and not after, which would cause layout shifts.

    Another recommendation is to edit and convert the font icons on your website to SVG Format. That would require a bit of developer work since someone needs to check and add CSS code to embed them in that specific format. The purpose of doing so is being in SVG, you can position the icons easily anywhere and can customize them the way you want.

    The last recommendation connected to your fonts would be to make as many formats available as possible. That is connected to the best user experience where each browser used to access your website would choose the correct font that would fit best, avoiding layout shifts.

    That’s it! CLS, together with LCP and INP, is one of the main three metrics from Google Core Vitals and has a big part of your overall performance and speed score. If that matters to you, these are the overall steps you need to learn and check in order to better the score if it is in the negative according to your website results.