Announcement

#1 2011-08-24 20:33:44

Melissa
Guest

Error on comments.php page

Notice: Undefined index: QUERY_STRING in /hermes/bosweb26a/b1954/sl.sweetcakes/thatsmydiapercake/gallery/include/functions.inc.php on line 650

Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosweb26a/b1954/sl.sweetcakes/thatsmydiapercake/gallery/include/functions.inc.php:650) in /hermes/bosweb26a/b1954/sl.sweetcakes/thatsmydiapercake/gallery/include/page_header.php on line 98

http://www.thatsmydiapercake.com/gallery/comments.php

Any help in why I am getting this error only on my comments.php page? If i am logged in as admin, I get the message repeated about 20 times, if I am a guest only once.

thank you

 

#2 2011-08-27 10:55:47

jovker
Member
2011-08-24
20

Re: Error on comments.php page

我也遇到了 相同的错误

不知该如何修复这个错误


Uploaded Images

Offline

 

#3 2011-08-30 12:56:20

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13123

Re: Error on comments.php page

I don't reproduce this bug. Can you apply the following change and tell me if it works any better?

In include/functions.inc.php, line 656, replace:

Code:

function get_query_string_diff($rejects=array(), $escape=true)
{
  $query_string = '';

bye

Code:

function get_query_string_diff($rejects=array(), $escape=true)
{
  if (empty($_SERVER['QUERY_STRING']))
  {
    return '';
  }
  
  $query_string = '';

Latest blog post (November 28th 2017) Server failures in october and november 2017

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2018 · Contact