[phpBB3] phpBB 3.0.7-PL1 problems.

Technical difficulties? Ask for help here.

[phpBB3] phpBB 3.0.7-PL1 problems.

Postby ajo » Sun Sep 19, 2010 8: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.
ajo
 
Posts: 2
Joined: Sun Sep 19, 2010 4:00 am

Re: [phpBB3] phpBB 3.0.7-PL1 problems.

Postby ~J~ » Sun Sep 19, 2010 9:01 am

It is just a notice. There is nothing wrong.
Magic SEO URLs are now available for
osCommerce, CRE Loaded, Zen Cart, PrestaShop, OpenCart, CubeCart, phpBB and phpBB3!
~J~
InveoStore.com Founder
 
Posts: 1056
Joined: Sat Feb 02, 2008 11:07 am
Location: Prague, Central Europe

Re: [phpBB3] phpBB 3.0.7-PL1 problems.

Postby ajo » Sun Sep 19, 2010 3: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" ?
ajo
 
Posts: 2
Joined: Sun Sep 19, 2010 4:00 am

Re: [phpBB3] phpBB 3.0.7-PL1 problems.

Postby ~J~ » Sun Sep 19, 2010 3: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);
Magic SEO URLs are now available for
osCommerce, CRE Loaded, Zen Cart, PrestaShop, OpenCart, CubeCart, phpBB and phpBB3!
~J~
InveoStore.com Founder
 
Posts: 1056
Joined: Sat Feb 02, 2008 11:07 am
Location: Prague, Central Europe


Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 12 guests