1
james02
Install not progressing past dbconnection
  • 2010/3/26 3:28

  • james02

  • Just popping in

  • Posts: 8

  • Since: 2010/3/25


Greetings.

Trying to install 2.4.4 from scratch, following instruction manual carefully. I have 2.3.2 (apparently 2.3.2b) installed, but backed up and offline, and I have 2.4.4 attempting to install.

Currently:
XOOPS Version - XOOPS 2.3.2 (b)
PHP Version - 5.2.6
MySQL Version - 4.1.22
Server API Version - apache2handler
OS Version - Linux

MySQL is working fine with this and several other databases. I have username and password.

Referencing these two threads:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=70061&forum=13&post_id=319794#forumpost319794

https://xoops.org/modules/newbb/viewtopic.php?post_id=300519#forumpost300519

I believe I am suffering something similar. I am not actually getting an error. Rather, I am cycling back to page_dbconnection.php from page_dbsettings.php. The install will not move forward. In other words, the username and pw are correct, it goes to dbsettings, gets some sort of generic error, and cycles back to dbconnection.

I've tried adding " mysql_close($link);" to the error handling routine in dbconnection, but it didn't seem to do anything. I am uncertain how to add "only the extended error reporting" in dbsettings.

I would appreciate any help.

2
ghia
Re: Install not progressing past dbconnection
  • 2010/3/26 10:19

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Check also you have not a problem with sessions.

3
james02
Re: Install not progressing past dbconnection
  • 2010/3/26 11:13

  • james02

  • Just popping in

  • Posts: 8

  • Since: 2010/3/25


OK, that didn't work. Here's what happened.

I presume the session test is the one you mean - but I did the cookie test too - cookies are fine.

I copied/pasted the code for the two session tests exactly. I presume the referenced missing backslashes have been repaired...I didn't find any errors. The lines that wrap below are fine in the code.

Uploaded files to server. Filenames checked and rechecked.

setsession.php generated an error. Opera says the page is missing, IE8 gives a 500 error. Here is the exact code in the file:

<?php 
session_start 
(); 
$ok session_regenerate_id (); 
$sid session_id (); 
$_SESSION ['MyCMS'] = "XOOPS"
?> 
<html> 
<head> 
  <title>Session test 1</title> 
</head> 
<body> 
 <p> 
  <b>Session created.</b>  
 </p> 
 <p> 
  Session id regenerated: <?php print "$ok"?><br /> 
  Session variable MyCMS set: <?php print $_SESSION ['MyCMS']; ?> <br /> 
  Session id: <?php print "$sid"?> 
 </p> 
 <p> 
  <?php 
   
print "<a href="tstsession.php?sid=$sid">Check session variables</a>"
  
?> 
 </p> 
</body> 
</html>


and for tstsession.php
<?php 
 $sid 
$_GET ['sid']; 
 
session_id ($sid); 
 
session_start (); 
?> 
<html> 
<head> 
  <title>Session test 2</title> 
</head> 
<body> 
 <p> 
  <b>Session Info</b>  
 </p> 
 <p> 
  Session id: <?php print "$sid"?><br /> 
  Session variable  MyCMS: <?php print $_SESSION ['MyCMS']; ?> <br /> 
 </p> 
</body> 
</html>


The tstsession.php returns:
Quote:

Session Info

Session id:
Session variable MyCMS:


OK. So, I googled "PHP sessions not working" and I get tons of hits - some exact. I think we are on to something.

I tried another test I found online:

test2.php
<? 
session_start(); 
$variable 3
session_register("variable"); 
$variable++; 
header ("location: next.php"); 
exit; 
?>


Running this does not generate an error, it does go to next.php. And next.php:
<? 
session_start(); 
session_register("variable"); 
echo 
$variable
?>


This however does not echo a variable on the screen - I get a blank screen.

Thanks for your help! What next? I am cc'ing my site support on this message.

4
james02
Re: Install not progressing past dbconnection
  • 2010/3/26 16:07

  • james02

  • Just popping in

  • Posts: 8

  • Since: 2010/3/25


The temporary folder for sessions was missing for that domain. It was added by tech support for my server admin and it now works.

Thanks for the tip!

Login

Who's Online

148 user(s) are online (96 user(s) are browsing Support Forums)


Members: 0


Guests: 148


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits