logo       

Re: phpslash alpha errors...: msg#00065

Subject: Re: phpslash alpha errors...
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/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe