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
Is there any way to set RedisException as 500?
It doesn't work that way. Exceptions are programme errors, and cause the application to abort with either an Error page or an Oops page, depending on the environment the app runs in. If you get a HttpNotFoundException in your index.php, it mean…
Comment by
WanWizard
July 2019
permalink
Is FuelPHP compatible with PHP 7.2?
Fuel 1.8.2 has been released, which is compatible with PHP 7.3.
Comment by
WanWizard
June 2019
permalink
Is FuelPHP compatible with PHP 7.2?
Switch to the 1.9/dev branch. Afaik these issues are fixed, but not pushed to the master branch yet. We develop our Fuel apps on (currently) 7.3.6, without any issues (I've heared of ;-)).
Comment by
WanWizard
June 2019
permalink
Question about Cookie::set()
Cookie::set() sets a new cookie, it doesnt check nor care if a cookie with that same name already exists. So if you call set() without specifying an expiry, it will use the configured cookie.expiration value in your apps config.php. If not configure…
Comment by
WanWizard
June 2019
permalink
php 7.4 Preloading
As I wrote, you can't do that with lazy loading, you need to include it in the query, like I showed. If you want to use find() and the options array, here's an example of how to do that: https://docs.fuelphp.com/packages/orm/relations/intr…
Comment by
WanWizard
June 2019
permalink
php 7.4 Preloading
What is comments() for method? If you mean that comments is a related object, you are using dynamic loading, you can't control that. Instead, you need to include the relation in the initial query, and you can order: $article = model_article::qu…
Comment by
WanWizard
June 2019
permalink
php 7.4 Preloading
I have looked at the RFC for preloading, it looks to me like it is very simple to implement yourself, if you need it is needed. Note that there has not been any effort to look at 7.4 compatibility as of yet, it might be changes to the code are neede…
Comment by
WanWizard
June 2019
permalink
php 7.4 Preloading
No, there is no plan to implement any PHP version specific features, Fuel v1 remains PHP 5.4+. No, there is no route cache. It has been looked at in the past, but the performance gain was minimal, and it killed all apps using dynamic routes (routes …
Comment by
WanWizard
June 2019
permalink
Session class give always error
I can't comment without knowing what you are doing. If I Google "Chrome ERR_EMPTY_RESPONSE", I get a ton of pages, so it seems to be a common problem related to Chrome. What happens when you use another browser? Does your code redirec…
Comment by
WanWizard
June 2019
permalink
Asset Class to Return HTTPS URL Link
In that case you need to set the base_url to https, so all links are explicitly generated with it. Never had any issue with it, all our apps are behind a WAF that offloads SSL too.
Comment by
WanWizard
June 2019
permalink
Email package bug
Done.
Comment by
WanWizard
June 2019
permalink
Calling global presenter from a module...
Can you post the trace at the bottom of the error page, so I can see what triggers the error? Also, which Fuel version are you on?
Comment by
WanWizard
May 2019
permalink
Asset Class to Return HTTPS URL Link
It depends on the asset URL configured in your asset.php config file, and/or the config you pass when you forge an asset instance. By default it just uses "/", which means it uses the scheme and host information of the page the asset is u…
Comment by
WanWizard
May 2019
permalink
Session class give always error
The session class doesn't do redirects, so it must be something else. Have you configured your app to fail on every error (the default in development)? Anything in the application logs?
Comment by
WanWizard
May 2019
permalink
Email package bug
That is indeed a very odd line of code ! $remove_html_comments = isset($this->config['remove_html_comments']) ? (bool) $this->config['remove_html_comments'] : true; would be a better one. I'll push a fix to 1.9/dev.
Comment by
WanWizard
May 2019
permalink
Session class give always error
No idea, I have never seen this error. Incorrect session cookie configuration so it is blocked by Chrome perhaps?
Comment by
WanWizard
May 2019
permalink
Developer Needed - CRM System
This is a 5 year old post?
Comment by
WanWizard
May 2019
permalink
controller error
That is a very old Fuel version. ;-) When you move stuff, the most obvious issue might be permissions, so check your logs (web/php/app) for any error messages. If that is not it, the router() method of the Controller_Error class has returned somethi…
Comment by
WanWizard
May 2019
permalink
Force Login results in wrong user account *special conditions*
No, it is the way the Auth drivers (both Simpleauth and Ormauth) are designed. The only option you have is to extend the driver you use, overload the methods that set, read or reset auth session cookies, and have that set the userid too. And you hav…
Comment by
WanWizard
May 2019
permalink
Force Login results in wrong user account *special conditions*
Username needs to be unique, you can't have the same username twice. The reason because it fails is because of \Session::set('username', $this->user['username']); \Session::set('login_hash', $this->create_…
Comment by
WanWizard
May 2019
permalink
Complex settings table (entities and i18n)
We use two relations to the same table, one with, and one without the condition, so we can use either one. BTW, it doesn't return a single setting, the suggestion is to dynamically filter on "language", so when you query a specific en…
Comment by
WanWizard
April 2019
permalink
Memory consumption is very high when ORM is used inside loops
And documented: https://fuelphp.com/dev-docs/classes/database/usage.html#query-results
Comment by
WanWizard
April 2019
permalink
Memory consumption is very high when ORM is used inside loops
Just committed an update to 1.9/dev that allows you to choose the result object type per query: $result = DB::select()->from('table')->caching(false)->execute(); instead of having to set it globally (and not forget to change it ba…
Comment by
WanWizard
April 2019
permalink
Memory consumption is very high when ORM is used inside loops
As I said, there are two different result objects: 1. Database_xxx_Cached This will fetch ALL rows of the result, and stores it in the object. This will allow random access on key, will allow non-sequential access, and will allow multiple access as …
Comment by
WanWizard
April 2019
permalink
Memory consumption is very high when ORM is used inside loops
I've looked in the code too, it's been a while since I've used this. ;-) caching() is a method on the connection (so in Database_Connection), not on the query. It sets a config, and acts on all queries using that connection from that …
Comment by
WanWizard
April 2019
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,368
Last Active
3:49AM
Roles
Administrator