Author |
Message |
Lateron
Worker


Joined: May 10, 2003
Posts: 119
Location: Katoomba, NSW, Australia.
|
Posted:
Thu Feb 05, 2004 8:48 pm |
|
Raven,
I thought my nuke version guest book was working OK until a visitor told me it was coming as only for registered users.
The nuke module was set to all visitors so I went into the kisgb config and set the $only_registered_users_can_add to false.
Ever since then I have had nothing but errors. I have re-uploaded the complete kisgb files 5 times and all directories/files are correctly chmod'd.
This is the msg if I try to update the config:
Fatal error: main(): Failed opening required 'modules/kisgb."/languages"/english.lang.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/tscalumni.net/httpdocs/modules/kisgb/footer.php on line 15
This is the msg if I try to access kisgb via the menu
Fatal error: main(): Failed opening required 'modules/kisgb."/themes"/default.thm.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/tscalumni.net/httpdocs/modules/kisgb/index.php on line 170
On my second site which is identical to this one everything is OK.
I am at a loss at what to try next.
Ron.. |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Thu Feb 05, 2004 9:26 pm |
|
If you are using the nuke version of KISGB, the access to the module is controlled by the modules admin. The user.prefs.php file has only 1 setting for access and that is $only_registered_users_can_add . Make sure that you are using the nuke version and not the stand-alone version. |
|
|
|
 |
Lateron

|
Posted:
Thu Feb 05, 2004 10:25 pm |
|
Yes, I am using the nuke version that is part of your V7 distro. I have also uploaded the standalone nuke version download
As I mentioned I have two identical sites one of which is working perfectly.
Now if I copy the user prefs file from the working site or use the original file the gb works but it will not let me change the config. The moment I try I get the above errors.
I activated the gb at the site: Only registered users can see links on this board! Get registered or login! |
|
|
|
 |
Raven

|
Posted:
Thu Feb 05, 2004 10:28 pm |
|
Have you changed the permissions on user.prefs.php to 777? |
|
|
|
 |
Lateron

|
Posted:
Thu Feb 05, 2004 10:36 pm |
|
Yes,
kisgb to 777
themes folder
user prefs a
and the csv file |
|
|
|
 |
Raven

|
Posted:
Thu Feb 05, 2004 10:56 pm |
|
Your user.prefs.php file is corrupted. Notice all the "e's? That is not in my distro. Look at a virgin copy.Code:$root_document = "$kisgb_module_name."/index.php"";
##################################################
# Path and Security #
##################################################
$use_userprefs = true;
$path_to_user_prefs = "$kisgb_module_name."/user.prefs.php"";
$path_to_gb = "$kisgb_module_name."/kisgb.csv.php"";
$path_to_images = "$kisgb_module_name."/images"";
$path_to_languages = "$kisgb_module_name."/languages"";
$path_to_themes = "$kisgb_module_name."/themes"";
$path_to_docs = "$kisgb_module_name."/docs"";
|
|
|
|
|
 |
Lateron

|
Posted:
Thu Feb 05, 2004 11:08 pm |
|
I have just done a test by uploading a virgin copy of user prefs from your distro (file is dated 18 Dec 2003) which has no quotes in it.
However just attempting a simple change such as the site URL causes the above msgs and adds those quotes - what could possibly do that?
Later:
I don't even have to make any changes in the fresh config for the problem to occur: jus clicking update is enough and the quotes are there again. |
Last edited by Lateron on Thu Feb 05, 2004 11:13 pm; edited 1 time in total |
|
|
 |
Raven

|
Posted:
Thu Feb 05, 2004 11:12 pm |
|
Possibly a bug in my program. Try this. Before you upload, set the prefs to registered users only. Does it still error? |
|
|
|
 |
Lateron

|
Posted:
Thu Feb 05, 2004 11:17 pm |
|
Raven wrote: | Possibly a bug in my program. Try this. Before you upload, set the prefs to registered users only. Does it still error? |
Yes, it doens't matter whether I use a fresh prefs, one as you advise here or the working one from my other site. Those quotes get added.
What I am going to try now is to manually remove the quotes and the upload the file. |
|
|
|
 |
Raven

|
Posted:
Thu Feb 05, 2004 11:19 pm |
|
It works ok here. Very strange .... |
|
|
|
 |
Raven

|
Posted:
Thu Feb 05, 2004 11:20 pm |
|
Try this too. Copy your entire folder from your other site and see if you can edit it then. |
|
|
|
 |
Lateron

|
Posted:
Thu Feb 05, 2004 11:24 pm |
|
The test that I just did works. If I make all the changes to the user prefs file and then upload it everything works.
The moment I try to change the user prefs - wham!!!
I've put the manually file back up.
I try your suggestion later tonight - time in Sydney to start dinner for a hungry wife and kids!
Thanks for your help, Raven,
Ron....
PS I like the new background  |
|
|
|
 |
Lateron

