Welcome to Geeklog, Anonymous Thursday, January 09 2025 @ 03:10 pm EST

Geeklog Forums

Error on Changing site name in config.php


morales

Anonymous
I wanted to change the site name from "Another geeklog site" to my site name. So i went to the portal_files and edited the site details. I now get this error -
Warning: Cannot modify header information - headers already sent by (output started at /home/morales/portal_files/config.php:437) in /home/morales/portal_files/system/lib-sessions.php on line 159
Warning: Cannot modify header information - headers already sent by (output started at /home/myserver/portal_files/config.php:437) in /home/myserver/portal_files/system/lib-sessions.php on line 171
What can i do to fix this please? Thanx in advance to any replys.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany

Make sure your site name is properly enclosed in single quotes. Also, if you have a single quote in your site name, e.g. Tom's Site, then you need to "escape" it with a backslash.

Text Formatted Code
$_CONF['site_name'] = 'Tom\'s Site';

bye, Dirk

 Quote

morales

Anonymous
Is this correct cos iam still getting them errors? $_CONF['site_name'] = 'mss'; $_CONF['site_slogan'] = 'mss'; $_CONF['site_mail'] = ''; $_CONF['theme'] = 'XSilver'; // default theme
 Quote

morales

Anonymous
Also the welcome message does no longer include the user name?? heres my site. http://www.mindsetsnipers.com/portal please help me ive tryed eveything now and no avail. Ive edited the config.php in both dir,the portal files and the public_html sections.
 Quote

Anonymous

Anonymous
I recommend you set these to something more meaningful: $_CONF['site_name'] = 'mss'; $_CONF['site_slogan'] = 'mss'; These two variables make up your pages' title and will appear in a visitor's favorites list when they bookmark your site. Right now, the page title will only say: mss - mss This needs to be set to your email address: $_CONF['site_mail'] = ''; Warnings like this.... Warning: Cannot modify header information - headers already sent by (output started at /home/morales/portal_files/config.php:441) in /home/morales/portal_files/system/lib-sessions.php on line 159 ....are almost always caused by extra spaces or lines above the <?php or below the ?>. They also can be caused by calling headers after they've already been sent by another part of the script or if you use output statements before headers are called. Since you are setting up brand new, it's probably extra spaces or lines. Just open up the files you already modified and remove the lines/spaces. It should get rid of those errors. Start with lib-common.php and config.php first and see if it goes away before doing the same on the other files.
 Quote

morales

Anonymous
Ok there are no spaces in there.Ive even returned the details to the default settings to check it out,no avail. When i log in its not displaying "Welcome to geeklog,morales" anymore and also it states iam online as logged in,but i have no access to admin. Its messed up bad isnt it? Iam depressed now,i wish i knew how to fix it all up.Frown
 Quote

Status: offline

rawdata

Forum User
Full Member
Registered: 02/17/03
Posts: 236
Probably the easiest way to fix it is to start over again with fresh copies of the files from the tarball. You probably don't have to replace them all just the ones you modified. If you can't remember which ones they are, then do at least the non-image ones. Don't feel bad. I think a lot of people mess up the first time they try. When I started, I got really weird errors and it turned out it was due to a couple corrupted files. As far as GL showing you online but you don't have access to the admin control panel, try refreshing your browser and see if that brings up the panel. I used to get the same thing periodically and had to hit refresh to see the CP. Since I changed my cookies format and commented out the refresh, I don't have that problem anymore.
 Quote

morales

Anonymous
Ok thanks m8 ill see what i can do Smile
 Quote

All times are EST. The time is now 03:10 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content