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
Why is FuelPHP not popular yet :( ?
Always happy to hear that. ;-)
Comment by
WanWizard
November 2017
permalink
CSRF token problem report
Update committed. Tested with expiring tokens, tokens valid for the entire session, and forced token rotation.
Comment by
WanWizard
November 2017
permalink
CSRF token problem report
The fact that is the same with this config isn't good, and I think I have found an omission in the last commit that has caused that. I'm testing now, if it turns out it works, I'll push it. But I think you have a misunderstanding abou…
Comment by
WanWizard
November 2017
permalink
CSRF token problem report
The configuration has changed. In 1.8, the csrf_expiration value was "misused" to determine whether or not a token must be rotated. A value of 0, like in your config, caused immediate expiration of the token, and triggered a rotation. In 1…
Comment by
WanWizard
November 2017
permalink
Call to rowCount()
Indeed weird. Could you dump $this->_config in the query() method, and check if it has an "attrs" key present? It must be there, and it must be an array, and the array must have a "3" => "2" entry. If not, there i…
Comment by
WanWizard
November 2017
permalink
Call to rowCount()
did you add the debugging code to the PDO driver, as I suggested, so we can get more details on why the query doesn't return a PDOstatement object, and why it doesn't generate an Exception?
Comment by
WanWizard
November 2017
permalink
Call to rowCount()
That would be weird, that would render the DBAL useless for any application? What is the exact definition of that table? Could you dump the "create table" for it, including indexes?
Comment by
WanWizard
November 2017
permalink
Call to rowCount()
The manual says: PDO::query() returns a PDOStatement object, or FALSE on failure. From what I can see the situation FALSE isn't captured, but I wonder how this is possible, since we inject PDO::ERRMODE_EXCEPTION in the class constructor. Could …
Comment by
WanWizard
November 2017
permalink
Call to rowCount()
rowCount() and errorCode() are PDO methods, that are called on the query result. The fact that you get "Call to a member function on a non-object" indicates that $result is not an object, not that the method doesn't exist. So the main…
Comment by
WanWizard
November 2017
permalink
default crypt
It is only generated if it doesn't exist, because Fuel needs it to operate (it is for example used to encrypt the session). But that doesn't mean you can't override the values in it, either via fixed values in an environment crypt fi…
Comment by
WanWizard
November 2017
permalink
default crypt
I don't understand what you do, want to do, and what you mean by "it's back"? The crypt config is just config, so you overload values using Config::set()?
Comment by
WanWizard
November 2017
permalink
oil modify_fields
It isn't. But I can see if it is possible without too much effort,
Comment by
WanWizard
November 2017
permalink
oil modify_fields
So: fieldname:type[constraint] ?
Comment by
WanWizard
November 2017
permalink
oil modify_fields
You mean a commandline option? Looking in the code I don't think so? It's probably because the command can be extremely complex given what you can modify. Or do you have a suggestion?
Comment by
WanWizard
November 2017
permalink
a non-numric value encountered?
Ah, wait, you're on 1.8/release. That has a bug in it, that gives this error if it can't find any previous migrations. Switch to 1.9/dev, as this is already fixed.
Comment by
WanWizard
November 2017
permalink
a non-numric value encountered?
What is exactly the command you are trying to execute? And on what Fuel version are you on?
Comment by
WanWizard
November 2017
permalink
Redis and PHP-fpm don't go together
If you can find out what is causing it, it can be looked at.
Comment by
WanWizard
October 2017
permalink
Redis and PHP-fpm don't go together
You'll have to provide a lot more details if you want a useful response on this. One of the challenges with using a key-value store for caching, is that you have to maintain an artifical index to be able to map a tree structure to a flat list. …
Comment by
WanWizard
October 2017
permalink
The best pratices to integrate bootstrap admin panel in fuelphp
You could have a look at https://github.com/fuel/depot. It's code isn't 100% up to date anymore, but it still is an good example of a simple modular app using Themes.
Comment by
WanWizard
October 2017
permalink
Trouble with eager loading singular relations
And your Model_Pages_i18ru and Model_Pages_i18uk ? Are the relations back to Model_Page defined as "belongs_to"?
Comment by
WanWizard
October 2017
permalink
Trouble with eager loading singular relations
Doesn't make any difference, still works without problems. You haven't defined the relations the other way (from Model_Pages_i18ru to Model_Page) as has_one instead of belongs_to, by any chance?
Comment by
WanWizard
October 2017
permalink
Trouble with eager loading singular relations
Thanks, I'll update my test code accordingly.
Comment by
WanWizard
October 2017
permalink
Trouble with eager loading singular relations
I don't think this is a solution. I have been testing this, but I can't reproduce your problem, with the stock 1.9/dev orm code. This suggests your problem is elsewhere. This is my test code: // truncate test tableDBUtil::truncate_table(…
Comment by
WanWizard
October 2017
permalink
Trouble with eager loading singular relations
is_fetched() should still return true, as it was fetched. If you reset that, and you would try to access the relation after the reset, it would fetch it again, and undo your removal of the related object. I think the problem is in the observer, I ch…
Comment by
WanWizard
October 2017
permalink
Trouble with eager loading singular relations
unset($p->i18uk) would be the documented way of doing it. I've pushed an update to 1.9/dev to make assigning null or array() functionally equivalent to unset().
Comment by
WanWizard
October 2017
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,366
Last Active
April 29
Roles
Administrator