You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 71 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - [Fixed]Bug in Content - unable to use single quotation marks [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Sun Apr 20, 2003 3:19 pm Reply with quoteBack to top

You might try adding this line as the first line of code AFTER the comment block to mainfile.php:

Code:
set_magic_quotes_runtime(1);

Since mainfile (I believe) is included in all modules, it should take effect. However, if mainfile is not included in the scripts that you are working with, just add that line to the top of your script anywhere after the initial
Code:
<?
set_magic_quotes_runtime(1);

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
PartyKC
Nuke Soldier
Nuke Soldier


Joined: Jul 29, 2003
Posts: 14

Location: KS, USA

PostPosted: Fri Aug 01, 2003 9:45 pm Reply with quoteBack to top

This all sounds great, but is there a way to get this done globaly?? I am gett a problem with ' and " randomly. If I refreash a few times it will go away for a couple more reloads and then back again. Really anoying!! I have try everythig withe the magic quotes settings and such and still nothing. Someone told me it was the server but it is not the server. I own the server and have about 7 other CMS systems on here without problems. I only have the problem in PHP-Nuke. Any help would be grat!!

James
Find all posts by PartyKCView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Fri Aug 01, 2003 11:21 pm Reply with quoteBack to top

If you have access to the php.ini then set it there. If not, and you are using Apache, then add this line to .htaccess and ftp it to your web root directory

PHP_FLAG set_magic_quotes_runtime On

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
PartyKC
Nuke Soldier
Nuke Soldier


Joined: Jul 29, 2003
Posts: 14

Location: KS, USA

PostPosted: Fri Aug 01, 2003 11:55 pm Reply with quoteBack to top

I do have access and it is on, but still getting the problem.
Find all posts by PartyKCView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Sat Aug 02, 2003 12:06 am Reply with quoteBack to top

The fact that it's there and then not there, refreshing clears it up, etc., doesn't sound like a setting issue. A setting should provide consistent results. I don't know what to tell you at this time. Especially if you have tried the fix attempts from page 1 of this thread. I assume that magic_quotes_gpc is set to On also?

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
PartyKC
Nuke Soldier
Nuke Soldier


Joined: Jul 29, 2003
Posts: 14

Location: KS, USA

PostPosted: Sat Aug 02, 2003 12:23 pm Reply with quoteBack to top

After some more research, I found this problem to be on a couple other sites on the server. But, after turning of the Magic_Quotes in the .conf file every site works now "except" PHP-Nuke. Again, it is the random problem. After a few reloads it's up and working fine and a few later back to the same old problem.

I am running PHP-Nuke 6.8 on RedHat 7.3 Ensim Webppliance. Any help would be great as this is starting to effect many of my users of PHP-Nuke.

Thanks in advance...

James
Find all posts by PartyKCView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Sat Aug 02, 2003 12:28 pm Reply with quoteBack to top

Raven wrote:
I assume that magic_quotes_gpc is set to On also?
It needs to be.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
PartyKC
Nuke Soldier
Nuke Soldier


Joined: Jul 29, 2003
Posts: 14

Location: KS, USA

PostPosted: Sat Aug 02, 2003 12:36 pm Reply with quoteBack to top

Server wide it is now off as that fixed the problem on the rest of the server. I have tried with it on and off and got the same results.

James
Find all posts by PartyKCView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Sat Aug 02, 2003 12:46 pm Reply with quoteBack to top

magic_quotes_gpc
not
magic_quotes_runtime

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
PartyKC
Nuke Soldier
Nuke Soldier


Joined: Jul 29, 2003
Posts: 14

Location: KS, USA

PostPosted: Sat Aug 02, 2003 1:28 pm Reply with quoteBack to top

Found another place that the Magic Quotes was on, with everything off the server wide problem is gone!
Find all posts by PartyKCView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Sat Aug 02, 2003 1:30 pm Reply with quoteBack to top

Please clarify which magic quotes setting you are talking about. I have asked you two times already. This makes the third time Confused

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
PartyKC
Nuke Soldier
Nuke Soldier


Joined: Jul 29, 2003
Posts: 14

Location: KS, USA

PostPosted: Sat Aug 02, 2003 1:43 pm Reply with quoteBack to top

Spoke too soon!!!!!!! It is back but now not as offten... ODD! This is driving me nuts!

OK

In the file: /httpd_app.conf

Alias /horde /usr/share/horde
<Directory /usr/share/horde>
DirectoryIndex index.html index.php3 index.htm index.shtml index.cgi
<IfModule mod_php3.c>
php3_magic_quotes_gpc off
</IfModule>
</Directory>

AND IN: /etc/php.ini

; Magic quotes
;

; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magic_quotes_runtime = Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = Off


And it seemed to work longer that before.. but still went back to the problem!!! But only in PHP-Nuke... no where else it seems...

James
Find all posts by PartyKCView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
PartyKC
Nuke Soldier
Nuke Soldier


Joined: Jul 29, 2003
Posts: 14

Location: KS, USA

PostPosted: Sat Aug 02, 2003 1:44 pm Reply with quoteBack to top

PHP Version
4.2.2

mySQL Version
3.23.54
Find all posts by PartyKCView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Sat Aug 02, 2003 1:48 pm Reply with quoteBack to top

For the third time, please turn magic_quotes_gpc on.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
PartyKC
Nuke Soldier
Nuke Soldier


Joined: Jul 29, 2003
Posts: 14

Location: KS, USA

PostPosted: Sat Aug 02, 2003 1:51 pm Reply with quoteBack to top

As I said, with it on I have more problems that before. Either way I am getting the problem. I am not saying that I don't want to turn it back on but it has helped in several other areas of the server like a PHP script I use for my hosting clients and other CMS sites like e107 and such.

I hope I am not making you mad here as that is not my intent.

James
Find all posts by PartyKCView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.241 Seconds - 390 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::