By default Q2A Supports the content length up to 12000.

You can follow below steps if you want to change the content length of the question.

If you have not installed Q2A yet, then the process is really simple.

You need to just update the QA_DB_MAX_CONTENT_LENGTH setting in qa-config.php by adding below line at the bottom
define(‘QA_DB_MAX_CONTENT_LENGTH’, 18000);

Follow below steps if you have already installed Q2A

  1. Take a database backup
  2. Login into MySQL using phpmyadmin and select your q2a database
  3. Execute below query to increase the length of the content column in q2a posts table
    ALTER TABLE `qa_posts` MODIFY `content` VARCHAR(18000);
  4. You need to execute below SQL query if you are using blog plugin. This will increase the content column length for the blog posts table.
    ALTER TABLE `qa_blogs` MODIFY `content` VARCHAR(18000);
  5. Update the QA_DB_MAX_CONTENT_LENGTH setting in qa-config.php by adding below line at the bottom of the file.
    define(‘QA_DB_MAX_CONTENT_LENGTH’, 18000);

And You are all set.

You need to make sure you are using right table prefixes and the desired length. In this example the table prefix is assumed as q2a_ and desired length as 18000

Published by Q2A Store

Leave a Reply

Your email address will not be published. Required fields are marked *