Author |
Message |
hanscom
Hangin' Around

Joined: Oct 16, 2003
Posts: 36
|
Posted:
Fri Oct 26, 2007 7:22 am |
|
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 |
|
|
|
 |
jakec
Site Admin

Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom
|
Posted:
Fri Oct 26, 2007 9:47 am |
|
Please turn on error reporting and post back any errors you are getting. |
|
|
|
 |
hanscom

|
Posted:
Fri Oct 26, 2007 1:29 pm |
|
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
|
Posted:
Fri Oct 26, 2007 2:49 pm |
|
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 |
|
|
 |
hanscom

|
Posted:
Sat Oct 27, 2007 2:42 am |
|
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

|
Posted:
Sat Oct 27, 2007 11:19 am |
|
Great! Please consider sending your changes to Raven. |
|
|
|
 |
hanscom

|
Posted:
Sat Oct 27, 2007 2:08 pm |
|
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
|
Posted:
Sat Oct 27, 2007 9:37 pm |
|
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? |
|
|
|
 |
hanscom

|
Posted:
Sun Oct 28, 2007 3:32 am |
|
The version of what application do you want to know?
Problem was solved after modification described in last post. |
|
|
|
 |
jakec

|
Posted:
Sun Oct 28, 2007 3:38 am |
|
The version of KISGB you are using? |
|
|
|
 |
hanscom

|
Posted:
Sun Oct 28, 2007 4:46 am |
|
KISGB-nuke 5.1.1
Date of files: april 11 2005 |
|
|
|
 |
jakec

|
Posted:
Sun Oct 28, 2007 5:48 am |
|
Might be worth upgrading to v5.2.0. |
|
|
|
 |
Raven

|
Posted:
Sun Oct 28, 2007 7:04 am |
|
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

|
Posted:
Sun Oct 28, 2007 12:42 pm |
|
|
|
 |
|