PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
elro
New Member
New Member


Joined: Oct 14, 2003
Posts: 3

PostPosted: Tue Oct 14, 2003 2:26 am Reply with quote Back to top

Hi, I have successfully installed KISGB and would now like to use the logging function. I have removed the #'s from the logging code lines in index.php as is suggested in the comment lines.
However, after doing that the guestbook only displays 1 line that has to do with logging, but my entire guestbook disappears. Obviously I am doing something wrong but I have no idea what it is.... Does anyone have a suggestion?

Thanks,

elro
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Tue Oct 14, 2003 7:49 am Reply with quote Back to top

Elro,

I will get back to you later today. Just got home late last night after a trip. The logging functionality was put in place so long ago that I have to review my own code Laughing!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Tue Oct 14, 2003 9:57 am Reply with quote Back to top

Due to the changes in the way PHP now handles file locking, you will need to make the following changes for the logging to work. In the file classes.php, find this line
Code:
@flock($log,1);
and change it to
Code:
@flock($log,2);
The logging should now work if you followed the other instructions. Let me know if you are still experiencing any problems.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
elro
New Member
New Member


Joined: Oct 14, 2003
Posts: 3

PostPosted: Tue Oct 14, 2003 2:26 pm Reply with quote Back to top

Thanks for the tip, but unfortunately it does not solve my problem. Starting from a working situation, I remove the "#" preceding the 8 lines of code in index.php. After refreshing the guestbook I see a white page saying "logs/kisgb.log.php" and that´s it. The only resolution I have is to put back the "#" and return to a working guestbook with no logging Sad

I have tried to find the exact source and the problem only occurs when I uncomment the 7th line in the logging code (in index.php): the one that has "writelog" in it. Is there a problem finding the right location for it (I have installed kisgb in a separate guestbook folder, not the root)?

Regards,

Elro
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Tue Oct 14, 2003 2:31 pm Reply with quote Back to top

Why are you refreshing the guestbook? I'm confused about exactly what's happening at that point. Operationally, I uncommented the lines in index and corrected that 1 line of code in classes.php and it started logging. Are the permissions on the log files 777?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
elro
New Member
New Member


Joined: Oct 14, 2003
Posts: 3

PostPosted: Tue Oct 14, 2003 2:51 pm Reply with quote Back to top

By refreshing I simply meant refreshing the page in the browser to see the changes aftes removing the #, so that was not a big point.

The 777-issue was a good point though (I knew it had to be something simple Wink). Looks like the problem is solved!

Thanks!

Elro
View user's profile Send private message
sqzdog
Involved
Involved


Joined: Sep 22, 2003
Posts: 252

PostPosted: Tue Oct 14, 2003 8:12 pm Reply with quote Back to top

Sorry, newbie question, but what is:

KISGB
Splatt Forums
View user's profile Send private message Send e-mail
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Tue Oct 14, 2003 8:16 pm Reply with quote Back to top

KISGB is a very popular and extremely configurable PHP guestbook that I wrote a couple years ago and continue to enhance and support. Read the reviews at
Only registered users can see links on this board!
Get registered or login to the forums!
. I then ported it to Nuke a few months ago. get it from the download's area. Try it out here from the Navigation block.

SPLATT Forums used to be the forums that nuke used but since v6.5, I believe, nuke now uses PHPBB.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum