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
What is the best way to redirect user to previous page
Don't have access to code at the moment, but somewhere (for example in your app bootstrap) you do \Event::register('shutdown', function() { \Session::set('previous_url', \Input::server('referer', null)); });(n…
Comment by
WanWizard
February 2013
permalink
Routing Problem
Alternatively ':apivers/accesspoint(.*)' => 'accesspoint', works too, but then you don't have the named variable, you'll have to use the method arguments (and make those optional in case nothing was passed).
Comment by
WanWizard
February 2013
permalink
Routing Problem
The second one will never work, because trailing slashes are not accepted in a URI segment based framework. So it will be equal to the third one. The third one doesn't match because route variables are not optional, so it expects :id there. Th…
Comment by
WanWizard
February 2013
permalink
Sessions in IE not working
The issue with the two cookies has been fixed some time ago. Which version are you using? Both cookies should contain the same session key, so that can't be the issue. Unless... The only possible issue with this that I can think of is that you…
Comment by
WanWizard
February 2013
permalink
Return response in Before Method in REST Controller
Correct. The before() method is a prepping method, you can't alter the request flow in it. If you want that, use router().
Comment by
WanWizard
February 2013
permalink
Browscap is closed.
That is the standard concept of working, yes.
Comment by
WanWizard
February 2013
permalink
Exception thrown without a stack frame in Unknown on line 0
here: http://fuelphp.com/contribute/donate
Comment by
WanWizard
February 2013
permalink
Exception thrown without a stack frame in Unknown on line 0
Thank you. Would save us both a lot of time... :-)
Comment by
WanWizard
February 2013
permalink
How to cath user_error() and use set_error_handler() inside controller?
Ok. So problem solved then?
Comment by
WanWizard
February 2013
permalink
Exception thrown without a stack frame in Unknown on line 0
Delete that line. Now. It should not be there, and it causing your issues. You haven't updated fuel/app when you updated the rest. Always read the changelog, there are usually changes to the app bootstrap and/or index.php when we release a ne…
Comment by
WanWizard
February 2013
permalink
Exception thrown without a stack frame in Unknown on line 0
Is this a new application, or one migrated from a previous version of Fuel? And if so, can you check if there's an Event call in your index.php? If so, sessions will be created twice, which will cause an exception. This can also explain why yo…
Comment by
WanWizard
February 2013
permalink
Exception thrown without a stack frame in Unknown on line 0
If you still have this error when you have disabled the error and exception handlers, you'll have an exception in the shutdown handler. These are very hard to find, since PHP is already in it's teardown phase, and exceptions can't be…
Comment by
WanWizard
February 2013
permalink
How to cath user_error() and use set_error_handler() inside controller?
A quick scan of the code shows that PHPSecLib doesn't come with it's own error handlers, to the user errors that are generated will be caught by the frameworks error handler, which will convert it to an Exception. Just noticed that the Er…
Comment by
WanWizard
February 2013
permalink
FuelPHP and Wordpress
Use a rewrite in your .htaccess to block access to the WP frontend?
Comment by
WanWizard
February 2013
permalink
FuelPHP and Wordpress
Maybe this helps? http://stackoverflow.com/questions/1125886/how-can-i-embed-a-wordpress-blog-into-another-site
Comment by
WanWizard
February 2013
permalink
Browscap is closed.
Yes, that is no problem. But not really needed, as the error handlers will capture all errors, and they will not expose any error messages when running in production.
Comment by
WanWizard
February 2013
permalink
ORM Cascade Delete In Two Directions
That error is usually an indication of either the wrong relation type (for example you swapped has_one and belongs_to) or you have defined the keys wrong. Or you have defined a PK as FK somewhere, which is not allowed.
Comment by
WanWizard
February 2013
permalink
ORM Cascade Delete In Two Directions
Been noticing odd behaviour with the ajax calls fo the forum. Looking into it now...
Comment by
WanWizard
February 2013
permalink
package email
Never used the Email package with Gmail. From what I heard, it's very slow, but it should work fine. A quick search here finds: http://fuelphp.com/forums/discussion/6090
Comment by
WanWizard
February 2013
permalink
FuelPHP and Wordpress
I think that will become a hopeless and complex mess...
Comment by
WanWizard
February 2013
permalink
Query Building with ORM
I assume it was a typo in Jelmers email, as it has always been with an 's'. I've corrected Jelmers post.
Comment by
WanWizard
February 2013
permalink
Exception thrown without a stack frame in Unknown on line 0
Assuming that you don't have errors or exceptions, you could add a var_dump(func_get_args()); die(); to each of these closures, and see if that displays something useful?
Comment by
WanWizard
February 2013
permalink
How to cath user_error() and use set_error_handler() inside controller?
You can't. The framework itself converts PHP errors to Exceptions which you can catch, but that doesn't work if PHPSecLib uses it's own error handler...
Comment by
WanWizard
February 2013
permalink
Browscap is closed.
Not that I know of, I've already looked. What do you mean by "not gracefully"? It writes an entry in the log file that it couldn't load the file, and continues?
Comment by
WanWizard
February 2013
permalink
scafold : Error: Unable to read existing migrations. Do you have an 'open_basedir' defined?
Bug is fixed: http://git.php.net/?p=php-src.git;a=commit;h=2fb7cd30c59345838588ba89ad8b05cc4c34d6dd
Comment by
WanWizard
February 2013
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,391
Last Active
5:18PM
Roles
Administrator