Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
839 views
in Q2A Core by
Things are working smoothly on production. However, there is a need to change a few php.ini settings on my public_html folder.

Every time i create the php.ini file, this results in the following errors on my page. The php version is 7.0.4.

Is there anything i can do to resolve these ?

Notice: Undefined variable: _SERVER in /home/public_html/qa-include/qa-index.php on line 126

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/public_html/qa-include/qa-index.php:126) in /home/public_html/qa-include/app/users.php on line 146

Notice: Undefined variable: _SERVER in /home/public_html/qa-plugin/q2a-caching/qa-caching-main.php on line 144

Notice: Undefined variable: _SERVER in /home/public_html/qa-plugin/q2a-caching/qa-caching-main.php on line 144

Notice: Undefined variable: _SERVER in /home/public_html/qa-include/qa-base.php on line 1113

Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/qa-include/qa-index.php:126) in /home/public_html/qa-include/app/users.php on line 1067

Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/qa-include/qa-index.php:126) in /home/public_html/qa-include/qa-page.php on line 384
Q2A version: 1.7.4

1 Answer

0 votes
by
Strange issue, seems like your server is not allowing using the $_SERVER variable.

Could be a server config issue like this: http://z9.io/2015/02/12/php-notice-undefined-variable-_server-in/

You'll probably need to check with your host.
...