Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
WanWizard
a.k.a. WanWizard
Discussions
4
Comments
8242
Activity
Uri::main() execution problem
Cool, thanks for the feedback. I'll double check if this doesn't have any side effects, and if not I will change it for the next release.
Comment by
WanWizard
February 2014
permalink
Validation not working for Rest Controller with User Model
It's not easy to give an example, as environment and requirements can vary greatly. For example, most of our applications authenticate using certificates. Some general statements: - Do not use GET. Data in the url is easily visable in transit…
Comment by
WanWizard
February 2014
permalink
Validation not working for Rest Controller with User Model
Very unhealthy piece of code btw, anyone calling action_register() can create an unlimited about of accounts?
Comment by
WanWizard
February 2014
permalink
Uri::main() execution problem
Could you try if changing L#155 from $uri = $uri ?: static::string(); to is_null($uri) and $uri = static::string(); and see if that fixes it for you? Then I'll commit it.
Comment by
WanWizard
February 2014
permalink
Uri::main() execution problem
Thanks.
Comment by
WanWizard
February 2014
permalink
SimpleAuth - logged user not saved in session
The main issue is that the Auth package seems to reload the configuration files, which is why you can't load then before and change a value. So that needs to be addressed instead of worked around. Can you create an issue for this at https://gi…
Comment by
WanWizard
February 2014
permalink
Uri::main() execution problem
You mean line 155 will take the active URI because the main one is an empty string? That would be a bug. Could you create an issue for this at https://github.com/fuel/core/issues so one of the developers can pick it up?
Comment by
WanWizard
February 2014
permalink
Format class having trouble with CSV files?
Cool, thanks for the feedback!
Comment by
WanWizard
February 2014
permalink
SimpleAuth - logged user not saved in session
As with regards to the table name, I already said that the first time you access the Auth class, it will load all support classes, and one of them, Auth_Login_Simpleauth, will load the simpleauth config file, and will reload it if it was already loa…
Comment by
WanWizard
February 2014
permalink
creating unique field in table
You mean a UNIQUE INDEX on a non-primary key? Because primary keys are unique by default. If you need additional indexes, you need to use create_index().
Comment by
WanWizard
February 2014
permalink
Format class having trouble with CSV files?
There's a new version of the Format class in 1.8/develop, which should be able to deal with numbers not enclosed in quotes...
Comment by
WanWizard
February 2014
permalink
Format class having trouble with CSV files?
Looking at this again, there are two problems: The first is that your CSV export doesn't have a field header, and this is required for the Format class. The second is that the method used to split the lines in the string can't deal with …
Comment by
WanWizard
February 2014
permalink
SimpleAuth - logged user not saved in session
Then you have an entirely different issue. What do you use for session storage? Cookies? What else is stored in the session?
Comment by
WanWizard
February 2014
permalink
Auth sessions behave weird
Most almost be something specific to your admin environment, otherwise it would happen for other users too?
Comment by
WanWizard
February 2014
permalink
Config::save('any-config', 'any_config') at config/{Fuel::$env}/any-config.php
This is correct behavior. When loading a config file, you can have up to 8 files being merged (module, app, package, core, both with a global and enviroment specific version). When saving, Fuel has no way of knowing from which of they 8 a particu…
Comment by
WanWizard
February 2014
permalink
Uri::main() execution problem
Very weird, I' ve never seen that before. Uri::main() explicitly uses the uri stored in the main request, i.e. the first request fired. Can you check what \Request::main() and \Request::active() return at that point? The first one should retu…
Comment by
WanWizard
February 2014
permalink
Auth sessions behave weird
That would suggest that if you set gc_probability to 0, all your problems are gone, and if you set it to 100, you can hardly login anymore? If that is not the case, it is unlikely this is the cause of your problem. Also, it's the same code tha…
Comment by
WanWizard
February 2014
permalink
SimpleAuth - logged user not saved in session
I don't think that will work, because the Auth (and Simpleauth) config files are only loaded in the Auth class init, so after your Config::set() call. So I think your value is overwritten as soon as you call Auth::instance(). Looking at the …
Comment by
WanWizard
February 2014
permalink
Format class having trouble with CSV files?
Fixed, https://github.com/fuel/core/commit/77e409e188804287ad8db7b3913be8f5f54b9b57 Please create an issue on github for bugs please, it makes it easier to track them. Also, I'm the only dev that checks these forums, so if I'm away, nobod…
Comment by
WanWizard
February 2014
permalink
REST Controller ignoring $rest_format variable?
echo \Fuel::VERSION should give you the correct version (1.7.0, 1.7.1, or 1.8-dev for example). I was convinced the fix was part of 1.7.1, but it looks like it isn't. So you'll have to switch to 1.8/develop (by checking out the repositor…
Comment by
WanWizard
February 2014
permalink
REST Controller ignoring $rest_format variable?
1.7 doesn't have the improved dump feature, it was introduced in 1.7.1. 1.7 simply does a var_dump() if the returned value in a Response isn't a string, or can't be cast to string. Just tested it on 1.8/develop, and if the RESTful a…
Comment by
WanWizard
February 2014
permalink
Auth sessions behave weird
No, it says that there is a 5% chance it will dive into that if. And if it does, it loops over all files, checks which files have a last-modified timestamp older then the expiry timestamp, and delete those. It will not delete all session files, t…
Comment by
WanWizard
February 2014
permalink
Issue with email
In HTML, whitespace is not relevant, so '\r\n' doesn't do anything?
Comment by
WanWizard
February 2014
permalink
REST Controller ignoring $rest_format variable?
What Fuel version are you using? Debugging RESTful API calls from the browser has been adressed in 1.7. It breaks all RESTful controllers for anyone that have used it they way it was intended: as a last-resort default value. In all my REST controll…
Comment by
WanWizard
February 2014
permalink
SimpleAuth - logged user not saved in session
That would suggest that when check() is called, the incorrect table is defined, and the user id stored in the session can not be found? Where are you doing this Config::set() ?
Comment by
WanWizard
February 2014
permalink
More Comments
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
About
Username
WanWizard
Joined
January 2011
Visits
2,371
Last Active
May 14
Roles
Administrator