Welcome Guest, Not a member yet? Register   Sign In
[HELP NEEDED] array serialization and inserting into database
#11

[eluser]M52 Studios[/eluser]
Ok, I've deleted all the contents in the .htaccess file, so there should be no rewrites. But the classes still get loaded twice.

What else can I look at? Could there be a problem with Controller/Model?
#12

[eluser]WanWizard[/eluser]
Have you followed my suggestion to log the REQUEST_URI to the logfile, so you can actually see what is triggering the second load?
#13

[eluser]M52 Studios[/eluser]
[quote author="WanWizard" date="1293120442"]Have you followed my suggestion to log the REQUEST_URI to the logfile, so you can actually see what is triggering the second load?[/quote]

Yea, I have.

Here's what I got.
Code:
DEBUG - 2010-12-23 02:25:28 --> Config Class Initialized
DEBUG - 2010-12-23 02:25:28 --> Hooks Class Initialized
DEBUG - 2010-12-23 02:25:28 --> URI Class Initialized
DEBUG - 2010-12-23 02:25:28 --> Router Class Initialized
DEBUG - 2010-12-23 02:25:28 --> Output Class Initialized
DEBUG - 2010-12-23 02:25:28 --> Input Class Initialized
DEBUG - 2010-12-23 02:25:28 --> Global POST and COOKIE data sanitized
DEBUG - 2010-12-23 02:25:28 --> Language Class Initialized
DEBUG - 2010-12-23 02:25:28 --> Loader Class Initialized
DEBUG - 2010-12-23 02:25:28 --> Helper loaded: url_helper
DEBUG - 2010-12-23 02:25:28 --> Helper loaded: form_helper
DEBUG - 2010-12-23 02:25:28 --> Database Driver Class Initialized
DEBUG - 2010-12-23 02:25:28 --> Model Class Initialized
DEBUG - 2010-12-23 02:25:28 --> Model Class Initialized
DEBUG - 2010-12-23 02:25:28 --> Controller Class Initialized
DEBUG - 2010-12-23 02:25:28 --> URL requested: /limousineservice.org/index.php?signup/process_part1
DEBUG - 2010-12-23 02:25:28 --> File loaded: C:\USB\xampp\htdocs\limousineservice.org/system/application/views/signup_view.php
DEBUG - 2010-12-23 02:25:28 --> Final output sent to browser
DEBUG - 2010-12-23 02:25:28 --> Total execution time: 0.1773
DEBUG - 2010-12-23 02:25:28 --> Config Class Initialized
DEBUG - 2010-12-23 02:25:28 --> Hooks Class Initialized
DEBUG - 2010-12-23 02:25:28 --> URI Class Initialized
DEBUG - 2010-12-23 02:25:28 --> Router Class Initialized
DEBUG - 2010-12-23 02:25:28 --> Output Class Initialized
DEBUG - 2010-12-23 02:25:28 --> Input Class Initialized
DEBUG - 2010-12-23 02:25:28 --> Global POST and COOKIE data sanitized
DEBUG - 2010-12-23 02:25:28 --> Language Class Initialized
DEBUG - 2010-12-23 02:25:28 --> Loader Class Initialized
DEBUG - 2010-12-23 02:25:28 --> Helper loaded: url_helper
DEBUG - 2010-12-23 02:25:28 --> Helper loaded: form_helper
DEBUG - 2010-12-23 02:25:28 --> Database Driver Class Initialized
DEBUG - 2010-12-23 02:25:28 --> Model Class Initialized
DEBUG - 2010-12-23 02:25:28 --> Model Class Initialized
DEBUG - 2010-12-23 02:25:28 --> Controller Class Initialized
DEBUG - 2010-12-23 02:25:28 --> URL requested: /limousineservice.org/index.php?signup/process_part1
DEBUG - 2010-12-23 02:25:28 --> File loaded: C:\USB\xampp\htdocs\limousineservice.org/system/application/views/signup_view.php
DEBUG - 2010-12-23 02:25:28 --> Final output sent to browser
DEBUG - 2010-12-23 02:25:28 --> Total execution time: 0.1920

I see that the Model class is being loaded twice, but I think that's because I have extended it, so that is the reason for that. But other than that, I'm lost. Let me know what you make of this.

Thanks Wan!
#14

[eluser]WanWizard[/eluser]
Odd, same URL?

Have you checked firebug (net tab) to see what activity your web page is generating towards the server? Do you see the second request there? If you do, check if you have any javascript on the page that behaves differently from what you expect?
#15

[eluser]M52 Studios[/eluser]
No JavaScript installed, I always do it at the very last step. The net console is only showing a single POST for index.php?signup/process_part1 and one css request.
#16

[eluser]WanWizard[/eluser]
I'm out of idea's. Without access to the code, page and .htaccess file it's very difficult to suggest furter actions...
#17

[eluser]M52 Studios[/eluser]
hmmm...well, here is something interesting...
the form works as it should in FF/IE/ but in Chrome I am still seeing the double entry.

This is beyond odd. It shouldn't make any difference what so ever, right? This is all going on server side.

I am bewildered.

My .htaccess file is empty..
#18

[eluser]InsiteFX[/eluser]
Not sure if this will help, but worth a try...

If you are using CI 1.7.x try adding the following to
application/config/user_agents.php

Code:
// under $browsers = array(

'Chrome' => 'Chrome',

This is in CI 2.0 but not CI 1.7.X

InsiteFX
#19

[eluser]M52 Studios[/eluser]
Hey Insite, I tried your suggestion, didn't do it for me. Damn, I was really hoping!

Thank you, though!
#20

[eluser]WanWizard[/eluser]
Check your apache logs. Isn't Chrome trying to load an favicon.ico or something?




Theme © iAndrew 2016 - Forum software by © MyBB