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
Ormauth Admin Scaffold Using Oil
Yes. And Yes. The old mysql driver isn't used by Fuel anymore.
Comment by
WanWizard
August 2018
permalink
Ormauth Admin Scaffold Using Oil
No, PDO just provides a generic interface towards PHP, it doesn't do anything with regards to platform specifics. The mysql, dblib, sqlite and sqlsrv drivers in Fuel all utilize PDO, but have a platform specific schema and list_tables() / list_…
Comment by
WanWizard
August 2018
permalink
Query optimisation
The ORM supports what we call "lazy loading", if you request a relation that wasn't loaded in the original query, the ORM fires a second query to load the relation. If you know you need the relational data, it is usually better to inc…
Comment by
WanWizard
August 2018
permalink
Ormauth Admin Scaffold Using Oil
Because the SQL to generate a table, index or column list is RDMBS dependent, and if you use the generic PDO driver, the driver doesn't know which RDBMS you are using. So don't use the generic PDO driver, use the platform driver instead.
Comment by
WanWizard
August 2018
permalink
FuelPHP 1.8.1.6 - paragonie/sodium_compat
Hmm.. Weird indeed. According to the commit, this is done to prevent it loading on PHP7, but I don't know why, only 7.2 has built-in support for libsodium... What PHP version are you on?
Comment by
WanWizard
August 2018
permalink
FuelPHP 1.8.1.6 - paragonie/sodium_compat
A "composer update" would have addressed that?
Comment by
WanWizard
August 2018
permalink
Language config
To be complete, when you load the Lang class it loads it's config. So when you change the config afterwards, Lang doesn't see that change anymore. Hence the set_lang() method. ;-)
Comment by
WanWizard
August 2018
permalink
before_insert event in Observer_Typing
The typing observer converts field types, and that is bi-directional. And it is not for initializing values, setting values from other locations, etc. It doesn't need a before_insert or a before_update because it needs to do the same in both ca…
Comment by
WanWizard
August 2018
permalink
before_insert event in Observer_Typing
The Typing observer is about value type conversions between database format and internal model format, that is not related to weather a write is an insert or an update. If you mean observers in general, that event already exists, see https://fuelphp…
Comment by
WanWizard
August 2018
permalink
bin fuel
Fixed. Our servers moved to the datacenter of our sponsor, which uses PHP-FPM. The code was not compatible with that.
Comment by
WanWizard
August 2018
permalink
Dump whole stack into log
Fuel uses Monolog for it's logging, and that gets the exception passed. So you should be able to overload Log::initialize(), and add a processor for it.
Comment by
WanWizard
August 2018
permalink
configuration of fuel php in iis
Sorry I can't be of more assistance, as said I haven't used Windows in over 10 years, and never used IIS or PHP on Windows...
Comment by
WanWizard
July 2018
permalink
configuration of fuel php in iis
Not without overloading the Log class and create a different Monolog instance.
Comment by
WanWizard
July 2018
permalink
configuration of fuel php in iis
If the path exists, it must be a rights issue, PHP not allowed to write in that directory. No clue how to deal with that on Windows.
Comment by
WanWizard
July 2018
permalink
configuration of fuel php in iis
So what happens with your fuel project if you remove the web.config file from the public folder, and load index.php in your browser? That should work fine without rewrite rules. If that works, you need to find someone with IIS 7 experience to check …
Comment by
WanWizard
July 2018
permalink
configuration of fuel php in iis
I haven't used Windows in over 10 years and never used IIS, so I'm not of much help. The description of the error is: This problem occurs because the ApplicationHost.config file or the Web.config file contains a malformed XML element. So …
Comment by
WanWizard
July 2018
permalink
configuration of fuel php in iis
Start by explaining what "some error" is. The web.config that is included in Fuel's public folder is tested and known to work, but hasn't been tested recently, as nobody seems to use IIS (thank god ;-)).
Comment by
WanWizard
July 2018
permalink
PHP ZIP file attempted to use the zip-slip-vulnerability. Extraction aborted
You can easlly debug it, find the error message in the code, and dump both the calculated path and the realpath. You get this error if the extract would create a file outside the path you want to extract the zip to.
Comment by
WanWizard
July 2018
permalink
PHP ZIP file attempted to use the zip-slip-vulnerability. Extraction aborted
You're trying to extract from a zipfile that uses this vulnerability. It means that the zip contains file entries using ".." in the path. Examine the zip with a commandline tool without unpacking it. For example, the zip could contain…
Comment by
WanWizard
July 2018
permalink
Fuel Update and login Driver
Glad to hear you got it sorted!
Comment by
WanWizard
July 2018
permalink
Fuel Update and login Driver
We just run the Auth migrations, and have separate migrations in our module that contains our login module to modify what needs modifying. So we stay compatible with Auth. The danger with copying things is to keep it up to date and in sync. I don…
Comment by
WanWizard
July 2018
permalink
Fuel Update and login Driver
Shoudn't be a problem, we use different or modified login or acl drivers all the time. It is probably not a good idea to copy pieces of Auth though, that might be asking for trouble. Auth is written to be very extendable, so it's better t…
Comment by
WanWizard
July 2018
permalink
Inserting blob/binary data into sqlite database using the FuelPHP query builder
Very good question, I never needed it. Maybe someone else?
Comment by
WanWizard
July 2018
permalink
issue in fuel doc
Fixed.
Comment by
WanWizard
July 2018
permalink
issue in fuel doc
Servers have moved to a new DC, looks like a config issue.
Comment by
WanWizard
July 2018
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
11:56AM
Roles
Administrator