Warning: ini_set(): A session is active
6 posts by 3 authors in: Forums > CMS Builder
Last Post: March 22, 2013 (RSS)
By mdegive - March 6, 2013
When I click Preview on any of sections, I get an error message that says:
Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in /home/linley5/public_html/cms_builder/lib/init.php on line 449 Couldn't start session! 'A session had already been started - ignoring session_start()'!
if I comment out line 449, then it dies on 458
if I comment out line 458, I get:
You must be logged in to use this feature!
here is the url it generated
https://linleygroup.com/newsletters/newsletter_detail.php?preview-9999999999
The Preview Page Url is set to "/newsletters/newsletter_detail.php"
The Filename Fields is set to "title"
I do have a session_start() in my php script
By gregThomas - March 6, 2013
Hi,
The most likely problem is that you have a session_start() in your script. CMS Builder will have already started a session, so you can safely remove this.
I would also check that you don't have any lines at the top of the page before you call the CMS Builder viewer functions, the opening PHP tag that contains them should be the first thing in the file, otherwise CMS Builder cannot set the headers it needs for the page.
If neither of these work would it be possible to attach/include your code into a post for me? What error do you get on line 458?
Thanks!
Greg
PHP Programmer - interactivetools.com
By mdegive - March 6, 2013
I reviewed every page and removed any session_start() and also made sure that cmsbuilder include is the first thing in the page and the problem still occurs.
if I comment out line 458, I get: You must be logged in to use this feature!
By gregThomas - March 6, 2013
Would it be possible to attach your code to a post for me? Then I'll be able to narrow down what could be causing the issue.
Thanks!
Greg
PHP Programmer - interactivetools.com
By mdegive - March 21, 2013
I thought I had replied to this but now I don't see it.
ftp & server info is in Support #CTS-262247, opened for another issue.
Try with TLG Content/Newsletters Articles, modify first article, click preview.
The newsletter page can be found at /newsletters/newsletter_detail.php
The includes are in /includes.
Thank you!
Michel
By Jason - March 22, 2013
Hi,
I tried the FTP information in that post, but was unable to connect. Can you please open a new Support Request with the FTP/ CMS info for this issue and we can take a look.
NOTE: Please don't post any server information in the forum.
Hope this helps,
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/