4 users online. Create an account or sign in to join them.Users

Announcement

Symphony's issue tracker has been moved to Github.

Issues are displayed here for reference only and cannot be created or edited.

Browse

Closed#248: 2.0.7, troubles with a new install on PHP 5.2.8.

I’m trying to do a new install with 2.0.7 on a Ubuntu / Litespeed / PHP 5.2.8 / MySQL 5 machine.

I’m get the following error after I install Symphony 2.0.7…

ini_set() [function.ini-set]: A session is active. You cannot change the session module's ini settings at this time.
/home/myname/public_html/mysite/public/symphony/lib/core/class.session.php line 29

24              if (self::$_cache->check('_session_config') === false) {
25                  self::createTable();
26                  self::$_cache->write('_session_config', true);
27              }
28
29              ini_set('session.save_handler', 'user');
30              ini_set('session.gc_maxlifetime', $lifetime);
31              
32              session_set_save_handler(
33                  array('Session', 'open'),

Backtrace: [:0] GenericErrorHandler::handler(); [/home/myname/public_html/mysite/public/symphony/lib/core/class.session.php:29] ini_set(); [/home/myname/public_html/mysite/public/symphony/lib/core/class.cookie.php:55] Session::start(); [/home/myname/public_html/mysite/public/symphony/lib/core/class.cookie.php:36] Cookie->__init(); [/home/myname/public_html/mysite/public/symphony/lib/core/class.symphony.php:176] Cookie->get(); [/home/myname/public_html/mysite/public/symphony/lib/core/class.frontend.php:36] Symphony->isLoggedIn(); [/home/myname/public_html/mysite/public/symphony/lib/toolkit/class.frontendpage.php:47] Frontend->isLoggedIn(); [/home/myname/public_html/mysite/public/symphony/lib/core/class.frontend.php:50] FrontendPage->generate(); [/home/myname/public_html/mysite/public/index.php:20] Frontend->display();

Database Query Log:
SET NAMES 'utf8'; [0.0002]
SET CHARACTER SET 'utf8'; [0.0001]
SELECT `status` FROM `sym_extensions` WHERE `name` = 'asdc' LIMIT 1; [0.0009]
SELECT `version` FROM `sym_extensions` WHERE `name` = 'asdc' LIMIT 1; [0.0003]
SELECT `status` FROM `sym_extensions` WHERE `name` = 'debugdevkit' LIMIT 1; [0.0002]
SELECT `version` FROM `sym_extensions` WHERE `name` = 'debugdevkit' LIMIT 1; [0.0008]
SELECT `status` FROM `sym_extensions` WHERE `name` = 'export_ensemble' LIMIT 1; [0.0006]
SELECT `version` FROM `sym_extensions` WHERE `name` = 'export_ensemble' LIMIT 1; [0.0002]
SELECT `status` FROM `sym_extensions` WHERE `name` = 'jit_image_manipulation' LIMIT 1; [0.0003]
SELECT `version` FROM `sym_extensions` WHERE `name` = 'jit_image_manipulation' LIMIT 1; [0.0004]
SELECT `status` FROM `sym_extensions` WHERE `name` = 'maintenance_mode' LIMIT 1; [0.0005]
SELECT `version` FROM `sym_extensions` WHERE `name` = 'maintenance_mode' LIMIT 1; [0.0003]
SELECT `status` FROM `sym_extensions` WHERE `name` = 'markdown' LIMIT 1; [0.0003]
SELECT `version` FROM `sym_extensions` WHERE `name` = 'markdown' LIMIT 1; [0.0003]
SELECT `status` FROM `sym_extensions` WHERE `name` = 'members' LIMIT 1; [0.0003]
SELECT `version` FROM `sym_extensions` WHERE `name` = 'members' LIMIT 1; [0.0002]
SELECT `status` FROM `sym_extensions` WHERE `name` = 'profiledevkit' LIMIT 1; [0.0002]
SELECT `version` FROM `sym_extensions` WHERE `name` = 'profiledevkit' LIMIT 1; [0.0003]
SELECT `status` FROM `sym_extensions` WHERE `name` = 'selectbox_link_field' LIMIT 1; [0.0002]
SELECT `version` FROM `sym_extensions` WHERE `name` = 'selectbox_link_field' LIMIT 1; [0.0002]
SELECT `status` FROM `sym_extensions` WHERE `name` = 'smtp_email_library' LIMIT 1; [0.0012]
SELECT `version` FROM `sym_extensions` WHERE `name` = 'smtp_email_library' LIMIT 1; [0.0014]
SELECT t1.name, t2.page, t2.delegate, t2.callback FROM `sym_extensions` as t1 INNER JOIN `sym_extensions_delegates` as t2 ON t1.id = t2.extension_id WHERE t1.status = 'enabled'; [0.0011]
SELECT SQL_NO_CACHE * FROM `sym_cache` WHERE `hash` = '_session_config' AND (`expiry` IS NULL OR UNIX_TIMESTAMP() <= `expiry`) LIMIT 1; [0.0003]

Sorry. The title needs to be 2.0.7, troubles with a new install on PHP 5.2.8.

Try add this line to your .htaccess:

php_flag session.auto_start 0

Try add this line to your .htaccess:

php_flag session.auto_start 0

That helped. Now I’m getting a Fatal Database error.

Table 'candidates.sym_entries_data_' doesn't exist
An error occurred while attempting to execute the following query
SELECT `entry_id` FROM `sym_entries_data_` WHERE `username` = '' AND `password` = '' LIMIT 1

I can disable the Members extension, but if I try to uninstall the Members extension, and I get the following error…

Unknown table

'sym_members_email_templates,sym_members_codes,sym_members_roles,sym_members_roles_event_permissions,'
An error occurred while attempting to execute the following query
DROP TABLE `sym_members_email_templates`, `sym_members_codes`, `sym_members_roles`, `sym_members_roles_event_permissions`, `sym_members_roles_forbidden_pages`, `sym_members_email_templates_role_mapping`;

I’m not sure what can be done about the session issue (the members extension thing is unrelated).

I’m going to assume that lines 29-30 are important for Symphony to run, and simply doing something like the following would cause other issues:

if (!session_id()) {
    ini_set('session.save_handler', 'user');
    ini_set('session.gc_maxlifetime', $lifetime);
}

It works, and, as far as I can tell, all it means is the Session data is not saved in the database table.

I have made the change, as suggested by Rowan (See http://github.com/symphony/symphony-2/commit/bf6c00589f8558d180807f6f4f7da9bbbef14ed8). If there are still problems, please open a new issue and we shall revisit it.

This issue is closed.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details