server – XTRA Tutorials https://xtratheme.com/docs Documentation of XTRA WordPress Theme Thu, 31 Jul 2025 16:43:53 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.2 How to Fix ‘AJAX Requested Name Is Empty’ Error? https://xtratheme.com/docs/how-to/how-to-fix-ajax-requested-name-is-empty-error/ https://xtratheme.com/docs/how-to/how-to-fix-ajax-requested-name-is-empty-error/#respond Tue, 08 Oct 2024 07:31:29 +0000 https://xtratheme.com/docs/?p=4567

Fix ‘AJAX Requested Name Is Empty’ Error

Step 1
Xtra

To fix the “AJAX requested name is empty, please try again” error, you should check your server settings to ensure the following configurations are properly set. These settings help improve performance and prevent potential issues with AJAX and request handling:

  • memory_limit 256M
    This sets the minimum memory allocation for the server to run scripts. Setting it to 128MB prevents memory exhaustion errors.
  • max_execution_time 60
    This defines the maximum amount of time a script is allowed to run before being terminated. Setting it to 60 seconds helps avoid timeout errors.
  • post_max_size 8M
    This limits the maximum size of POST data that can be sent to the server. Make sure it’s set to 8MB by default to avoid data transfer issues.
  • upload_max_filesize 8M
    This parameter controls the maximum file size that can be uploaded through requests. 8MB is generally sufficient for most upload operations.
  • allow_url_fopen ON
    This setting enables scripts to access files via external URLs. It’s important to have this turned ON for certain AJAX operations and external request handling.

To check and modify these settings, you need to edit your server’s php.ini file and ensure the above values are configured correctly. After making the changes, restart your server for them to take effect.

]]>
https://xtratheme.com/docs/how-to/how-to-fix-ajax-requested-name-is-empty-error/feed/ 0
How to Delete Problematic Plugins via FTP to Fix Website Issues? https://xtratheme.com/docs/how-to/how-to-delete-problematic-plugins-via-ftp-to-fix-website-issues/ https://xtratheme.com/docs/how-to/how-to-delete-problematic-plugins-via-ftp-to-fix-website-issues/#respond Sun, 06 Oct 2024 12:07:12 +0000 https://xtratheme.com/docs/?p=4564

Resolving an issue on a WordPress by using FTP

Step 1
Xtra

When a WordPress plugin causes problems on your site (such as crashes, slow loading times, or conflicts with other plugins), you may not be able to access the WordPress admin dashboard to deactivate or delete the plugin. In such cases, using FTP is a direct method to remove the plugin files from your server and restore site functionality.

Steps involved:

  1. Connect via FTP: You’ll need an FTP client (such as FileZilla) and your website’s FTP login credentials from your hosting provider to access your site files.
  2. Navigate to Plugin Directory: Once connected via FTP, go to the WordPress installation directory (often located in /public_html/) and find the folder /wp-content/plugins/.
  3. Delete the Problematic Plugin: Locate the specific plugin folder that’s causing issues. You can either delete the plugin folder completely or rename it (so that it’s deactivated but still available for troubleshooting).
  4. Check the Website: After deleting or renaming the plugin folder, check your website to see if it’s functioning correctly again.

This approach is a manual way to remove problematic plugins when you don’t have access to the WordPress admin area.

]]>
https://xtratheme.com/docs/how-to/how-to-delete-problematic-plugins-via-ftp-to-fix-website-issues/feed/ 0
How to Move a WordPress Website from Localhost to an Online Server (Step-by-Step Guide)? https://xtratheme.com/docs/how-to/how-to-move-a-wordpress-website-from-localhost-to-an-online-server/ https://xtratheme.com/docs/how-to/how-to-move-a-wordpress-website-from-localhost-to-an-online-server/#respond Sun, 15 Sep 2024 14:14:34 +0000 https://xtratheme.com/docs/?p=4190

Moving a WordPress website from a localhost

Step 1
Step01

Export the Local WordPress Database

