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
Issue on selecting an ORM with relations
You're sure the is no rows_limit() included in the query code? The example you give should return 1 product, 0 or 1 category, and 0 or more category products. This is the default query behaviour. Have you checked with the profiler what SQL is g…
Comment by
WanWizard
May 2017
permalink
Fuel\Core\PhpErrorException [ Fatal Error ]: Input truncated by PHP
Doesn't really matter, the only difference is that after your change, both apps share the same /public, and they share the same fuel codebase. We something like this:/fuel /core /modules /packages/app1 /app /modules /packages …
Comment by
WanWizard
May 2017
permalink
Fuel\Core\PhpErrorException [ Fatal Error ]: Input truncated by PHP
Do what the message says. It says that your php.ini has a max_input_vars defined (the maximum number of variables in a POST), and your post request contains 2 variables more than the defined maximum limit. So either reduce the size of your form, o…
Comment by
WanWizard
May 2017
permalink
How set default value for from_cache ?
You can now also disable it globally through config: https://github.com/fuel/orm/commit/b96c357c46d7015bb7a404ffdac2f0dd91cfdbf4 Also added some documentation: https://fuelphp.com/dev-docs/packages/orm/intro.html#/caching
Comment by
WanWizard
May 2017
permalink
How set default value for from_cache ?
You might want to switch the ORM to 1.9/develop: https://github.com/fuel/orm/commit/00c20150f4ff6c427c0a37f5e83d9f008980b727 Probably a quicker fix... ;-)
Comment by
WanWizard
May 2017
permalink
How set default value for from_cache ?
Understand. I think the only way to disable it globally is to edit query.php, and change the default from true to false. More work is to extend \Orm\Model in your app, overload the methods that call the Query class, and overload them to inject the …
Comment by
WanWizard
May 2017
permalink
How set default value for from_cache ?
What errors exactly if I may ask? The ORM always had an object cache, which is there to make sure that if you select the same record twice, the same model object will be returned. This is to make sure a model object for a particular record only exis…
Comment by
WanWizard
May 2017
permalink
Composer problems
And the "composer install" succeeded without errors? If so, you should now have a ./fuel/vendor/autoload.php file and a ./fuel/vendor/composer folder. If not, something went wrong with running composer. If you have the files, you haven…
Comment by
WanWizard
April 2017
permalink
Is there any library or package to fork a process on FuelPHP?
I did a quick scan of the fork-helper code. I think the main reason it requires PHP 7 is that it defines method return types and uses type hinting: public function wait(int $pid = null): self You could just make a fork of the code, and modify it, t…
Comment by
WanWizard
April 2017
permalink
Is there any library or package to fork a process on FuelPHP?
What is your PHP version? Or are you running on Windows?
Comment by
WanWizard
April 2017
permalink
Is there any library or package to fork a process on FuelPHP?
This one seems to be installed a lot: https://packagist.org/packages/duncan3dc/fork-helper
Comment by
WanWizard
April 2017
permalink
Is there any library or package to fork a process on FuelPHP?
Not that I am aware of. There is a package for background processing using a job queue, but that is probably more than you need. But perhaps a composer package exists, Fuel is compatibile with any generic composer package.
Comment by
WanWizard
April 2017
permalink
links or refs in html code is automaticaly prefixed with the URI
Don't use relative URL's, your browser prefixes it because of the missing leading /. Nothing to do with Fuel. You can't have it searched from the directory where the php file is, php files in Fuel are all outside the document root, f…
Comment by
WanWizard
April 2017
permalink
version 2 alpha
The codebase is still extremely "Alpha", there are still some major design changes to Controllers and the execution pipeline "in the pipeline" in the planning. You might want to keep an eye on https://github.com/fuelphp/foundatio…
Comment by
WanWizard
April 2017
permalink
Test failures in fresh project
It fails because it reports: DOCROOT/fuel/core/tests/debug.php @ line: 41instead of COREPATH/tests/debug.php @ line: 41 Which is fixed here https://github.com/fuel/core/commit/c28a83a2e1cfa32a88ed5c1a93a79de3547a873e in development, but not r…
Comment by
WanWizard
April 2017
permalink
Routing not working in localhost and 1&1-webserver + other questions
It suggests the docs need more info about how the cascading filesystem works. Good you've got it sorted though.
Comment by
WanWizard
April 2017
permalink
Routing not working in localhost and 1&1-webserver + other questions
See my previous post. ;)
Comment by
WanWizard
April 2017
permalink
Routing not working in localhost and 1&1-webserver + other questions
Ah, wait a sec... Because you mis-use a controller as an internal data provider, you mess up the controller detection system. If you request "/news/show", this could mean:- Controller_News_Show::action_index()- Controller_News::action_show…
Comment by
WanWizard
April 2017
permalink
Routing not working in localhost and 1&1-webserver + other questions
Timezone must always be set, if it is not set in the php.ini. it is a PHP requirement for date functions, which is why Fuel checks for it, and gives an error if it is not set. Your $_SERVER info looks fine, so that is not the problem. What platform…
Comment by
WanWizard
April 2017
permalink
Routing not working in localhost and 1&1-webserver + other questions
For next time, please one question per thread. Q1: Please var_dump $_SERVER at the top of your index.php and post the values of REQUEST_URI, QUERY_STRING, SCRIPT_NAME and PATH_INFO (if exists) here. Q2: Namespaces work with backslashes, not forward …
Comment by
WanWizard
April 2017
permalink
Test failures in fresh project
Does your PHP installation have xdebug installed? What platform / operating system do you use? Which PHP version? Can you also post the expected/actual values of these failed tests? It is nothing serious btw, it is probably some layout issue with th…
Comment by
WanWizard
April 2017
permalink
Exception in the Module
Of course you can, as long as you take into account the namespaces your current class is in, and the namespace your exception class is in. Assuming, with the little info you have given, that "Test" is the namespace of your module, and &quo…
Comment by
WanWizard
April 2017
permalink
Remember cookie user mismatch - security issue
No problem, good to know you found the problem, and great to know it's not something in our Auth framework. ;-) Currently, the remember-me cookie shares most of it's config with the generic session cookie definition in your session.php con…
Comment by
WanWizard
April 2017
permalink
Remember cookie user mismatch - security issue
In that setup, the remember-me cookie will be valid for all your sites (subdomains), so if all use the same user table, the user will be able to access ALL sites (user1, user2, etc), but with his own credentials, not with that of another user. So if…
Comment by
WanWizard
April 2017
permalink
Remember cookie user mismatch - security issue
It can't be related to the IP address change, the remember-me cookie is browser specific, and can only be created in that browser (unless you have disabled all cookie security). Just thought of this: Do you have mutliple Fuel applications in t…
Comment by
WanWizard
April 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,369
Last Active
6:13PM
Roles
Administrator