On Tue, Nov 25, 2003 at 03:57:09PM -0500, Luis M wrote:
> While using the config_setup.php script to setup a phpslash site for a
> project I just registered in SourceForge I got the following error:
>
> Warning: fopen("", "r") - Success in
^^^
Evidently didn't get the name/path correctly of the sql file.
The foreach over the $files array may be going another iteration.
ummm... maybe because it only asks for the "include" directory but if the
database already exists then it skips the question about the
username/password to use to create the database, together with the where to
get the .sql file from? I guess that the path should be dynamic at that
point, or at least try to find the .sql file relative to the "include" dir:
/path/to/include
/path/to/include/../tables/0.8/slash-all.sql ( ??? )
That should do it..
> /home/groups/v/v2/v2divx/htdocs/config_setup.php on line 1085
>
> Warning: Cannot add header information - headers already sent by (output
> started at /home/groups/v/v2/v2divx/htdocs/config_setup.php:1085) in
> /home/groups/v/v2/v2divx/htdocs/config_setup.php on line 112
>
> I copied the latest config_setup.php from CVS and I got the same error.
> This happens after the script determines that the database already
exists
> and tries to set it up...
>
> any ideas?
>
does the db exist with no tables? I can't get this to work at all. It
seems part of the code is missing.
Yep. I tried debugging that myself and got to a dead end. I guess that after
the database is created it's supposed to assume the username/password
supplied have access to alter the table and try to setup the database with
the .sql file... if not, then fallback to the question about the right
"username/password" that has access to alter the table...
For the meantime, I got it setup the old fashion (trusty?) way: mysql -u
user -p database < slash-all.sql ...
Once I got to the first page, I tried to login "god" "password" and it
failed! Then tried again and it failed! Then reloaded, tried again and it
failed! Then tried again and it worked!
In other words, i know that's the right thing to do, but it seems that
cookies were in the way? After I got in I went to Admin and changed the
password and other things.. Then I tried to delete a story (that God posted)
and it failed! Asked me for the password. It failed 2 times and then worked!
Deleted the story and after submitting it, it asked me for a password again!
In short, I think the pre-auth stuff doesn't work well. Maybe because the
magic_quotes_gpc is off? There is no way I can turn this on from .htaccess
(and I have no access to php.ini of course :-) )... unless there is
something that can be set with php_ini() ? In any case, I don't know if
that's why the login fails sometimes... Maybe I should just remove the
cookies and start afresh...
----)(-----
Luis Mondesi
System Administrator
LatinoMixed.com
lemsx1-PkbjNfxxIARBDgjK7y7TUQ@xxxxxxxxxxxxxxxx
"...The Mac does this so smoothly, it feels like an extension of your mind."
- Paula Speer, MacWorld Magazine 2003-04
Public signature: http://www.latinomixed.com/lems1/public-a.asc
_________________________________________________________________
MSN Messenger : discutez en direct avec vos amis !
http://www.msn.fr/msger/default.asp
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
|