Moving a WordPress website from a localhost environment to an online server involves several steps. Here’s a detailed guide on how to do it:

  1. Access phpMyAdmin: Open phpMyAdmin from your localhost environment (usually via http://localhost/phpmyadmin).
  2. Select Your Database: In phpMyAdmin, select the database you used for your local WordPress site.
  3. Export the Database:

Click on the “Export” tab.

Choose the “Quick” method and ensure the format is set to “SQL”.

Click “Go” to download the .sql file.

Step02

Upload WordPress Files to the Online Server

  • Access Your Hosting Server via FTP: Use an FTP client (like FileZilla) to connect to your online hosting server.
    • Use the credentials provided by your web host (FTP username, password, host, port).
  • Upload Your WordPress Files:
    • Navigate to your local WordPress directory (htdocs/your-site on MAMP/XAMPP).
    • Select all the files and folders (including wp-content, wp-admin, and wp-includes), and upload them to your hosting server’s root directory (usually /public_html or /www).
Step03

Create a New Database on the Hosting Server

  • Log into your Hosting Control Panel: (e.g., cPanel or Plesk).
  • Create a New Database:
    • Go to the “MySQL Databases” section and create a new database.
    • Create a new MySQL user and assign it to the database with full permissions.
  • Import the Local Database:
    • Open phpMyAdmin on your hosting server.
    • Select the new database you just created.
    • Go to the “Import” tab, click “Choose File,” and upload the .sql file you exported earlier.
    • Click “Go” to import the database.
Step04

Update the wp-config.php File

  • Edit wp-config.php: In your FTP client, locate the wp-config.php file you uploaded.
  • Update Database Credentials:
    • Change the database name, username, and password to match the new details from the online server.
Define
Step05

Update Site URL in the Database

  • Access phpMyAdmin on your hosting server.
  • Navigate to the wp_options table in your new database.
    • Look for the siteurl and home rows.
    • Update both URLs to your live website’s domain (e.g., https://www.yoursite.com)
Step06

Update Permalinks and Fix Broken Links

  • Log in to Your WordPress Dashboard on the live site (it will be the same admin details from the localhost site).
  • Go to Settings → Permalinks:
    • Re-save the permalinks to ensure they are correctly set up on the live server.
  • Check for Broken Links: Ensure all internal links and media (images, etc.) are working correctly. Use a plugin like “Better Search Replace” to fix any broken links that still point to the localhost URLs.
Step07

Test Your Website

  • Open your site in a browser and test all functionality, including forms, media, and plugins.
  • Ensure the website is working as expected.
Tips

Optional: Set Up a Redirect (if necessary)

  • If you had an existing site or different domain name, set up 301 redirects to ensure your old URLs redirect to the new ones.
  • This process should successfully move your WordPress website from localhost to a live server.
]]>
https://xtratheme.com/docs/how-to/how-to-move-a-wordpress-website-from-localhost-to-an-online-server/feed/ 0
How to Fix Timeout Errors? https://xtratheme.com/docs/how-to/how-to-fix-timeout-errors/ https://xtratheme.com/docs/how-to/how-to-fix-timeout-errors/#respond Tue, 10 Sep 2024 08:57:20 +0000 https://xtratheme.com/docs/?p=4155

Description

Step 1
Xtra

Fix Timeout Errors

A timeout error occurs when a server or service takes too long to respond to a request, causing the connection to terminate. This is a common issue in WordPress websites that can arise from various factors, including server overload, poor network connectivity, or misconfigurations. Timeout errors are often seen in browsers as a “504 Gateway Timeout” or “408 Request Timeout” and can also occur in database connections, APIs, or any service that depends on a server response.

Here’s a breakdown of how to fix timeout errors, especially when they relate to server-side or network issues:

1. Check Your Internet Connection

  • If you’re experiencing a timeout error while trying to access a website or service, the first step is to ensure your internet connection is stable. If the connection is weak or unstable, it can cause delays that result in a timeout error.
  • Solution: Restart your router, switch to a different network, or use a wired connection.

2. Clear Browser Cache and Cookies

  • Sometimes, cached files or cookies in your browser can interfere with the proper loading of websites, causing timeouts.
  • Solution: Clear your browser’s cache and cookies, then reload the page.

3. Check Server Status

  • If the timeout error is happening on your website or application, the issue may be server-side. It could be due to server overload, high traffic, or resource limitations.
  • Solution: Use a service like UptimeRobot or Pingdom to check the status of your server. If your server is down, contact your hosting provider to resolve the issue.

4. Increase Server Timeout Settings

  • Timeout errors can be caused by server settings that restrict how long the server waits for a response before terminating the connection.
  • Solution: Increase the timeout limit in your server’s configuration. For Apache servers, this can be done by adjusting the Timeout directive in the httpd.conf file:For NGINX, you can increase the proxy_read_timeout or proxy_connect_timeout settings.

5. Optimize Server Resources

  • If your server is frequently timing out due to high traffic or resource strain, it may not be properly optimized.
  • Solution: Consider upgrading your hosting plan to handle more traffic, or optimize your server’s performance by:
    • Enabling caching to reduce load on the server.
    • Using a Content Delivery Network (CDN) to distribute traffic and reduce server strain.
    • Optimizing database queries to reduce execution time.

6. Check Firewall or Security Settings

  • Sometimes firewalls or security configurations can block connections or delay responses, resulting in timeout errors.
  • Solution: Review your firewall settings to ensure they are not blocking legitimate traffic or responses. You may need to whitelist certain IP addresses or services.

7. Fix Database Issues

  • If the timeout error is related to a database connection (for example, if a web application cannot retrieve data quickly enough), it could be due to poorly optimized queries or database overload.
  • Solution: Optimize your database queries and indexes. Additionally, you can increase the connection timeout limit in your database configuration (e.g., in MySQL, the wait_timeout setting).

8. Reduce External API Calls

  • If your application relies on external APIs that are slow to respond, this can lead to a timeout error.
  • Solution: Implement retry logic in your code to handle slow API responses or timeouts gracefully. You may also want to cache API responses to reduce the frequency of calls.

9. Check for DNS Issues

  • Timeout errors can occur due to Domain Name System (DNS) misconfigurations or slow DNS resolution.
  • Solution: Use tools like Google Public DNS or Cloudflare’s DNS to speed up DNS resolution. You can also flush your local DNS cache.

10. Contact Hosting Provider or System Administrator

  • If you’ve tried everything and are still facing timeout errors, the problem could be more complex or related to your hosting provider’s infrastructure.
  • Solution: Contact your hosting provider or system administrator to investigate server logs, identify the root cause, and apply appropriate fixes.

Common Causes of Timeout Errors:

  • Server overload: The server is handling too many requests at once.
  • Network issues: Poor or unstable internet connection.
  • Firewall issues: Security settings blocking traffic.
  • Slow or unresponsive external services: Delays from APIs or external resources.
  • Improper server configuration: Timeout limits too short or other misconfigurations.

Tip

It’s better to know that…

Fixing a timeout error often involves identifying whether the issue is on the server, network, or client side. By checking server status, optimizing resources, increasing timeout limits, and addressing potential firewall or DNS issues, you can resolve most timeout errors and improve the performance and reliability of your website or application.

]]>
https://xtratheme.com/docs/how-to/how-to-fix-timeout-errors/feed/ 0
How to Set max_execution_time to 300 in PHP: A Step-by-Step Guide https://xtratheme.com/docs/how-to/how-to-set-max-execution-time-to-300-in-php-a-step-by-step-guide/ https://xtratheme.com/docs/how-to/how-to-set-max-execution-time-to-300-in-php-a-step-by-step-guide/#respond Sun, 01 Sep 2024 09:38:21 +0000 https://xtratheme.com/docs/?p=3881

Description and Screenshot

Step 1
XTRA

Setting the max_execution_time to 300

Setting the max_execution_time to 300 seconds in a PHP environment allows scripts to run for up to 5 minutes before timing out. Here’s how you can adjust this setting, depending on your hosting environment:


1. Modify the php.ini File

If you have access to the php.ini file (the main PHP configuration file), you can change the max_execution_time setting directly.

 

Step 1: Locate the php.ini File

  • The php.ini file is usually located in your server’s PHP installation directory. The exact location can vary depending on your server setup (e.g., /etc/php/8.x/apache2/php.ini for Apache on Linux).

Step 2: Edit the php.ini File

  • Open the php.ini file in a text editor.

Step 3: Find and Modify the max_execution_time Directive

  • Search for the max_execution_time directive in the file. It should look something like this:



Step 4: Save and Restart the Web Server

  • Save the changes and close the file.
  • Restart your web server (Apache, Nginx, etc.) for the changes to take effect.

2. Modify .htaccess File

If you don’t have access to the php.ini file, and you’re using an Apache server, you can change the max_execution_time in your .htaccess file.

 

Step 1: Edit the .htaccess File

  • The .htaccess file is typically found in the root directory of your WordPress installation or public HTML directory.

Step 2: Add the max_execution_time Directive

  • Add the following line to the .htaccess file: php_value max_execution_time 300

Step 3: Save the File

  • Save the changes to the .htaccess file. The new setting should take effect immediately.

3. Modify WordPress wp-config.php File

If you cannot modify php.ini or .htaccess, you can try setting the max_execution_time in your WordPress wp-config.php file.

Step 1: Edit wp-config.php

  • The wp-config.php file is located in the root directory of your WordPress installation.

Step 2: Add the PHP Execution Time Code

  • Add the following line to the file, near the top:

 

Step 3: Save the File

  • Save and upload the wp-config.php file back to your server.

