adhikjoshi / swifttide

Automatically exported from code.google.com/p/swifttide
0 stars 0 forks source link

PHP5 adaptation #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. If you install swifttide with last PHP5 -at least it is my case- it 
will not work.
2.
3.

What is the expected output? What do you see instead?
Login process never is completed. Session opening fails.

What version of the product are you using? On what operating system?
Linux Fedora 8 2.6.21.7-3.fc8xen #1 SMP Thu Mar 20 14:58:12 EDT 2008 x86_64
PHP Version 5.2.4
Apache 2.0 Handler
swifttide latest.

Please provide any additional information below.
Some uses in PHP ar obsoletes so I have had to change them. I have no 
finished.
Is there any one doing the same? In spain it is said that it's better two 
injured than one dead.
Please, if so, I will be happy to know. My mail is 
jca/at/centroeducativoaltair/dot/es 

Original issue reported on code.google.com by jose...@gmail.com on 13 Jun 2008 at 6:21

GoogleCodeExporter commented 9 years ago
The session related issue with PHP5 has been fixed in a recent commit to 
repository
and should be reflected in the new release.
Work has begun on php5 adoption. Please keep those issues coming.
-thanks

Original comment by nasa42@gmail.com on 15 Jun 2008 at 9:04

GoogleCodeExporter commented 9 years ago
Thank you for your answer.
Since I am not a php developer, let me tell you what I have seen in my server.
Inserting diferents "print $variable" in diferents locations, I saw that 
get_parameter function in common.php didn't get the values from the login 
formulary. 
After looking for in php documentation I changed $HTTP_POST_VARS and 
$HTTP_GET_VARS 
with $_POST and $_GET. After that I saw it worked fine getting username and 
password.
Another problem was with set_session function, also in common.php. I have read 
in 
php documentation not to use session_is_registered function if $_SESSION 
variable is 
used. It was recommended to use isset($_SESSION) insted of 
session_is_registered. So I changed:
___________________________________________

  if (!isset($_SESSION)) {
    start_session();
    print "Error de session";
    exit;
  };
  $_SESSION['$param_name']=$param_value;
  print $param_name . " = " . $_SESSION['$param_name'];
}
_______________________________________

And that's all I have probed. Exit never is executed. The last print shows that 
it 
works fine. Another print like that in login.php shows that all the variables 
are 
correctly setted. But when redirect ocurrs to admin_main_menu.php or similar, 
all 
setted variables are lost, although isset($_SESSION) returns true.
Of course I am working with swifttide.108b.tar.

-Sorry if my english is not good and my php is even worst.

Original comment by jose...@gmail.com on 17 Jun 2008 at 8:55

GoogleCodeExporter commented 9 years ago
Issues related to session and POST/GET requests have already been fixed in 
repository.
Thanks for your response.

-Cheers brother, my English too is not good. ;)

Original comment by nasa42@gmail.com on 19 Jun 2008 at 10:32

GoogleCodeExporter commented 9 years ago
hello all,

I am working with swifttide 108b and also can't login after installation and 
was wondering if the solution to this problem will be found here in what I read.

Do I use d suggestions made by editing common.ph and other files? Will it work 
with the latest version of wamp? If anyone can help by posting here or sending 
me the already edited file to eyekay234@gmail.com will really appreciate it as 
requests for help on this issue haven't been answered.

Thanks

Original comment by eyekay...@gmail.com on 10 Feb 2010 at 12:48