News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Undefined index error in QueryString.php

Started by floridaflatlander, December 30, 2013, 10:59:09 AM

Previous topic - Next topic

floridaflatlander

I've been looking at my error log for the last month or so and I keep getting

"mod_fcgid: stderr: PHP Notice:  Undefined index: server in /home/outdooru/public_html/forum/Sources/QueryString.php on line 470"

At line 469 I have


// This should work even in 4.2.x, just not CGI without cgi.fix_pathinfo.
if (!empty($modSettings['queryless_urls']) && (!$context['server']['is_cgi'] || @ini_get('cgi.fix_pathinfo') == 1 || @get_cfg_var('cgi.fix_pathinfo') == 1) && ($context['server']['is_apache'] || $context['server']['is_lighttpd']))


Any ideas on how to get rid of this error?

Thanks

Oldiesmann

$context['server'] is set in the loadTheme() function in Sources/Load.php, so the error you're getting would indicate that ob_sessrewrite is being called before the theme is loaded. What mods do you have installed? Is there a specific URL or other info associated with this error?
Michael Eshom
Christian Metal Fans

floridaflatlander

Thanks

The referrer is http://www.mysite.com/photographs/thumbnails.php?album=4&page=1 or any album # all from mysite/coppermine

My other mods are the standard Bad Behavior, Stop Spammer and httpBL but they aren't listed in the error file

Angelina Belle

And yet the forum and the gallery both seem to work.
If you are using SMF 2.0.x, I assume you are using coppermine with the coppermine-supplied SMF bridge. 
Is that correct?

Did you install any coppermine thing from the SMF package manager?
Have you contacted the folks at coppermine about this problem?  Whoever wrote the SMF bridge might understand why SMF is trying to deal with the query string before $context['server'] is defined.

Answering your question just might require combining the knowledge of those who know SMF inside and out, and those who know coppermine's SMF bridge inside and out.  It is possible that these are two different groups of people.  But I don't know enough to know if this is the case or not.
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

SomaliDoc

I have the same problem, any solutions so far..

Deaks

SomaliDoc, if you are having issues please post a new topic.
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Advertisement: