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
I am getting Notice error from auth
Looks fine to me. Then I don't know, I've checked one of my apps here that uses Simpleauth, and that works fine, without your issue. To test, I've added \Debug::dump($auth = \Auth::instance()); as the first line of the action_index()…
Comment by
WanWizard
June 2021
permalink
I am getting Notice error from auth
Looked again, weird that you got this error in the first place. When Auth is called the first time, its init method will create the default instance based on your auth config. So when you call Auth::instance(), it should already exist, and forge() s…
Comment by
WanWizard
June 2021
permalink
I am getting Notice error from auth
Auth::instance() calls Auth::forge() if no instance exists, so that does exactly the same. So the fix I committed should also work.
Comment by
WanWizard
June 2021
permalink
Multiple database connections
What problem? Use two different databases at the same time? Or two different database servers at the same time?
Comment by
WanWizard
June 2021
permalink
I am getting Notice error from auth
I'll change it to: // make sure custom is an array $custom = ! is_array($custom) ? array('driver' => $custom) : $custom; // driver must be set if (empty($custom['driver']) or ! is_string($…
Comment by
WanWizard
June 2021
permalink
I am getting Notice error from auth
Are you calling Auth::forge()? Without parameters? You don't need to do that, the default instance (configured in the auth.php config file) in instantiationed automatically when you call your first Auth method. If you don't need the defau…
Comment by
WanWizard
June 2021
permalink
React based file manager with fuelphp on the backend.
Cool! Thanks for sharing!
Comment by
WanWizard
June 2021
permalink
ORM Soft delete
In general the ORM operates on objects, the relation is not aware of other objects, so optimisations in this area is going to be complex. Having said that, I've never used Model_Soft myself, but I understand it sets a timestamp to mark the reco…
Comment by
WanWizard
May 2021
permalink
Running an existing project on localhost
Any idea for which Fuel version the app has been written? Nornally there is no overlap in directories between framework files and app files, so it should be possible to do a new framework install (as per the docs), and if that works (to check your w…
Comment by
WanWizard
May 2021
permalink
How using Redis Cache with custom PHP sites can assist on Cloud server?
Redis is a NoSQL database, a storage backend which indeed stores data in key-value pairs. To be clear, it is not some sort of transparent cache solution. Like with any database, you need client software to talk to it. That link suggests using predi…
Comment by
WanWizard
April 2021
permalink
How to regenerate migrations.php?
That is odd, as the table is leading, and the Migrate class will recreate the php file from the table data if it is missing or incomplete. It does that in its _init() method, upon load. Once both are in sync, it uses the config data, as that is stor…
Comment by
WanWizard
April 2021
permalink
I am getting error from Log
That is a different question than you initially asked. On modern distro's, you can't just write in any location without the correct security policies in place (apparmor, selinux). So you need to write a security policy for that.
Comment by
WanWizard
March 2021
permalink
I am getting error from Log
I can't see what your setup is. If you have /usr/local/batch/service/fuel/core... and /usr/local/batch/service/public/index.php, then that code is ok. If you moved stuff around, you need to adjust the paths accordingly. The fact that you get t…
Comment by
WanWizard
March 2021
permalink
I am getting error from Log
Incorrect COREPATH set in index.php ?
Comment by
WanWizard
March 2021
permalink
How to sent mail using smtp?
I assume you have already tested if you have network connectivity? telnet 74.125.137.26 465 does that connect? Connection refused suggests a firewall (yours or your ISP) blocking the port...
Comment by
WanWizard
March 2021
permalink
How to sent mail using smtp?
Could be a million things. What platform does your webserver run on? Start by some debugging on that platform, run this from the commandline:
Comment by
WanWizard
March 2021
permalink
I can not dynamically change table name(dev-1.9)
See the table() method. The table name is cached by classname in static::$_table_names_cached so other model instances can easily look it op.
Comment by
WanWizard
March 2021
permalink
I am getting error from Log
Under which user does it run? It is usually different from the one the webserver is running. chmod operations are only allowed by the file owner, no matter what rights were given. So you can get this error if the file owner is for example httpd, www…
Comment by
WanWizard
March 2021
permalink
About the error when updating from fuelphp Ver1.8.0 to Ver1.8.2
The full backtrace of your error should give you some pointers.
Comment by
WanWizard
March 2021
permalink
About the error when updating from fuelphp Ver1.8.0 to Ver1.8.2
Just to check:are you sure base56.php is updated too? As I see it, in the current code, line 55 can't generate that error.
Comment by
WanWizard
March 2021
permalink
About the error when updating from fuelphp Ver1.8.0 to Ver1.8.2
What is the complete backtrace? Something seems to call call_fuel_func_array() with incorrect data.
Comment by
WanWizard
March 2021
permalink
File::delete empty file instead of delete it
No idea, File:delete() does the standard PHP unlink() to delete a file. I see a few references on stackoverflow about this problem, but none with an explanation.
Comment by
WanWizard
March 2021
permalink
Fuel 2.0
Thanks, much appreciated.
Comment by
WanWizard
March 2021
permalink
Fuel 2.0
Update pushed.
Comment by
WanWizard
March 2021
permalink
Fuel 2.0
Sorry, I have to take my words back. I've checked our local Fuel masters, and for fuel/core: [root@dev] $ git status On branch 1.9/develop Your branch is up to date with 'origin/1.9/develop'. Changes not staged for commit: (us…
Comment by
WanWizard
March 2021
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,373
Last Active
6:41PM
Roles
Administrator