Welcome Guest, Not a member yet? Register   Sign In
The URI you submitted has disallowed characters.
#11

[eluser]Kumar Chetan sharma[/eluser]
[quote author="eoinmcg" date="1272905168"]have you tried setting the permissions of your log folder?[/quote]

I run CI off a mounted disk. The owner of this mount can read write and do anything on the file, log files are created but it when it comes to chmod CI fails Sad
#12

[eluser]eoinmcg[/eluser]
just had a quick look at Log.php and the CI suppresses any chmod errors with the @ operator

i upgraded to lucid over the weekend and haven't had any significant problems.

specifically, what error messages are you getting?
#13

[eluser]Kumar Chetan sharma[/eluser]
Hi,
I got following error.
Code:
ERROR - 2010-05-03 15:47:40 --&gt; Severity: Warning  --&gt; chmod() [<a href='function.chmod'>function.chmod</a>]: Operation not permitted /media/sda5/lamp/www/sandbox/system/libraries/Log.php 113
Unfortunately I cannot upgrade the CI as its not in my control/under my authority. I am an offshore developer. Hope you understand. The problem isn't with CI but either with PHP5 or some thing related to permission and apart from answering your posts I really could not spare my time to investigate it. The upgrade caused many things to go insane and I suspect this is one of those.
By the way I did manage to write something useful for the day using a separate CI installation. :-)
#14

[eluser]eoinmcg[/eluser]
i guess there's nothing more to add here; neither CI nor lucid are the problem, (plus we've somewhat digressed from the topic subject Tongue).

good luck and i hope you get it sorted out!
#15

[eluser]Kumar Chetan sharma[/eluser]
Its better you empty your cache when you encounter a problem in web development. My brain was cached with all sorts of permission issues and I didnt pay attention to the problem. Here is how I solved it in 5 minutes
a) In /index.php changed error_reporting(E_ALL ); to error_reporting(E_ALL & ~E_DEPRECATED);
b) In /system/libraries/URI.php changed line number 191,
Code:
/if ( ! preg_match("|^[".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", $str))
to
Code:
if ( ! preg_match("|^[".str_replace(array('\\-', '\-'), '-', preg_quote($this->config->item('permitted_uri_chars'), '-'))."]+$|i", $str))
. I copied the latter from CI's latest release. :-)

Still I owe you thanks. The project I am working on has totally messed up CI and as I said I dont have authority so I can't force the maintainer to update/upgrade. Sad.
#16

[eluser]eoinmcg[/eluser]
just a wee word of warning;

don't make changes to the system folder, it's going cause more pain if/when you upgrade CI.
the proper way to achieve this is to extend the URI library in appliction/libraries
http://ellislab.com/codeigniter/user-gui...asses.html -> Extending Core Class
#17

[eluser]Kumar Chetan sharma[/eluser]
I know and as I told you I can not upgrade CI. I never change 3rd party libs/files/frameworks. No one should. I used to manage packages for a larger project, 600mb+ and use to create separate rpm for CI and separate rpm for the project so that can both can be installed/updated/upgraded independently.
#18

[eluser]dootzky[/eluser]
just a quick note - the solution worked for me too Smile

I also upgraded my dev Ubuntu computer to 10.4 (Lucid Lynx), and all of my CI projects failed with error message "The URI you submitted has disallowed characters".

the fix was easy, like you said Kumar:

----------
In /system/libraries/URI.php changed line number 191,
/if ( ! preg_match("|^[".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", $str))
to
if ( ! preg_match("|^[".str_replace(array('\\-', '\-'), '-', preg_quote($this->config->item('permitted_uri_chars'), '-'))."]+$|i", $str))
----------

I know a full CI upgrade is cleaner and more valid solution, but this is a quick fix which solved my problem in a minute.

Thanks! Smile
cheers from Serbia, Europe!
dootzky
#19

[eluser]cadee[/eluser]
Fresh install of mamp 1.8.3 and codeigniter 1.7.2. I’ve found a couple of answers but they’re all related to a php 5.3 issue, i’m running 5.2.11 I also tried installing codeigniter 1.7.1 but got the same results.
_________________________________________________________
SEO Agency
SEO Newcastle




Theme © iAndrew 2016 - Forum software by © MyBB