Welcome Guest, Not a member yet? Register   Sign In
  text_helper bug
Posted by: El Forum - 08-20-2007, 02:00 PM - No Replies

[eluser]Référencement Google[/eluser]
Hi,

Found a bug in the text_helper, function character_limiter. While returning latin characters, like à I didn't understood why but depending on the string limited lenght, it sometimes return a wrong encoded string (appears some ? in string)

So, changing this line solves the problem:

ORIGINAL

Code:
$str = preg_replace("/\s+/", ' ', preg_replace("/(\r\n|\r|\n)/", ' ', $str));

MODIFIED
Code:
$str = preg_replace("/S+\s+/", ' ', preg_replace("/(\r\n|\r|\n)/", ' ', $str));


  How to suppress error output
Posted by: El Forum - 08-20-2007, 01:57 PM - No Replies

[eluser]lkagan[/eluser]
As I understand it, the only 'supported' way to suppress error output is by changing the value of error_reporting. This is certainly a deal-breaker. Disabling all error reporting on a live server is not a good practice.

How can I suppress the display of errors reported by CodeIgniter and (as strange as it may be) have it pay attention to my settings in php.ini or directory specific php settings via .htaccess?

Thanks in advance.

Larry


  Firefox doesn't like my CI-based URL
Posted by: El Forum - 08-20-2007, 01:55 PM - No Replies

[eluser]Jay Jennings[/eluser]
Firefox (both on Windows and Mac) is having a problem with this URL:

http://sonictoolkit.com/ssp/go.php/go/index/10002/

IE and Safari have no problem with it, the page requested shows up like normal, but with Firefox it just shows a blank page.

Can anyone point me in the direction of a solution?

Thanks.

Jay Jennings


  I'm on the east coast, my database (mysql) server is on the west. How do we resolve our differences?
Posted by: El Forum - 08-20-2007, 01:25 PM - No Replies

[eluser]tmcw[/eluser]
I'm using MySQL 5.x and it's apparently on PDT instead of Eastern (UM5) time. I'd like to make this right in some good way such that I don't have to repeat the adjustment everywhere in my code (especially because I'm moving the app to a new server which will most likely be in UM5). I'm storing stuff with DATETIMEs currently...

I'm considering that maybe if I can find somewhere in CodeIgniter where I can write code right after the bootstrapping stuff, so that I can set my user time zone for MySQL. But it looks like setting timezones for mysql globally is not possible on shared hosting (right now, it's Dreamhost, soon it'll be no-f'ing-write-access university servers).

Any ideas? Thanks all.


  ERROR - Severity: Warning --> chmod() Operation not permitted /path/system/libraries/Log.php 113
Posted by: El Forum - 08-20-2007, 12:32 PM - No Replies

[eluser]Unknown[/eluser]
Guys,

Anyone know why my logs are full of these messages?

ERROR - 2007-08-20 19:23:04 --&gt; Severity: Warning --&gt; chmod() [<a href='function.chmod'>function.chmod</a>]: Operation not permitted /path/system/libraries/Log.php 113

ls -ld system/logs
gives
drwxrwxrwx 2 username groupname 4096 Aug 20 16:42 system/logs/
and the Log script can definitely write to the logs because it writes to the log everytime I load a page.

Anything else I can post to shed some light on this problem?

___________________________________________________________________

Some more investigation reveals it's happening whenever there's a 404 page.
The logs give:

ERROR - 2007-08-20 19:34:40 --&gt; 404 Page Not Found --&gt;
ERROR - 2007-08-20 19:34:40 --&gt; Severity: Warning --&gt; chmod() ...etc...


  Mini-App
Posted by: El Forum - 08-20-2007, 11:59 AM - No Replies

