[phpBB3] phpBB 3.0.7-PL1 problems.

Magic SEO URLs for phpBB.
ajo
Posts: 2
Joined: Sun Sep 19, 2010 5:00 am

[phpBB3] phpBB 3.0.7-PL1 problems.

Postby ajo » Sun Sep 19, 2010 9:51 am

Hi!,

We have installed magicseo on our phpBB3 forum, and we get this error when enabled:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/magic_seo_url.php on line 0:
Undefined index: query
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4284:
Cannot modify header information - headers already sent by (output
started at /includes/functions.php:3493)


Our version is: 3.0.7-PL1
Our url: http://foromandarines.com/ (currently we commented the installation line)

Thanks in advance.

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [phpBB3] phpBB 3.0.7-PL1 problems.

Postby inveo » Sun Sep 19, 2010 10:01 am

It is just a notice. There is nothing wrong.

ajo
Posts: 2
Joined: Sun Sep 19, 2010 5:00 am

Re: [phpBB3] phpBB 3.0.7-PL1 problems.

Postby ajo » Sun Sep 19, 2010 4:21 pm

Well, nothing wrong would be "no output", but this event is triggering out the warning to the HTTP channel, so latter the forum cannot set HTTP headers anymore, and I won't talk about aesthetics.... hmm....

How could we fix it?

And why does it complain about undefined index "query" ?

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [phpBB3] phpBB 3.0.7-PL1 problems.

Postby inveo » Sun Sep 19, 2010 4:39 pm

The reason why you are getting the notice (neither error or warning) is because your PHP is configured to show E_NOTICE (btw it is hardly recommended to do not show errors, warnings or notices directly to the output due to security reasons on the live site).
Change your PHP settings in php.ini or place the following code to the beginning of common.ohp file:

Code: Select all

@error_reporting(E_ALL & ~E_NOTICE);


or even better:

Code: Select all

@ini_set('display_errors', 0);