4. Using cPanel or Hosting Control Panel

If your hosting provider uses cPanel or a similar control panel, you can often adjust PHP settings directly from there.

 

Step 1: Log in to cPanel

  • Log in to your cPanel account.

Step 2: Navigate to PHP Settings

  • Look for the Select PHP Version or MultiPHP INI Editor under the Software section.

Step 3: Adjust max_execution_time

  • Find the max_execution_time setting and changing it to 300.

Step 4: Save the Changes

  • Save the settings. The new configuration should take effect immediately.

5. Contact Hosting Provider

If you don’t have access to any of the above, you may need to contact your hosting provider to request an increase in the max_execution_time

]]>
https://xtratheme.com/docs/how-to/how-to-set-max-execution-time-to-300-in-php-a-step-by-step-guide/feed/ 0
How to Fix an Internal Server Error? https://xtratheme.com/docs/how-to/how-to-fix-an-internal-server-error/ https://xtratheme.com/docs/how-to/how-to-fix-an-internal-server-error/#respond Fri, 14 Jun 2024 07:24:38 +0000 https://xtratheme.com/docs/?p=2559

Description and Steps

Step 1
XTRA

How to fix internal server error?

Internal Server Error is a general error message that given when no more specific message is suitable. There are a number of causes for a Internal Server Error to display in your web browser. Above is a sample of error message.

There can be a number of reasons for an Internal Server Error, Here are some thing you can do to solve it.

  • The most likely issue is a corrupted .htaccess file. Log in to your server root using FTP and rename your .htaccess file to .htaccess_old. Try loading your site to see if this has solved your problem or no. If it works, make sure to visit Settings > Permalinks and reset your Permalinks. This will generate a new .htaccess file for you site
  • Try Deactivating all of your Plugins to see if it is a Plugin issue. If you are unable to access your WordPress Administration Screens, deactivate your Plugins via FTP by following these instructions.
  • Switch the Theme to the WordPress Default Theme to eliminate any Theme-related problems
  • Increase the PHP Memory limit
  • Try re-uploading the wp-admin and wp-includes folders from a fresh install of WordPress
]]>
https://xtratheme.com/docs/how-to/how-to-fix-an-internal-server-error/feed/ 0
How to Fix HTTP ERROR 500: A Comprehensive Troubleshooting Guide? https://xtratheme.com/docs/how-to/how-to-fix-http-error-500-a-comprehensive-troubleshooting-guide/ https://xtratheme.com/docs/how-to/how-to-fix-http-error-500-a-comprehensive-troubleshooting-guide/#comments Fri, 14 Jun 2024 06:57:48 +0000 https://xtratheme.com/docs/?p=2547

Description and Steps

Step 1
XTRA

How to fix HTTP error 500?

To fix HTTP error 500 on your site, follow this steps:

  • Upgrade your server PHP to version 8.3 or at least 8.1
  • WordPress recommended PHP 8.3 or greater, You can read here: https://wordpress.org/about/requirements/
  • Increase your server PHP memory limit to at least 256M
  • Check your server error log file and WordPress debug.log file

If you can’t do it, Contact with your server support and ask for upgrading your PHP to version 8.3 or above and PHP memory limit to 256M

Still need help? – If still can’t see your website and getting error 500, you can contact with your server support.

]]>
https://xtratheme.com/docs/how-to/how-to-fix-http-error-500-a-comprehensive-troubleshooting-guide/feed/ 2
Essential Server Requirements and PHP Configuration: A Complete Guide https://xtratheme.com/docs/getting-started/essential-server-requirements-and-php-configuration-a-complete-guide/ https://xtratheme.com/docs/getting-started/essential-server-requirements-and-php-configuration-a-complete-guide/#respond Thu, 13 Jun 2024 13:03:56 +0000 https://xtratheme.com/docs/?p=2503

Description and Steps

Step 1
XTRA

Server requirements

To use our WordPress Theme, you must be running latest WordPress version or at least version 6, and PHP 8.3 or higher version ( WordPress officially suggests to use PHP 8.3 or above ) and MySQL version 8 or higher version. Our theme has been tested with Mac, Windows and Linux. Below is a checklist of PHP configuration that your host needs to comply with to ensure proper our theme operation:

  • memory_limit 256M
  • max_execution_time 30
  • post_max_size 8M
  • upload_max_filesize 5M
  • max_input_vars 6000
  • allow_url_fopen ON
Tips

You may want to know …

]]>
https://xtratheme.com/docs/getting-started/essential-server-requirements-and-php-configuration-a-complete-guide/feed/ 0