<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged qa_create_new_user</title>
<link>https://www.question2answer.org/qa/tag/qa_create_new_user</link>
<description>Powered by Question2Answer</description>
<item>
<title>undefined function qa_to_override() error while working with qa_create_new_user()</title>
<link>https://www.question2answer.org/qa/45347/undefined-function-qa_to_override-working-qa_create_new_user</link>
<description>

&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;I am on the latest version and I was trying to create a user account programmatically with the help of qa_create_new_user(). Here is my entire code snippet I am using right now. I actually don't have any idea about where should I place my script file. So as of now I just placed it inside qa-include directory with a name user-import.php. This is the content of the file :&amp;nbsp;&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;&amp;lt;?php
&lt;br&gt;define('QA_VERSION', '1.7.0');
&lt;br&gt;define('QA_BASE_DIR', dirname(dirname(empty($_SERVER['SCRIPT_FILENAME']) ? __FILE__ : $_SERVER['SCRIPT_FILENAME'])).'/');
&lt;br&gt;define('QA_EXTERNAL_DIR', QA_BASE_DIR.'qa-external/');
&lt;br&gt;define('QA_INCLUDE_DIR', QA_BASE_DIR.'qa-include/');
&lt;br&gt;define('QA_LANG_DIR', QA_BASE_DIR.'qa-lang/');
&lt;br&gt;define('QA_FINAL_EXTERNAL_USERS', true);
&lt;br&gt;error_reporting(E_ALL);&lt;/p&gt;

&lt;p&gt;require_once 'qa-app-blobs.php';
&lt;br&gt;require_once 'qa-app-users.php';
&lt;br&gt;require_once 'qa-app-users-edit.php';
&lt;br&gt;require_once QA_INCLUDE_DIR.'db/blobs.php';&lt;/p&gt;

&lt;p&gt;$response = qa_create_new_user('jango@gmail.com', 'password123', 'jango', QA_USER_LEVEL_BASIC, true);
&lt;br&gt;var_dump($response);&lt;/p&gt;

&lt;p&gt;?&amp;gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;The problem of executing this file is that I am getting a fatal error. It says :&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;&lt;strong&gt;Fatal error&lt;/strong&gt;: Call to undefined function qa_to_override() in &lt;strong&gt;..[pathname]/qa-include/app/users-edit.php&lt;/strong&gt; on line &lt;strong&gt;155&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Can any one tell me what I am doing wrong (I am pretty sure that I am doing something wrong since I am new.). Any kind of help will be appreciated from the bottom of my heart :)&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Thank you.&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/45347/undefined-function-qa_to_override-working-qa_create_new_user</guid>
<pubDate>Sat, 16 May 2015 13:59:21 +0000</pubDate>
</item>
</channel>
</rss>