Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

500 Internal Server Error-MetaMod-Administrator

500 Internal Server Error-MetaMod-Administrator

Hi everyone!
I have some trouble:
When I input SQL code to PHP textarea and try to save configuration there is 500 Internal Server Error hmmsad
Joomla 1.5 Metamod 2.3

http://s53.radikal.ru/i139/1007/02/0f191afd4874.jpg

and then..after click on "save" or "apply"..
http://s05.radikal.ru/i178/1007/ce/4b4148393833.png

Need help..
thnx

Edited By: GreenGray
28-Jul-10 15:09:49

GreenGray
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: 500 Internal Server Error-MetaMod-Administrator

Hi GreenGray ,

I wonder if your host has some extra security protection on it? There might be some Joomla component or PHP module that detects when a GET or POST request contains "suspicious" text, and forces a server error.

In this case, it may be being triggered by SQL commands contained in the text field.

Can you confirm that this only happens when the PHP box contains SQL code? If you just put in some plain text, does it save that ok?

Cheers,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3314 Posts
User info in posts
Administrator has disabled public posting

Re: 500 Internal Server Error-MetaMod-Administrator

No, even if I put something like:
"//SELECT

..blah blah.. code..
..blah blah.. code

//FROM
"
It crashs...
Well, thanks,
I will go through site's and Joomla's settings related with security..

GreenGray
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: 500 Internal Server Error-MetaMod-Administrator

So what happens if you just have a simple comment, e.g.

// example here...

Does that allow you to save? If so, I'm positive it's a Joomla or PHP security module of some sort that's preventing the other things from saving.

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3314 Posts
User info in posts
Administrator has disabled public posting

Re: 500 Internal Server Error-MetaMod-Administrator

It crashs only if there is a text with "SELECT" and "FROM",or "UPGRADE","IINSERT" and other SQL words.
I found - there is stupid setting on site. ModMetamod works good))
thanks for help ;-)

GreenGray
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: 500 Internal Server Error-MetaMod-Administrator

Hey can you tell me what the setting was? Is it something in core Joomla, or an extension, or some sort of PHP setting?

(just so I can tell people what to look for when they report the same problem).

Cheers,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3314 Posts
User info in posts
Administrator has disabled public posting

Re: 500 Internal Server Error-MetaMod-Administrator

It was PHP settings for GET and POST. I haven't acces to it... so I was forced to use such an ugly code like :
"
$SEL=str_replace("a","","SaEaLaEaCaT");
$FRO=str_replace("a","","FaRaOaM");
$WHE=str_replace("a","","WaHaEaRaE");
"
It's ugly, but works..

GreenGray
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: 500 Internal Server Error-MetaMod-Administrator

Oooh, that's nasty! Glad it works though.

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3314 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1691
Total Polls:
6
Total Posts:
5912
Total Posts Today:
6
User Info:
 
Total Users:
11527
Newest User:
david9684
Members Online:
1
Guests Online:
195

Online: 
david9684

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked