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


Joined: Oct 16, 2003
Posts: 31

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

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
Moderator


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

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

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


Joined: Oct 16, 2003
Posts: 31

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

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];
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


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

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

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?
View user's profile Send private message
hanscom
Hangin' Around


Joined: Oct 16, 2003
Posts: 31

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

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
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


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

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

Great! Please consider sending your changes to Raven.
View user's profile Send private message
hanscom
Hangin' Around


Joined: Oct 16, 2003
Posts: 31

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

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


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

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

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 Visit poster's website AIM Address Yahoo Messenger
hanscom
Hangin' Around


Joined: Oct 16, 2003
Posts: 31

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

The version of what application do you want to know?
Problem was solved after modification described in last post.
View user's profile Send private message
jakec
Moderator


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

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

The version of KISGB you are using?
View user's profile Send private message
hanscom
Hangin' Around


Joined: Oct 16, 2003
Posts: 31

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

KISGB-nuke 5.1.1
Date of files: april 11 2005
View user's profile Send private message
jakec
Moderator


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

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

Might be worth upgrading to v5.2.0.
View user's profile Send private message
Raven
Site Admin/Owner


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

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

v5.2 hasn't been released yet.

What puzzles me is that the code was changed in v4. It looks the same to me.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
jakec
Moderator


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

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

Bang Head
View user's profile Send private message
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-2008 by Raven
Proud to be listed at Lobo Links Web Directory

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 Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

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

zerosum