Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
218 views
in Q2A Core by
we have integrated the Q2A into our existing website and like it alot. However we are struggling with one aspect.... we have a function that includes global variables and its causing fatal error when entering the forum directly.

 

example:

$ultraArray = getUltraArray();

$ultraObject = getUltraObject();

 

function ourFunction($variable) {

global $ultraObject, $ultraArray;

...

}

When accessing the forum the $ultraObject and $ultraArray are NULL within the function even though they are set immediatly before hand.

I understand this may be a rookie mistake or oversight - but any guidance into properly configuring Q2A here is appreciated!!!

Please log in or register to answer this question.

...