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
hanscom
Hangin' Around



Joined: Oct 16, 2003
Posts: 36

PostPosted: Fri Oct 26, 2007 7:22 am Reply with quote

Hi,
php-nuke 7.6 runs as localhost on my pc with success. I have installed kisgb-nuke and it is in the admin panel.
Changes made in kisgb admin panel are successfull. All attributes of folders and files in localhost are "Archive"only.
If I start kisgb I see the sample message, but as soon as I sign the guestbook with a new message,
I get a white screen and the message has not been added to kisgb.csv.php in the kisgb module.
On a website it works. Any hints are welcome.
Regards, Hans
 
View user's profile Send private message
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Fri Oct 26, 2007 9:47 am Reply with quote

Please turn on error reporting and post back any errors you are getting.
 
View user's profile Send private message
hanscom







PostPosted: Fri Oct 26, 2007 1:29 pm Reply with quote

Thanks for your time.
Error message says:
Parse error: syntax error, unexpected T_PRIVATE, expecting ']' in E:\AppServ\www\modules\kisgb\addtogb.php on line 56
Line 56 is:
$HTTP_POST_VARS[private] = $HTTP_POST_VARS[private_msg];
 
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Fri Oct 26, 2007 2:49 pm Reply with quote

I am guessing that you are running PHP5 on your local PC? I think in PHP5 the word private is now a reserved word. If you are running XAMPP, there is a downgrade .bat file that will downgrade you to PHP4, where that script might run better.

Or you could try to change the script. It would be better if that line was written like:

$HTTP_POST_VARS['private'] = $HTTP_POST_VARS['private_msg'];

(notice the quotes)

There will probably be more changes than that required. Perhaps Raven has a PHP5 compatible version of that script?

_________________
Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module 
View user's profile Send private message
hanscom







PostPosted: Sat Oct 27, 2007 2:42 am Reply with quote

Thanks for the tip about error reporting.

Yes, I am running PHP5
I changed the script in line 56 (private with quotes)
After that, I also had to change line 57 to add quotes.
Problem solved !
Thanks for your tips and help.
Regards,
Hans
 
Gremmie







PostPosted: Sat Oct 27, 2007 11:19 am Reply with quote

Great! Please consider sending your changes to Raven.
 
hanscom







PostPosted: Sat Oct 27, 2007 2:08 pm Reply with quote

Lines 56 & 57 changed in addtogb.php of KISGB-nuke 5.11 :
$HTTP_POST_VARS[private] = $HTTP_POST_VARS[private_msg];
if ($HTTP_POST_VARS[private]!="on") unset($HTTP_POST_VARS[private]);
into:
$HTTP_POST_VARS['private'] = $HTTP_POST_VARS['private_msg'];
if ($HTTP_POST_VARS['private']!="on") unset($HTTP_POST_VARS['private']);

(Quotes added)
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Oct 27, 2007 9:37 pm Reply with quote

What version are you running? This was corrected in v4.04. And ALL of the array elements are now quoted in v5.2.0 which is xhtml compatible. But, the logic would not have been affected.

Change Log wrote:
/* This next line adds the private variable [back] to the post array. This is needed because I had to rename private to private_msg in index.php - add section. In NN6.x, the word private is apparently reserved and was causing a javascript error. This code caused the least amount of pain to remedy the situation */

if (isset($HTTP_POST_VARS['private_msg']))
$HTTP_POST_VARS['private'] = $HTTP_POST_VARS['private_msg'];

if (isset($HTTP_POST_VARS['private']) AND $HTTP_POST_VARS['private']!='on')
unset($HTTP_POST_VARS['private']);


What isn't working?
 
View user's profile Send private message
hanscom







PostPosted: Sun Oct 28, 2007 3:32 am Reply with quote

The version of what application do you want to know?
Problem was solved after modification described in last post.
 
jakec







PostPosted: Sun Oct 28, 2007 3:38 am Reply with quote

The version of KISGB you are using?
 
hanscom







PostPosted: Sun Oct 28, 2007 4:46 am Reply with quote

KISGB-nuke 5.1.1
Date of files: april 11 2005
 
jakec







PostPosted: Sun Oct 28, 2007 5:48 am Reply with quote

Might be worth upgrading to v5.2.0.
 
Raven







PostPosted: Sun Oct 28, 2007 7:04 am Reply with quote

v5.2 hasn't been released yet.

What puzzles me is that the code was changed in v4. It looks the same to me.
 
jakec







PostPosted: Sun Oct 28, 2007 12:42 pm Reply with quote

Bang Head
 
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 ©