|
Posted:
Fri Feb 06, 2004 12:44 am |
|
I am very disappointed to report that I downloaded the complete kisgb directory from the working site, deleted the directory on the faulty then uploaded the good directory and the quotes problem is still there.
I won't take anymore of your time as I have uploaded the manually edited user prefs file and kisgb is working.
I guess we will never know the answer to this one.
Thank you again for all your help,
Ron..... |
|
|
|
 |
Nukeum66
Life Cycles Becoming CPU Cycles

Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA
|
Posted:
Fri Feb 06, 2004 4:56 am |
|
What editor are you using to work on your files?
Just for a test I opened this file using Pagemill and this is what happened to the code when I save it.
Code:$use_userprefs = true;
$path_to_user_prefs = $kisgb_module_name."/user.prefs.php";
$path_to_gb = $kisgb_module_name."/kisgb.csv.php";
$path_to_images = $kisgb_module_name."/images";
$path_to_languages = $kisgb_module_name."/languages";
$path_to_themes = $kisgb_module_name."/themes";
$path_to_docs = $kisgb_module_name."/docs";
|
Using TEXTPAD
Code:$use_userprefs = true;
$path_to_user_prefs = $kisgb_module_name."/user.prefs.php";
$path_to_gb = $kisgb_module_name."/kisgb.csv.php";
$path_to_images = $kisgb_module_name."/images";
$path_to_languages = $kisgb_module_name."/languages";
$path_to_themes = $kisgb_module_name."/themes";
$path_to_docs = $kisgb_module_name."/docs";
|
|
_________________ Scott Johnson MIS Ubuntu/Linux 11.10 |
|
|
 |
Lateron

|
Posted:
Fri Feb 06, 2004 5:16 am |
|
Hi Scott,
I use Macromedia Homesite and have done for about three years now and I have never known it to add to the code..
That was one of the first things I checked because I know Dreamweaver and Frontpage can screw up code.
The quotes are being added when I click update on the config page server side not on the PC. I don't think its my hosts setup either because I my good site is on the same shared server.
Ron... |
Last edited by Lateron on Fri Feb 06, 2004 5:19 am; edited 1 time in total |
|
|
 |
Raven

|
Posted:
Fri Feb 06, 2004 5:17 am |
|
Lateron wrote: | I am very disappointed to report that I downloaded the complete kisgb directory from the working site, deleted the directory on the faulty then uploaded the good directory and the quotes problem is still there.
I won't take anymore of your time as I have uploaded the manually edited user prefs file and kisgb is working.
I guess we will never know the answer to this one.
Thank you again for all your help,
Ron..... | Is the working site that you copied from using the customized 7.0 kisgb distribution or not? It just dawned on me that the customized version is not the same. I will run further tests today. |
|
|
|
 |
Nukeum66

|
Posted:
Fri Feb 06, 2004 5:23 am |
|
It has to be a software related problem, I've tested the custom distro and KISGB_Nuke and they are not having this problem.
Have you tried a different editor and FTP ... ? |
|
|
|
 |
Lateron

|
Posted:
Fri Feb 06, 2004 5:27 am |
|
Raven wrote: | Is the working site that you copied from using the customized 7.0 kisgb distribution or not? It just dawned on me that the customized version is not the same. I will run further tests today. |
Both sites are using your customized V7 distro, Raven. I also uploaded the complete files (after deleting the kisgb directory) from the standalone nuke kisgb twice with the same result.
Ron.. |
|
|
|
 |
Raven

|
Posted:
Fri Feb 06, 2004 5:32 am |
|
BIZARRE! Well, in any event, if both sites are now working, I guess we chalk it up to the Michael and Janet Jackson affair  |
|
|
|
 |
Lateron

|
Posted:
Fri Feb 06, 2004 5:33 am |
|
Nukeum66 wrote: | It has to be a software related problem, I've tested the custom distro and KISGB_Nuke and they are not having this problem.
Have you tried a different editor and FTP ... ? |
I have done that, Scott, and it doesn't explain why it happens on one site and not the other. If I copy the user prefs from the good site or manually edit it everything works until I try to save config changes. That's why I am convinced the quotes are being added on the server when the user prefs file is saved.
I hope you good folk don't have the same headache I have.
Ron... |
|
|
|
 |
Raven

|
Posted:
Fri Feb 06, 2004 5:35 am |
|
You might try running phpinfo() on both servers and comparing the differences to try to isolate. But, I can't imagine what setting would cause this. |
|
|
|
 |
Lateron

|
Posted:
Fri Feb 06, 2004 5:37 am |
|
Raven wrote: | BIZARRE! Well, in any event, if both sites are now working, I guess we chalk it up to the Michael and Janet Jackson affair |
Yes, please don't waste any more time as both GBs are working unless once your in detective mode.......
Speaking of Janet Jackson: I put news items and links on my front page and since putting that particular story I have had hundreds of hits - my MS Analysis page looks like something from the United Nations! What some people do for cheap thrills....say no more!
I am off to bed (1040pm) 'cause I have to take my daughter to softball early in the morning.
Thanks again for all your help, Raven & Scott.
Ron... |
|
|
|
 |
|