Closed InsiteFX closed 3 years ago
Can you give me more info specific for this error? Like debug console on chrome. You can read how to debug with the click link your mention.
Maybe this could help a little more:
code: 500 file: "/var/www/htdocs/ci4/vendor/agungsugiarto/boilerplate/src/Controllers/Users/UserController.php" line: 38 message: "Undefined index: "
@daemonzone thanks, i will take a look.
@daemonzone thanks, i will take a look.
If it could be of any help...
Getting this message while debugging: "message": "Call to undefined method Myth\Auth\Authorization\UserModel::getResource",
I solved moving the "getResource(string $search = '')" function from agungsugiarto\boilerplate\Models\UserModel.php to vendor/myth/auth/src/Models/UserModel.php
Oke guys @InsiteFX @daemonzone this error come from helper model()
on CodeIgniter4 development. The error says
CRITICAL - 2020-11-04 09:02:45 --> Call to undefined method Myth\Auth\Models\UserModel::getResource
this will call method on parent class not in childs class i dont know why. For now i will change and not using this helper.
Yeah, it looks like CI4 has issues finding the right object
I tried renaming your package UserModel to AdminUserModel and the model() helper works correctly, as well as the getResources() function call is using the method from the right class
@daemonzone i am lot of update not just fix this issue, can you test it before i am release? you can test from demo https://boilerplate-codeigniter4.herokuapp.com/
Yes, mate! Just tested the last version from this repo and it works correctly! Thanks so much! :-)
Ok, this is weird, I did a new clean install and now I' am getting an error on viewing users.
ERROR: DataTables warning: table id=table-user - Ajax error. For more information about this error, please see http://datatables.net/tn/7
Funny thing is that it loads and views the menu just fine.
I checked the database and all info is there for both users.
Boilerplate latest version.
CodeIgniter 4 latest Development version
Windows 10 Pro x64 XAMPP 7.4.11