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
8243
Activity
Pagination problem
I don't see anything immediately wrong. Load the page, the add a var_dump($data); exit; before your VIew in the confroller, and click on another page link. Is the contents of the pagination object correct? Did it query the correct records?
Comment by
WanWizard
May 2016
permalink
New relation set on object wasn't found.
;-) These things happen. Glad you've got it sorted.
Comment by
WanWizard
May 2016
permalink
New relation set on object wasn't found.
Ah, that's why I couldn't find it. It complains that it has a related object that is supposed to exist, buf when it does a find() using the objects' key, it can't find it. So where does your $warehouse_location_from come from? …
Comment by
WanWizard
May 2016
permalink
New relation set on object wasn't found.
No idea. A grep on all Fuel code doesn't reveal that error message. Where does it come from, what generates it?
Comment by
WanWizard
May 2016
permalink
can I install FUelPHP in sub-URI
Just double checked here, I have dozens of sites running like this on my laptop for test purposes. For all I just copied the public folder contents and changed the paths in index.php, nothing more.
Comment by
WanWizard
May 2016
permalink
can I install FUelPHP in sub-URI
Yes correct, so the addon folder should contain both your index.php and your .htaccess, both were originally in public. If you request /addon/admin, it will generate a not-found, and your htaccess rewrite rules will pick it up and rewrite it to ind…
Comment by
WanWizard
May 2016
permalink
can I install FUelPHP in sub-URI
Yes, you can. Have you followed all instructions from http://fuelphp.com/docs/installation/instructions.html#/install_inside_root ? So your addon folder now contains your index.php and the .htacess, and there is no more public directory?
Comment by
WanWizard
May 2016
permalink
Upload::get_errors()
I don't really see how Upload::get_errors() can return anything other than an array. What does it contain if in your code you do: var_dump(Upload::get_errors()); die();
Comment by
WanWizard
May 2016
permalink
Exception
http://php.net/manual/en/language.oop5.magic.php#object.tostring Note the big red warning, which is what your problem is. It is called automatically if you echo a View object, or if you do something with the object that requires conversion from ob…
Comment by
WanWizard
May 2016
permalink
Exception
What version of Fuel are you on? There's an exception handler in __toString() since at least 1.3. If the exception handler itself throws an exception as well, you'll have to do a bit of debugging. Change __toString() to: public funct…
Comment by
WanWizard
May 2016
permalink
Fatal error: Allowed memory size of xx bytes exhausted
Assuming you are still on 1.7.x, that line is: $result = $result->fetchAll(\PDO::FETCH_ASSOC); which means your query simply fetches more data than you have memory available. So use the backtrace that is provided on the error page to find out…
Comment by
WanWizard
May 2016
permalink
How to catch Fuel\Core\SecurityException [ Error ] ?
You're welcome, thanks for reporting the problem.
Comment by
WanWizard
May 2016
permalink
How to catch Fuel\Core\SecurityException [ Error ] ?
It hasn't autoloaded classes at that point. fix here: https://github.com/fuel/core/commit/714f33a82970e17d6ef7a0d7da0ce7d4be39aea0
Comment by
WanWizard
May 2016
permalink
How to catch Fuel\Core\SecurityException [ Error ] ?
Think I found the cause: https://github.com/fuel/core/commit/7fc62869b64a055e1887bd6e31bd0eee9b85a008 Could you verify if this fixes the problem?
Comment by
WanWizard
May 2016
permalink
TinyPng
Your "path" is not a path, it is a URL. And you can not write to a URL. Write to DOCROOT."assets/img/b6a098c9bcb580c61eab36334ce11f37.jpg" instead.
Comment by
WanWizard
May 2016
permalink
How to catch Fuel\Core\SecurityException [ Error ] ?
Good question, I'll have to setup new tests for it as I can't reproduce it.
Comment by
WanWizard
May 2016
permalink
How to catch Fuel\Core\SecurityException [ Error ] ?
Is your controller called at all? Did you check the log (and did you set logging to L_ALL)? If not, did you check if your index.php catches the exception correctly (add a die() to see)? If it does, did you check if the index.php closure finds the …
Comment by
WanWizard
May 2016
permalink
How to catch Fuel\Core\SecurityException [ Error ] ?
if "csrf_bad_request_on_fail" is true, a HttpBadRequestException is thrown, and with false, a SecurityException is thrown. So it should be set to false. If you set it to true, you can't catch SecurityException, as it isn't thrown…
Comment by
WanWizard
May 2016
permalink
How to catch Fuel\Core\SecurityException [ Error ] ?
Works fine here. For the test I simply used this in my controller: public function action_400() { return Response::forge(View::forge('400'), 400); } and that returns the standard 400 view that is in fuel/core/views w…
Comment by
WanWizard
May 2016
permalink
SimpleAuth - multiple logins
ok. The first one means "verify against multiple auth drivers", the second one is a simpleauth driver setting.
Comment by
WanWizard
May 2016
permalink
SimpleAuth - multiple logins
I still don't see what the problem is. If you don't use the "multiple_logins" setting, the login-hash is used to prevent multiple logins. If you do use the setting (i.e. set it to true), the login-hash isn't used, and multi…
Comment by
WanWizard
May 2016
permalink
Error message
Validation error messages are defined per rule, not per field. There is a workaround, you can pass a custom message when you process the validation errors. You can do this in a method of the model, so you keep it all in a single class. foreach ($v…
Comment by
WanWizard
May 2016
permalink
How can i set up FuelPHP on dreamweaver cs6
You need an autocomplete helper, to deal with the fact Fuel aliases it's classes: https://gist.github.com/skymarionsky/6227570 Otherwise, there is nothing that needs to be setup.
Comment by
WanWizard
May 2016
permalink
SimpleAuth support for Authorization header?
For REST authentication there are a lot of different solutions, depending on your requirements. Also, if the REST API is used app-to-app (and not through js in the browser), you need to implement a token exchange mechanism to compensate for the la…
Comment by
WanWizard
May 2016
permalink
How can i set up FuelPHP on dreamweaver cs6
Haven't used dreamweaver in I think at least 10 years, not really sure it is suitable, I was never impressed by it's editing capabilities. I can recommend PHPStorm as development editor.
Comment by
WanWizard
May 2016
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,386
Last Active
1:24PM
Roles
Administrator