Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> KISGB General Support
Author Message
Lateron
Worker
Worker



Joined: May 10, 2003
Posts: 119
Location: Katoomba, NSW, Australia.

PostPosted: Thu Feb 05, 2004 8:48 pm Reply with quote

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..
 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Thu Feb 05, 2004 9:26 pm Reply with quote

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.
 
View user's profile Send private message
Lateron







PostPosted: Thu Feb 05, 2004 10:25 pm Reply with quote

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: http://www.tscalumni.net
 
Raven







PostPosted: Thu Feb 05, 2004 10:28 pm Reply with quote

Have you changed the permissions on user.prefs.php to 777?
 
Lateron







PostPosted: Thu Feb 05, 2004 10:36 pm Reply with quote

Yes,

kisgb to 777
themes folder
user prefs a
and the csv file
 
Raven







PostPosted: Thu Feb 05, 2004 10:56 pm Reply with quote

Your user.prefs.php file is corrupted. Notice all the &quote'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







PostPosted: Thu Feb 05, 2004 11:08 pm Reply with quote

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







PostPosted: Thu Feb 05, 2004 11:12 pm Reply with quote

Possibly a bug in my program. Try this. Before you upload, set the prefs to registered users only. Does it still error?
 
Lateron







PostPosted: Thu Feb 05, 2004 11:17 pm Reply with quote

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







PostPosted: Thu Feb 05, 2004 11:19 pm Reply with quote

It works ok here. Very strange ....
 
Raven







PostPosted: Thu Feb 05, 2004 11:20 pm Reply with quote

Try this too. Copy your entire folder from your other site and see if you can edit it then.
 
Lateron







PostPosted: Thu Feb 05, 2004 11:24 pm Reply with quote

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 Very Happy
 
Lateron







PostPosted: Fri Feb 06, 2004 12:44 am Reply with quote

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. Crying or Very sad

I won't take anymore of your time as I have uploaded the manually edited user prefs file and kisgb is working. Smile

I guess we will never know the answer to this one. Confused

Thank you again for all your help, Mr. Green
Ron.....
 
Nukeum66
Life Cycles Becoming CPU Cycles



Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Fri Feb 06, 2004 4:56 am Reply with quote

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 
View user's profile Send private message Visit poster's website
Lateron







PostPosted: Fri Feb 06, 2004 5:16 am Reply with quote

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







PostPosted: Fri Feb 06, 2004 5:17 am Reply with quote

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. Crying or Very sad

I won't take anymore of your time as I have uploaded the manually edited user prefs file and kisgb is working. Smile

I guess we will never know the answer to this one. Confused

Thank you again for all your help, Mr. Green
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







PostPosted: Fri Feb 06, 2004 5:23 am Reply with quote

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







PostPosted: Fri Feb 06, 2004 5:27 am Reply with quote

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







PostPosted: Fri Feb 06, 2004 5:32 am Reply with quote

BIZARRE! Well, in any event, if both sites are now working, I guess we chalk it up to the Michael and Janet Jackson affair Laughing
 
Lateron







PostPosted: Fri Feb 06, 2004 5:33 am Reply with quote

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. Sad


Ron...
 
Raven







PostPosted: Fri Feb 06, 2004 5:35 am Reply with quote

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







PostPosted: Fri Feb 06, 2004 5:37 am Reply with quote

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 Laughing


Yes, please don't waste any more time as both GBs are working unless once your in detective mode....... Laughing

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...
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> KISGB General Support

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©