Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
148 views
in Q2A Core by

If QA_DEBUG_PERFORMANCE in qa-config.php is set to true, errors will occur in some plugins. In my case, error is shown on plugin option setting. This seems to be due to strange lines added in V1.8.1.

For example: qa-include/qa-app-updates.php

if (defined('QA_DEBUG_PERFORMANCE') && QA_DEBUG_PERFORMANCE) {
trigger_error('Included file ' . basename(FILE) . ' is deprecated');
}

Does this happen at your site?

Q2A version: V1.8.1 ~

1 Answer

+2 votes
by

As of v1.7.x the right approach to include that file is:

require_once QA_INCLUDE_DIR . 'app/updates.php';

In v1.9.x all plugins that don't update this behaviour will stop working (even if debug mode is disabled).

by
Yes this is exactly correct. The point of the warnings is to notify about deprecated features so you can update your includes.
by
These changes will accelerate the gap between users and developers.
...