[eluser]Peccavio[/eluser]
[quote author="esra" date="1187501328]
FreakAuth and UserAuth (extracted from Derek Allard's miniapp application) can be converted to modules.[/quote]

I am the author of Mini-App !!

Craig originally wrote UserAuth. Derek added Admin with nice js and "Remember Me" functionality. I converted UserAuth for PHP4 and switched it to Native_Session. The Mini-App is my example (Demo of Usage) program.

I'm back, Mini-App will become more then UserAuth

George


  input->post doesn't work
Posted by: El Forum - 08-20-2007, 07:13 AM - No Replies

[eluser]snaggy[/eluser]
input->post always returns false.. what am I doing wrong?

The code that follows is being executed on a freshly installed CI, last version

Code:
&lt;?php

class Welcome extends Controller {

    function Welcome()
    {
        parent::Controller();    
    }
    
    function index()
    {
        $this->load->view('welcome_message');
    }
    
    function post(){
        echo "mex:".$this->input->post('example');
    }
}
?&gt;


Code:
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Welcome to CodeIgniter&lt;/title&gt;

&lt;/head&gt;
&lt;body&gt;

<h1>Welcome to CodeIgniter!</h1>

<p>The page you are looking at is being generated dynamically by CodeIgniter.</p>

<p>If you would like to edit this page you'll find it located at:</p>
<code>system/application/views/welcome_message.php</code>

<p>The corresponding controller for this page is found at:</p>
<code>system/application/controllers/welcome.php</code>

<p>If you are exploring CodeIgniter for the very first time, you should start by reading the <a href="user_guide/">User Guide</a>.</p>


<p><br />Page rendered in {elapsed_time} seconds</p>

&lt;form id="form" action="http://localhost/post/index.php/welcome/post" method="POST"&gt;
&lt;input type="text" id="example" value="message" /&gt;
&lt;input type="submit" name="submit" /&gt;
&lt;/form&gt;

&lt;/body&gt;
&lt;/html&gt;

what's wrong in my code?

bye!


  no result for simple queries
Posted by: El Forum - 08-20-2007, 03:15 AM - No Replies

[eluser]xwero[/eluser]
I didn't know if this is a bug or a design decision so i posted it here.

i was playing with the mysql functions and i discovered

Code:
$query = $this->db->query('select DAYOFWEEK('.$year.'-'.$month.'-'.$day.') as nr');
$row = $query->row();
echo $query->num_rows();
echo $row->nr;
nr doesn't display anything eventhough the num_rows method displays 1.

Is there a workaround to display this sort of query results or do i have to use the native php functions for this?


  [SOLVED] Anyone used Perl w/ PHP for large file uploads?
Posted by: El Forum - 08-20-2007, 01:24 AM - No Replies

[eluser]the real rlee[/eluser]
Hi guys,

im struggling to get the File/Upload library (and PHP by any means) to upload large files. I was wondering if anybody had tried using Perl for large file loads and had any examples of how i could integrate this into CI.

Cheers!


  Server problems
Posted by: El Forum - 08-20-2007, 01:13 AM - No Replies

[eluser]ouzodestructo[/eluser]
Hi
I am new to Codeigniter and have been enjoying building my first site with it. I've come across a problem when uploading my site to my server though. You can check it out at www.mazar.com.au. The homepage loads fine so I know its all configured correctly. Then, clicking the first menu item 'Campaigns' should deliver me to the campaigns page, which it does on my local, but on the online server I get a '404 Not Found' error. And its not the Codeigniter generated 404 which is strange.

I don't know where to look to solve this because it works on my local and the homepage on this server works fine. I know i've configured the site correctly too, so I'm a little confused.

Is it possible that it may be a problem with the server? I have bought web space with servage.net who use clustered servers but I previously have had no problems with them tho.

Can anyone help me with this?


Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Latest Threads
Changing Session cookie -...
by paulbalandan
5 hours ago
Update from 4.6.0 to 4.6....
by Vespa
11 hours ago
hot-reload side effects s...
by InsiteFX
Yesterday, 10:11 PM
using app/Config/App.php ...
by sam547
05-16-2025, 03:04 PM
Setting baseURL in Regist...
by grimpirate
05-15-2025, 02:20 PM
CRUD Code Generator
by DeanE10
05-15-2025, 05:31 AM
CodeIgniter.com - Report ...
by Harry Lyre
05-14-2025, 04:26 AM
Missing closing bracket w...
by abf
05-13-2025, 07:27 PM
Sessions old files are de...
by InsiteFX
05-12-2025, 10:30 PM
Ajax post failing with Ty...
by PaulC
05-12-2025, 12:23 AM

Forum Statistics
» Members: 146,706
» Latest member: kqxsmbbcom
» Forum threads: 78,392
» Forum posts: 379,468

Full Statistics

Search Forums

(Advanced Search)


Theme © iAndrew 2016 - Forum software by © MyBB