Code: Select all
Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\wamp\www\ASFF\template.php:103) in C:\Program Files\wamp\www\ASFF\phpBB3\includes\functions.php on line 2498
Code: Select all
General Error
Illegal use of $_GET. You must use the request class or request_var() to access input data. Found in C:\Program Files\wamp\www\ASFF\gallery.php on line 135. This error message was generated by deactivated_super_global.
BACKTRACE
FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()
FILE: [ROOT]/phpbb/request/deactivated_super_global.php
LINE: 67
CALL: trigger_error()
FILE: [ROOT]/phpbb/request/deactivated_super_global.php
LINE: 87
CALL: phpbb\request\deactivated_super_global->error()
FILE: C:/Program Files/wamp/www/ASFF/gallery.php
LINE: 135
CALL: phpbb\request\deactivated_super_global->offsetGet()
FILE: C:/Program Files/wamp/www/ASFF/template.php
LINE: 145
CALL: include('C:/Program Files/wamp/www/ASFF/gallery.php')
FILE: C:/Program Files/wamp/www/ASFF/index.php
LINE: 51
CALL: include('C:/Program Files/wamp/www/ASFF/template.php')
Code: Select all
http://localhost/ASFF/index.php?gallery=&category=none
Code: Select all
// temporarily enable superglobals
$request->enable_super_globals();
// TODO: do your stuff here.
// disable superglobals again
$request->disable_super_globals();
Thanks - but this doesn't work.Darkseal wrote: Mon Oct 31, 2016 12:05 am Programmatically
This is a sample code that can be used to temporarily enable superglobals (per-request scope):
Code: Select all
// temporarily enable superglobals $request->enable_super_globals(); // TODO: do your stuff here. // disable superglobals again $request->disable_super_globals();