If you are seeing this error message when installing your theme, you have 3 options to choose from:
Option 1: Delete the old theme from Appearance > Themes in WordPress, then upload the new zip.
Option 2: Access your site via FTP. Rename the old Avada folder in wp-content/themes to something like AvadaOld, then upload the new version either as a zip through your Dashboard or unzipped into the themes folder through FTP. This option lets you keep the old theme version as a backup on your installation in case you want to switch back. Note: It is always recommended that the version you will finally use is in a folder called Avada.
Option 3: Access your site through FTP and navigate to wp-content > Themes. Delete the old theme folder, upload the new version either as a zip through your Dashboard or unzipped into the themes folder through FTP.
標籤: technical
Fatal Error: Allowed Memory Size Exhausted
It』s very common to get fatal error messages about memory; 『Fatal Error : Memory Size Exhausted』. This can happen when you install themes, plugins or upgrade to the latest WordPress version. Such types of problems arise because the PHP Memory Limit of your Host is less than what the process requires for performing its functions. In such a case you would need to follow these 5 tips to Increase your host』s PHP Memory Limit – these were provided by Dailybloging.org
Tip 1: Increase the limit via PHP.ini fileYou can directly increase the PHP Memory Limit if you』ve access to the PHP.ini file. Most small Shared hosting servers won』t give you access to the PHP.ini file. But some servers allow you to create a duplicate PHP.ini in your respective site Directories whose data/values will override the default PHP.ini values. To do that you just need to create a file with the name 『php.ini』 in the directory where your WordPress site is installed. In that just add the command memory_limit = 128M in it to increase the Memory Limit to 128 MB.
Tip 2: Changing the Memory Limit via wp-config.phpIf you don』t want to mess with the PHP.ini file, then you can go for this method. In this you won』t be needing to create any extra file in your Directory. Just Adding define(『WP_MEMORY_LIMIT』, 『128M』); in your 『wp-config.php』 file would increase your PHP Memory Limit to 128 MB.
Tip 3: Modifying the .htaccess file to Increase Memory LimitA Default WordPress Installation won』t have a .htaccess file. But in case you already have it for some purposes like 『301 Redirection』, just add the command php_value memory_limit 128M in your 『.htaccess』 file and your memory limit will increase to 128 MB.
Tip 4: Changing the Memory Limit via wp-config.phpThis method is just an Alternate to the php.ini method. Because the function of the code we use in this method is same as what we put in the php.ini file.You just need to place the code ini_set(『memory_limit』,』128M』); in the 『wp-config.php』 file which is placed in the root folder of your WordPress installation.
Tip 5: Have a talk with your HostIf you are a person who is new to all these techie sounding things then it』s better to have a Live Chat / a Call with your Host right away. It』s your right to talk to them & get the necessary changes you need as you』re paying for it.
Is Your Site Running Slow?
If your site is not running as fast as you』d like, there could be a few different issues. Our live demo is a representation of how fast your site could be. Results will vary though, depending on the items below. This post will outline the common issues that can slow down your site, and some of the steps you can take to speed it up.
PluginsPlugins are one of the awesome aspects of WordPress. We can find a plugin that does a specific job, install it, and have that functionality out of the box. But plugins do add to the number of requests the site makes when loading a page, so it』s best to be prudent when adding new plugins.
There is no specific number of plugins that will affect the speed of your site. It』s usually not too many plugins that cause problems on your website, but instead poorly coded ones. Poorly coded plugins can cause websites to crash, affect page speed, and introduce security risks, so they can often be the weakest link. Don』t just add plugins randomly without careful evaluation of their quality.
The basic rule of thumb when adding plugins to your site is only to add a plugin if you really need that functionality. And then, choose wisely from the repository. There is a great review system to help you, so it makes sense to choose plugins from well respected plugin authors and ones that get 5 stars and great reviews.
Finally, make sure you review your site regularly, removing any plugins you are not using, including inactive ones and keep all plugins updated at all times.
Use A Caching PluginOne plugin that should be high on your list is a caching plugin. Caching plugins are created to help speed up your site. Your site』s loading time will certainly decrease when you use one. They can be difficult to configure, but a well configured caching plugin will definitely shave some time off your page loading times.
There are many different caching plugins on the market; many are free and some are premium. In addition, your host may or may not allowed certain ones due to their own caching system. So there is not one solution for all. For more details on cache plugins please follow the link below.
Learn How To Use Caching PluginsImages / ContentIt is very critical that your images be optimized for the web. This is one of the most common reasons for slow websites. Having images larger than they need to be in file size, can drastically slow down your site speed. Also, it is equally important not to upload larger images than what is needed. For example, if you have an image that needs to be a featured blog image that will have a sidebar, then the image area is only about 670px wide. Determine the required size of your images based on the width of your site, as set in the Theme Options. We also recommend using an image editing tool like Photoshop to 「Save For Web」 to optimize images and reduce the overall file size.
A great tool to compress JPEGs and PNGs files is Compressor.io, it allows you to easily upload a file and then will auto compress it for you. There are also Image Optimization plugins such as ShortPixel and reSmush.it which can further optimize your images.
Read Our Comprehensive Guide On Image OptimizationServer / HostingSometimes slow speed can be a result of your hosting service. Some shared hosting services can be overcrowded and have a direct effect on speed. This is a very broad topic, but it is a simple fact, that some hosts are better than others. If you have checked the above two items and the site is still slow, the most likely it is a server/hosting issue. Contact your host and discuss it with them.
Enable / Disable Avada FeaturesWe include several options to disable theme features in the Avada > Theme Options > Advanced > Theme Features tab. If you know you won』t be using certain features on a website, then disabling them can have a small effect on load times.
With Avada 5.8, we have also implemented a range of new performance features. For a full rundown of the update, see What』s New in Avada 5.8. Many are behind the scenes, like Lazy Load, but there are also a few direct new performance features you can enable, like the new PWA plugin, which provides enhanced caching strategies, Font Face rendering, Emojis script disabling, and the existing feature, Dynamic CSS & JS.
Consider a CDNYour site may benefit from a CDN (Content Delivery Network), like Cloudflare. CDNs utilize their own servers which are located in between the origin infrastructure (server where the content is actually located) and the end users. CDNs cache content in servers that are located closer to the end user, which means faster access as the distance to traverse is shorter.
Consult A Performance Testing WebsiteThere are a range of website performance testing services available. These sites can analyse your site』s loading time and pinpoint the specific issues you need to address to speed up your loading time. We have recently published a series of documents on the leading Performance Testing websites. For specific information on each one, please see our Performance Testing Using Google PageSpeed Insights, Performance Testing Using Pingdom, Performance Testing Using GTmetrix, and Performance Testing Using WebPageTest documents.
Fatal Error: Call to a member function have_posts() on a non-object
If you receive this message when updating your theme, most likely you need to delete the header.php and footer.php from your child theme, and copy the same two files from the new parent theme. Sometimes major changes are done to those files, which can results in your child theme files needing updated. In the future, we are going to eliminate the need for this process.
Is Your Slider Not Showing On Mobile Devices?
If you have noticed that your slider is not responsive on mobile devices, then chances are you have either a 「fallback image」 inserted in page options, or you have a missing image in one of your sliders.
A fallback image is used to override the slider to show a single static image, and a missing image can prohibit some sliders from running correctly.
If a self-hosted or YouTube video is added to the Fusion Slide and the preview URL/fallback image is missing, the slide can also not show.
1. Make sure you do not have ANY missing images in the slider, all sublayers/backgrounds that have images must have correct URL』s.
2. Check for a fallback image inserted in the page options, it will override a responsive slider. See the image below for a visual representation.
500 Internal Server Error
If you just installed WordPress, a WordPress plugin, or a theme for your site, and out of nowhere your site returns a 500 Internal Server Error, please read on. If you have been surfing the web for any length of time, you have probably encountered a 500 internal server error. These errors are not confined to WordPress. They are generic errors that report very little on what the actual cause is. First, don』t panic. Lot』s of people have been confronted with these errors, and they can be fixed.
There are five major reasons why these errors occur in WordPress: Incorrect web server configuration Incorrect folder/file permissions Corrupt files or files that contain errors in code PHP memory limits set too low Conflicting third party plugins1. Incorrect web server configurationIf your web server (whether it be Apache or IIS) is configured with incorrect directives, they can cause 500 errors to occur. The problem is that web hosting support will often blame the error on software you have installed without even checking to see what is contained in their error logs. Just know that after you have checked the following remaining causes, and they fail to resolve the issue, you will need to (sometimes forcefully) get your web host to help diagnose and fix the problem.
2. Incorrect file permissionsWith very few exceptions, file permission for WordPress, plugins, and themes need to be set at 755 for folders, and 644 for files. You may think that setting permissions more loosely, like 777, will relieve the problem, but you would be wrong. Setting permissions either too strict or too loose often cause this and other errors.
3. Corrupt files or files that contain errors in codeUsually improper/errors in file transfers to the web server cause corruption to occur. It may look like the file is sitting there just fine, but something in the process caused the file to be unusable by the server. For example, if you uploaded a text file in binary language instead of ASCII it will render the file unreadable by the web server. Coding errors can also create this error, whether that be in WordPress, a plugin, or a theme.
Often, the only way to resolve an error in WordPress core is to reinstall WordPress.
If it is plugin related, deactivating all plugins will relieve the error.If it is theme related, deleting and reinstalling the theme will often take care of the problem.By far the most common 500 error produced by a file is related to the WordPress .htaccess file. The .htaccess file is primarily designed to be used with custom permalink structures. But it is also used by some third party plugins, and for overriding certain server configuration directives if allowed. If it contains errors, it can return the dreaded 500 internal server error. The .htaccess file is located in the root folder of your WordPress installation (not the theme).
Log into your site via FTP (Filezilla, etc.).
Download a copy of your .htaccess file and rename the copy e.g. 「.htaccess-backup」.
Delete the .htaccess file residing on your Web server.
Create a new blank file called 「.htaccess」 on your PC/laptop/Mac.
Upload this new file to your Web server in the same place as the original .htaccess (which you deleted).
Navigate to your WordPress admin URL, e.g. http://www.yoursite.com/wordpress/wp-admin, and you should now be able to log in.
Finally, once logged in, navigate to the Permalinks settings page in the admin console and do nothing further. Simply going to the settings page should enable WordPress to write the correct .htaccess declarations itself. You should now be able to nagivate to www.yoursite.com or http://www.yoursite.com/wordpress (depending on whether WordPress is running your entire site or just a blog etc.) and all should be well once more.
4. PHP memory limits set too low, There two ways to solve this problem.You can either get your web host to increase your PHP limits.You can upload your theme via an FTP client. We offer a video tutorial located in the Video section that explains how to use FTP to install your theme.5. Conflicting Third Party Plugins Should Be DeactivatedIf you can access the admin area of your site, log in to your admin section and deactivate all plugins. After doing so, check your front end page again. If it loads without error, you have a plugin conflict. Now, start activating each plugin one by one. When you see the 500 error again on the front end pages, you will know that the last plugin you activated is the likely culprit. Deactivate it and continue checking all remaining plugins one by one to make sure there are no others.If you are getting the 500 error on the front end and the back end admin area, then you will need to access your site via an FTP client. A little known trick is to change the name of your /wp-content/plugins folder to something else temporarily like 「plugins.bak.」 This will make WordPress ignore your plugins. Then check to see if this resolves the problem. If it does, log into your admin section and then change your plugin.bak folder back to plugins . Then deactivate all of your plugins via your admin page.Recommended PHP configuration limits are as follows: max_execution_time 180 memory_limit 128M post_max_size 32M upload_max_filesize 32MHow To Verify Your Current PHP LimitsYou can verify your PHP configuration limits by installing a simple plugin found here. In addition, you can always contact your host and ask them what the current settings are and have them adjust them if needed. Please note though that many hosts will try to keep the PHP limits low without reason. However you are paying for it, and therefor should be getting your money』s worth.
Are you sure you want to do this? Please try again.
If you are installing your theme from the WordPress theme installer, but get a message that says Are you sure you want to do this?, most likely your web server is configured with low PHP settings that only allow a certain size ZIP file to be uploaded via WP admin.
Most hosting companies configure their servers to only have the maximum file upload size limit at 8-10 MB, some are less. The Avada theme ZIP is currently about 8 MB in size. So if you get this error, your web server is rejecting the upload due to the overall size of the Avada.zip file. WordPress is unfortunately giving you a rather ambiguous message in response. This is not a theme issue or bug.
To Solve The ProblemYou can get your web host to increase your PHP limits so a larger zip file is allowed to be uploaded. They will know which limits to set if you explain the issue.You can upload your theme via FTP. View our video tutorial in the Video section of the forum to learn how to install your theme via FTP. It is very easy and efficient.Recommended PHP Configuration Limitsmax_execution_time 60memory_limit 128Mpost_max_size 48Mupload_max_filesize 48MYou can verify your PHP configuration limits by going to the Avada > System Status tab in the WordPress admin area. Or by installing a simple plugin called WordPress phpinfo().
Common Issues – Broken Theme & Stylesheet Missing Errors
Some common issues you might run into when installing a WordPress theme are the 「Broken Themes…」 and 「Stylesheet Missing…」 error messages. This does not mean the theme you are using is broken or does not work; it means the theme has been uploaded incorrectly. Thankfully, Envato has a nice post about this information. Please see the link below to solve these two issues.
View The Envato Help Page For These Two Errors