BLOG:CMS :: Support Forum

Support Forum for BLOG:CMS

You are not logged in.

#1 02.10.2005 09:01

melebard
BLOG:CMS Junior
Registered: 02.10.2005
Posts: 19

Photo Gallery Errors Post Install

When I try to login to Singapore post install these are the errors I recieve. I have chmod -R 777 photo directory.


Warning: Error parsing secret.ini.php on line 14 in /var/www/virtual/website.com/htdocs/photo/includes/config.class.php on line 41

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/virtual/website.com/htdocs/photo/includes/config.class.php:41) in /var/www/virtual/website.com/htdocs/photo/index.php on line 28

Warning: Cannot modify header information - headers already sent by (output started at /var/www/virtual/website.com/htdocs/photo/includes/config.class.php:41) in /var/www/virtual/website.com/htdocs/photo/index.php on line 32

Fatal error: Cannot redeclare class sguser in /var/www/virtual/website.com/htdocs/photo/includes/user.class.php on line 19

Offline

 

#2 02.10.2005 16:33

Radek Hulán
Site Admin
From: Prague, Czech Republic
Registered: 17.03.2004
Posts: 2509
Website

Re: Photo Gallery Errors Post Install

please upload latest htdocs/photo/includes/user.class.php, I think you upgraded BLOG:CMS, but not Photo Gallery


--= BLOG:CMS developer =--

Offline

 

#3 03.10.2005 03:55

melebard
BLOG:CMS Junior
Registered: 02.10.2005
Posts: 19

Re: Photo Gallery Errors Post Install

Thanks for that it almost works now,

I can now login however I am still getting these errors at the top of the page above the gallery, what can I do to fix it?


Warning: Error parsing secret.ini.php on line 14 in /var/www/virtual/website.com/htdocs/photo/includes/config.class.php on line 41

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/virtual/website.com/htdocs/photo/includes/config.class.php:41) in /var/www/virtual/website.com/htdocs/photo/admin.php on line 29

Warning: Cannot modify header information - headers already sent by (output started at /var/www/virtual/website.com/htdocs/photo/includes/config.class.php:41) in /var/www/virtual/website.com/htdocs/photo/admin.php on line 32

Last edited by melebard (03.10.2005 03:56)

Offline

 

#4 03.10.2005 11:45

Radek Hulán
Site Admin
From: Prague, Czech Republic
Registered: 17.03.2004
Posts: 2509
Website

Re: Photo Gallery Errors Post Install

Have you edited config.class.php or secret.ini.php? It seems there are some trailing spaces in the first one and some parsing error in the second one..


--= BLOG:CMS developer =--

Offline

 

#5 03.10.2005 13:57

melebard
BLOG:CMS Junior
Registered: 02.10.2005
Posts: 19

Re: Photo Gallery Errors Post Install

Hi Radek,

I have not edited the files - until just now - the fix was to comment out the following entries in secret.ini.php like this

;sql_user =
;sql_pass =

The file contents before they were edited.

secret.ini.php
__________________________________________________________
; singapore secret configuration file <http://singapore.sourceforge.net>
;
; <?php die("The contents of this file are hidden"); ?>
;
; these options are hidden from web users

[SQL]
;
; settings relevant to all the SQL backends.
; You may ignore these if you are not using this backend.
;

sql_user =
sql_pass =
______________________________

config.class.php
______________________________
<?php

/**
* Config class.
*
* @author Tamlyn Rhodes <tam at zenology dot co dot uk>
* @license http://opensource.org/licenses/gpl-license.php GNU General Public License
* @copyright (c)2003, 2004 Tamlyn Rhodes
* @version $Id: config.class.php,v 1.5 2004/09/06 16:30:23 tamlyn Exp $
*/

/**
* Reads configuration data from data/singapore.ini and stores the values
* as properties of itself.
*
* @package singapore
* @author Tamlyn Rhodes <tam at zenology dot co dot uk>
* @copyright (c)2003, 2004 Tamlyn Rhodes
*/
class sgConfig
{
  /**
   * Tries to load the default configuration
   */
  function sgConfig($configFilePath = "singapore.ini")
  {
    $this->loadConfig($configFilePath);
  }
   
    /**
     * Parses an ini file for configuration directives and imports the values
     * into the current object overwriting any previous values.
     * @param string relative or absolute path to the ini file to load
     * @return boolean true on success; false otherwise
     */
    function loadConfig($configFilePath)
    {
      if(!file_exists($configFilePath)) return false;
      
      //get values from ini file
    $ini_values = parse_ini_file($configFilePath);

    //import values into object scope
    foreach($ini_values as $key => $value) $this->$key = $value;

    return true;
    }
}

?>
________________________________________

Offline

 

#6 03.10.2005 14:05

melebard
BLOG:CMS Junior
Registered: 02.10.2005
Posts: 19

Re: Photo Gallery Errors Post Install

Hi Radek,

Now that singapore is working is there a template I can use to change the background - or custom modify it? I can't seem to find anything in the admin panel.

Offline

 

#7 03.10.2005 14:10

melebard
BLOG:CMS Junior
Registered: 02.10.2005
Posts: 19

Re: Photo Gallery Errors Post Install

Found the answer to my question. The header files listed in the below topic.

http://forum.blogcms.com/viewtopic.php?id=1143

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

TOPlist