Page 1 of 2
Repeating/circular login?
Posted: Fri 30. Jul 2004, 20:40
by Dittohead
I just installed phpwcms on my 5 day trial server (it took me 4 tries to get it installed), everything works just peachy until we get to the login screen. I put in the user name and password for my user, and click login. It refreshes the page, shows that I am indeed logged in ("logged in users"-list, lists my user name), but it still is on the same "please login page".
What should I do?
Posted: Fri 30. Jul 2004, 20:56
by Dittohead
If I insert my username/passwd again and click login, I get this:
Warning: Cannot modify header information - headers already sent by (output started at /home/account/public_html/phpwcms/include/inc_conf/conf.inc.php:72) in /home/account/public_html/phpwcms/login.php on line 128
Posted: Fri 30. Jul 2004, 21:59
by DeXXus
Posted: Fri 30. Jul 2004, 22:05
by Dittohead
I get this regardless of whether it says I'm logged in:
Warning: Cannot modify header information - headers already sent by (output started at /home/account/public_html/phpwcms/include/inc_conf/conf.inc.php:73) in /home/account/public_html/phpwcms/login.php on line 128
Posted: Fri 30. Jul 2004, 22:12
by DeXXus
Because something about your configuration setup is not correct... it fails to complete the login process and has to refresh the screen by sending a header directive and when it DOES... this "interruption" of the login process causes THAT message.
Posted: Fri 30. Jul 2004, 23:08
by Dittohead
Code: Select all
<?php
// database values
$phpwcms["db_host"] = "localhost";
$phpwcms["db_user"] = "dbaccount";
$phpwcms["db_pass"] = "pass";
$phpwcms["db_table"] = "db_name";
$phpwcms["db_prepend"] = "account";
$phpwcms["db_pers"] = 1;
// site values
$phpwcms["site"] = "http://www.hometownhosting.net/";
$phpwcms["admin_email"] = "myemail";
// paths
$phpwcms["root"] = "~account/phpwcms"; //default: ""
$phpwcms["file_path"] = "phpwcms_filestorage"; //default: "phpwcms_filestorage"
$phpwcms["file_tmp"] = "phpwcms_tmp"; //default: "phpwcms_tmp"
$phpwcms["templates"] = "phpwcms_template"; //default: "phpwcms_template"
$phpwcms["dir_thlist"] = "thumb_list"; //default: "thumb_list"
$phpwcms["dir_preview"] = "thumb_preview"; //default: "thumb_preview"
$phpwcms["content_path"] = "content"; //default: "content"
$phpwcms["cimage_path"] = "images"; //default: "images"
$phpwcms["ftp_path"] = "phpwcms_ftp"; //default: "phpwcms_ftp"
// content values
$phpwcms["file_maxsize"] = 5120000; //Bytes (50 x 1024 x 1024)
$phpwcms["content_width"] = 538; //max width of the article content column - important for rendering multi column images
$phpwcms["img_list_width"] = 100; //max with of the list thumbnail image
$phpwcms["img_list_height"] = 75; //max height of the list thumbnail image
$phpwcms["img_prev_width"] = 2000; //max width of the large preview image
$phpwcms["img_prev_height"] = 2000; //max height of the large preview image
$phpwcms["max_time"] = 1800; //logout after max_time/60 seconds
// other stuff
$phpwcms["compress_page"] = 0; //0 = OFF, 1-9: page compression ON (1 = low level, 9 = highest level)
$phpwcms["imagick"] = 1; //0 = GD, 1 = ImageMagick, 2 = ImageMagick 4.2.9
$phpwcms["imagick_path"] = ""; //Path to ImageMagick (default="" - none)
$phpwcms["use_gd2"] = 1; //0 = GD1, 1 = GD2
$phpwcms["rewrite_url"] = 0; //whether URL should be rewritable
$phpwcms["wysiwyg_editor"] = 3; //0 = no wysiwyg editor, 1 = HTMLarea, 2 = FCKeditor, 3 = browser based
$phpwcms["phpmyadmin"] = 1; //enable/disable phpMyAdmin in Backend
$phpwcms["default_lang"] = "en"; //default language
$phpwcms["charset"] = "iso-8859-1"; //default charset 'iso-8859-1'
$phpwcms["allow_remote_URL"] = 0; //0 = no remote URL in {PHP:...} replacement tag allowed, 1 = allowed
$phpwcms["gt_mod"] = 0; //0 = Graphical Text MOD disabled, 1 = enabled
// dynamic ssl encryption engine
$phpwcms["site_ssl_mode"] = '0'; // tuns the SSL Support of WCMS on(1) or off (0) DEFAULT '0'
$phpwcms["site_ssl_url"] = ''; //URL assigned to the SSL Certificate. DON'T add a slash at the End! Exp. "https://www.yourdomainhere.tld"
$phpwcms["site_ssl_port"] = '443'; //The Port on which you SSL Service serve the secure Sites. Servers DEFAULT is '443'
// smtp values
$phpwcms['SMTP_FROM_EMAIL'] = 'myemail'; // reply/from email address
$phpwcms['SMTP_FROM_NAME'] = 'Nathan "Dittohead" Allworth'; // reply/from name
$phpwcms['SMTP_HOST'] = 'localhost'; // SMTP server (host/IP)
$phpwcms['SMTP_PORT'] = 25; // SMTP-Server port (default 25)
$phpwcms['SMTP_MAILER'] = 'mail'; // default phpMailer: smtp, mail (default), sendmail
$phpwcms['SMTP_AUTH'] = 0; // sets SMTP_AUTH to ON/OFF
$phpwcms['SMTP_USER'] = ''; // default SMTP login (user) name
$phpwcms['SMTP_PASS'] = ''; // default SMTP password
// Try to check and uncomment the DOCUMENT_ROOT if you have problems
// often neccessary on IIS or default MacOS X webserver settings
// Do not use backslash "\" on Windows - always replace "\" by "/"
//$_SERVER['DOCUMENT_ROOT'] = '/home/account/public_html';
?>
Hmmm, anyt thoughts?
Posted: Fri 30. Jul 2004, 23:11
by Pappnase
hello
please change this
Code: Select all
// site values
$phpwcms["site"] = "http://www.hometownhosting.net/";
$phpwcms["admin_email"] = "myemail";
// paths
$phpwcms["root"] = "~account/phpwcms"; //default: ""
to this
Code: Select all
// site values
$phpwcms["site"] = "http://www.hometownhosting.net/~account/";
$phpwcms["admin_email"] = "myemail";
// paths
$phpwcms["root"] = "phpwcms"; //default: ""
Posted: Fri 30. Jul 2004, 23:37
by Dittohead
I am still getting that same error.
Posted: Fri 30. Jul 2004, 23:42
by Pappnase
hello
please can you send me via an pm the real url?!
then i would take a look!
Posted: Sat 31. Jul 2004, 00:19
by Pappnase
hello
i was looking at your installation!
so you have also a pathproblem!
please replace this in the conf.inc.php
Code: Select all
// site values
$phpwcms["site"] = "http://www.hometownhosting.net/";
$phpwcms["admin_email"] = "imnla@softhome.net";
// paths
$phpwcms["root"] = "phpwcms"; //default: ""
$phpwcms["file_path"] = "phpwcms_filestorage"; //default: "phpwcms_filestorage"
$phpwcms["file_tmp"] = "phpwcms_tmp"; //default: "phpwcms_tmp"
$phpwcms["templates"] = "phpwcms_template"; //default: "phpwcms_template"
$phpwcms["dir_thlist"] = "thumb_list"; //default: "thumb_list"
$phpwcms["dir_preview"] = "thumb_preview"; //default: "thumb_preview"
$phpwcms["content_path"] = "content"; //default: "content"
$phpwcms["cimage_path"] = "images"; //default: "images"
$phpwcms["ftp_path"] = "phpwcms_ftp"; //default: "phpwcms_ftp"
// content values
$phpwcms["file_maxsize"] = 5120000; //Bytes (50 x 1024 x 1024)
$phpwcms["content_width"] = 538; //max width of the article content column - important for rendering multi column images
$phpwcms["img_list_width"] = 100; //max with of the list thumbnail image
$phpwcms["img_list_height"] = 75; //max height of the list thumbnail image
$phpwcms["img_prev_width"] = 2000; //max width of the large preview image
$phpwcms["img_prev_height"] = 2000; //max height of the large preview image
$phpwcms["max_time"] = 1800; //logout after max_time/60 seconds
// other stuff
$phpwcms["compress_page"] = 0; //0 = OFF, 1-9: page compression ON (1 = low level, 9 = highest level)
$phpwcms["imagick"] = 0; //0 = GD, 1 = ImageMagick, 2 = ImageMagick 4.2.9
$phpwcms["imagick_path"] = ""; //Path to ImageMagick (default="" - none)
$phpwcms["use_gd2"] = 1; //0 = GD1, 1 = GD2
$phpwcms["rewrite_url"] = 0; //whether URL should be rewritable
$phpwcms["wysiwyg_editor"] = 3; //0 = no wysiwyg editor, 1 = HTMLarea, 2 = FCKeditor, 3 = browser based
$phpwcms["phpmyadmin"] = 1; //enable/disable phpMyAdmin in Backend
$phpwcms["default_lang"] = "en"; //default language
$phpwcms["charset"] = "iso-8859-1"; //default charset 'iso-8859-1'
$phpwcms["allow_remote_URL"] = 0; //0 = no remote URL in {PHP:...} replacement tag allowed, 1 = allowed
$phpwcms["gt_mod"] = 0; //0 = Graphical Text MOD disabled, 1 = enabled
// dynamic ssl encryption engine
$phpwcms["site_ssl_mode"] = '0'; // tuns the SSL Support of WCMS on(1) or off (0) DEFAULT '0'
$phpwcms["site_ssl_url"] = ''; //URL assigned to the SSL Certificate. DON'T add a slash at the End! Exp. "https://www.yourdomainhere.tld"
$phpwcms["site_ssl_port"] = '443'; //The Port on which you SSL Service serve the secure Sites. Servers DEFAULT is '443'
// smtp values
$phpwcms['SMTP_FROM_EMAIL'] = 'imnla@softhome.net'; // reply/from email address
$phpwcms['SMTP_FROM_NAME'] = 'Nathan "Dittohead" Allworth'; // reply/from name
$phpwcms['SMTP_HOST'] = 'localhost'; // SMTP server (host/IP)
$phpwcms['SMTP_PORT'] = 25; // SMTP-Server port (default 25)
$phpwcms['SMTP_MAILER'] = 'mail'; // default phpMailer: smtp, mail (default), sendmail
$phpwcms['SMTP_AUTH'] = 0; // sets SMTP_AUTH to ON/OFF
$phpwcms['SMTP_USER'] = ''; // default SMTP login (user) name
$phpwcms['SMTP_PASS'] = ''; // default SMTP password
// Try to check and uncomment the DOCUMENT_ROOT if you have problems
// often neccessary on IIS or default MacOS X webserver settings
// Do not use backslash "\" on Windows - always replace "\" by "/"
$_SERVER['DOCUMENT_ROOT'] = '/home/account/public_html';
Posted: Sat 31. Jul 2004, 00:28
by Dittohead
Still getting those same errors when I try to log in.
Posted: Sat 31. Jul 2004, 00:32
by Pappnase
hello
no wonder that you get errors!
cos when i call you index.php i get following errors
Warning: main(/home/hometown/public_html/phpwcms/include/inc_conf/conf.pagelayout.inc.php): failed to open stream: No such file or directory in /home/account/public_html/phpwcms/include/inc_front/content.func.inc.php on line 131
Warning: main(): Failed opening '/home/hometown/public_html/phpwcms/include/inc_conf/conf.pagelayout.inc.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/account/public_html/phpwcms/include/inc_front/content.func.inc.php on line 131
so first we need to fiy our pathproblem!
Posted: Sat 31. Jul 2004, 02:15
by Dittohead
http://hometownhosting.net/~account/document_root.php provides some insight into some of the pathes. Does my problem come from the fact that the server's default "document_root" is /home/hometown and the actaul physical document root is /home/account?
This accounts for the "FALSE (not existing)" errors I got on all the directories when I installed it. After some searching the forums I found out that if I set the document_root in the conf.inc.php that Iit would work, but since the installer doesn't check (to my knowledge) that particular setting in and existing conf.inc.php I couldn't get an abosulute idea on whether it could find those dirs.
To say the least I'm rather lost. Maybe it would be much easier if I just purchased a domain and a month's worth of service from the company.
Thanks for the help, I think this is what I'm going to do. I'll be back in a few days if I don't get it to work on it's own domain.
Posted: Sat 31. Jul 2004, 17:13
by Pappnase
Dittohead wrote:http://hometownhosting.net/~account/document_root.php provides some insight into some of the pathes. Does my problem come from the fact that the server's default "document_root" is /home/hometown and the actaul physical document root is /home/account?
This accounts for the "FALSE (not existing)" errors I got on all the directories when I installed it. After some searching the forums I found out that if I set the document_root in the conf.inc.php that Iit would work, but since the installer doesn't check (to my knowledge) that particular setting in and existing conf.inc.php I couldn't get an abosulute idea on whether it could find those dirs.
To say the least I'm rather lost. Maybe it would be much easier if I just purchased a domain and a month's worth of service from the company.
Thanks for the help, I think this is what I'm going to do. I'll be back in a few days if I don't get it to work on it's own domain.
hello
first... yes it would be easier if you would have an real own domain.
and the problem with the path it that you have an ~domain. cos you have two different pathes. did you have there an own server!? cos you say in an other thread that you have set this
session.use_trans_sid = 1
Posted: Sat 31. Jul 2004, 18:10
by Dittohead
I edited .htaccess and added
I'm planning on buying it all today sometime. And I would probably install it to the base url, like
http://www.dittobox.net/