FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Warning message with version 2.0.0-beta-20090908
#1
Hello,

I installed version 2.0.0-beta-20090712 and everything seemed to be OK. Then I wanted to upgrade to the latest version 2.0.0-beta-20090908 and generated an upgrade file from your system. Once I installed it and tested it, I get the following warning messages (see below).

Then I removed everything and started a new installation of the version 2.0.0-beta-20090908 from the scratch and unfortunately I still had the same warning message.

Could you please help? Is it because of the PHP version on the server? It runs PHP version 4.

Many thanks

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/html//12345/xxxx/documents/formtools/global/code/sessions.php on line 59

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/html//12345/xxxx/documents/formtools/global/code/sessions.php:59) in /var/www/html//12345/xxxx/documents/formtools/global/session_start.php on line 12

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html//12345/xxxx/documents/formtools/global/code/sessions.php:59) in /var/www/html//12345/xxxx/documents/formtools/global/session_start.php on line 13

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html//12345/xxxx/documents/formtools/global/code/sessions.php:59) in /var/www/html//12345/xxxx/documents/formtools/global/session_start.php on line 14
Reply
#2
Hi Nikita,

Yeah... I think I know what the problem is. Edit your /global/session_start.php file and change it to this:

PHP Code:
<?php

if ($g_session_type == "database")
  
$sess = new SessionManager();

if (!empty(
$g_session_save_path))
    
session_save_path($g_session_save_path);

session_start();
header("Cache-control: private");
header("Content-Type: text/html; charset=utf-8");

$folder dirname(__FILE__);
require_once(
"$folder/library.php"); 

Let me know if that fixes it.

- Ben
Reply
#3
Smile 
Hi Ben,

Thank you very much.

I changed it and I don't have the warning message anymore.

Best regards,

Nikita
Reply
#4
Hmmm...! Thanks, Nikita. I'm going to take another look at this one tonight. VERY confusing!!!! It shouldn't work! :-)

- Ben
Reply
#5
(Sep 23rd, 2009, 6:30 PM)Ben Wrote: Hmmm...! Thanks, Nikita. I'm going to take another look at this one tonight. VERY confusing!!!! It shouldn't work! :-)

- Ben

Hey Ben, I had the same issue as Nikita, I updated the sessions_start.php like you had suggested and now I have this error...

Warning: Cannot modify header information - headers already sent by (output started at /home/admin/public_html/formtools/global/config.php:1) in /home/admin/public_html/formtools/index.php on line 12
Reply
#6
Yeah, that's the error you SHOULD see - it's the error I see my own servers when I re-order the sessions start file. I'd revert it to the old file - that's not the cause of the problem, I don't think.

Did you try switching to using database sessions instead? If not, try this. Add this to your /global/config.php file:

PHP Code:
$g_session_type "database"

If that doesn't let you log in properly, post me back.

- Ben
Reply
#7
And for me? Since it is working with the code you posted on the 23rd September, can I leave it like it is?

Thanks.
Reply
#8
Sad 
Hi,
I am having a very similar problem. I added the database cache alternative, and was able to log into my formtools. However, the form still shows that same error.
http://track.onthebus.org/rsvpform.php

The form was working for over a week with no issues. The form still submits the information, but as the site owner is freaking out, and I don't know what could have changed to make the errors show, I really need some help asap!

I have tried clearing my pc cache, and I don"t know what else to try.
Reply
#9
Hey Diane,

First off, just to make double-sure, what version of the API are you running? (To find out, log into Form Tools and go to Settings -> Main). Make sure you're running the latest version (20090908) since that version included an important upgrade that allows you to use both db + PHP sessions.

But it's probably not that. If it was working for a week then stopped, it sounds like something on the server may have changed.

That error message you're seeing means that the server's unable to create the sessions.

Here's an article that outlines the problem and a possible fix (assuming your host can't lend a hand):
http://support.ultimatelocator.com/index...ticleid=60

Good luck...!

- Ben
Reply
#10
Sad 
(Nov 17th, 2009, 11:53 AM)Ben Wrote: First off, just to make double-sure, what version of the API are you running? (To find out, log into Form Tools and go to Settings -> Main). Make sure you're running the latest version (20090908) since that version included an important upgrade that allows you to use both db + PHP sessions.
I did this upgrade, and it made it worse.
Quote:That error message you're seeing means that the server's unable to create the sessions.
I read the article, and checked phpinfo. There was no location assigned. I then tried to create a php.ini to adjust it myself, fail. Then I called the host provider. They were confused, but did somehow manage to get some file location in my phpinfo.

Good news: Form works!

Bad news: I can't log into formtools, no proper password available even when using the password encryptor and phpmyadmin, along with the following errors:

Warning: Unknown(): open(/tmp/sess_468967af1085c408f0091ca26c399174, O_RDWR) failed: Permission denied (13) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

http://track.onthebus.org/form/



using password reset, get blank page with errors:

Warning: session_write_close() [function.session-write-close]: open(/tmp/sess_468967af1085c408f0091ca26c399174, O_RDWR) failed: Permission denied (13) in /homepages/10/d289530726/htdocs/Tracking-tia/form/global/code/accounts.php on line 142

Warning: session_write_close() [function.session-write-close]: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in /homepages/10/d289530726/htdocs/Tracking-tia/form/global/code/accounts.php on line 142

Warning: Cannot modify header information - headers already sent by (output started at /homepages/10/d289530726/htdocs/Tracking-tia/form/global/code/accounts.php:142) in /homepages/10/d289530726/htdocs/Tracking-tia/form/global/code/accounts.php on line 143

help...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)